Valve Developer Community:Alternative Languages

From Valve Developer Community
Revision as of 16:38, 7 April 2023 by 1416006136 (talk | contribs) (→‎Categories: notice for using {{MultiPage}})
Jump to navigation Jump to search
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Hrvatski (hr)Italiano (it)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)
Shortcut
VDC:AL

Template:ModernTodo This page is a reference on having alternative languages here on the Valve Developer Community. Translating the page you want should be simple if you are fluent in a language. This article does not go into depth in translation of articles.

Titles

It is important that all page names contain only ASCII characters; otherwise, the pages aren't handled correctly by the database. The name of a translated page should put the English name first, followed by a colon (:), followed by the abbreviation described in Template:Lang's documentation (which is not always the language's ISO_639-2 abbreviation). An example of a proper page name is Help:Contents:ru. It is not a problem to use non-English text in the pages themselves, but the name of the page cannot contain any non-English, non-ASCII characters.

English pages are usually the originals, and there is no :en tag on them.

There are a number of ways to change how a page title will appear to readers without affecting the URL.

Linking to Pages in Another Language

Template:Lang will automatically detect when a page is available in other languages, and creates a row of flags linking to the page in each language. It assumes that the page names follow the naming scheme described above. See the template's page for full details. Template:ModernNote

Template:MultiPage is the improved version of Template:Lang. Read the documentation of the template for details.


Templates

Using {{Lang}} (Traditional)

Templates containing text visible on content pages should have that text translated into the translated page's language before the page is considered finished. Any documentation on the template should also be translated.

Templates without visible text may also have their documentation translated. If the template itself is identical to the English one however, the "translated" template should not be used on pages, because then if one version of the template is changed, it creates a needless hassle to change other versions as well, even though the templates are identical.

Using {{Autolang}}

{{Autolang}} will change the contents according to your language of the interface. There are some strings subpages in some templates (such as Template:Software page), and the translations are in them. All the strings subpages use this template internally.

See the documentation of the template for its usage. Alternatively, check the source code of pages that have already used this template to learn how to use it.

Categories

Categories also need to be separated by language, because adding a translated page to a category in another language only makes the category become cluttered. Template:ModernNote

Language Checklist

Every language on the wiki should have:

Todo: More?

Final Notes

This guide is not definitive, but it makes things much simpler when everyone follows one method of translating content, so everything in the wiki stays consistent throughout languages.

Please fully translate pages. A page partially in another language is simply not helpful for readers who only know one language.

If a page has received an important update, translations of the page should be marked with Template:Updatetranslation.

See Also