Valve Developer Community:Alternative Languages: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(chad page)
Line 1: Line 1:
{{otherlang2
{{lang|Valve Developer Community:Alternative Languages}}
|ru = Valve Developer Community:Alternative Languages:ru
|zh-cn = Valve Developer Community:Alternative Languages:zh-cn
|es = Valve Developer Community:Alternative Languages:es
|it = Valve Developer Community:Alternative Languages:it
|de = Valve Developer Community:Alternative Languages:de
|fr = Valve Developer Community:Alternative Languages:fr
}}
{{back|Help:Editing}}
{{back|Help:Editing}}
{{shortcut|VDC:AL}}
{{shortcut|VDC:AL}}
{{toc-right}}
{{toc-right}}
This page is a reference on having alternative languages here on the Valve Developer Community.
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.


==Translating your page==
==Titles==
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.
It is important that all page names contain only [[Wikipedia:ASCII|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 (<code>:</code>), followed by the language's [[Wikipedia:ISO_639-2|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.


===Required naming scheme===
English pages are usually the originals and there is no :en tag on them.
It is important that page, category, and article titles contain only [[Wikipedia:ASCII|ASCII]] characters in the format of "English title:language abbreviation".  That is, keep a page's English title, and add a colon then the 2-letter [[Wikipedia:ISO 639-2|ISO 639-2 alpha-2]] language code for that language. For example [[Command Line Options:jp]].


The reason for this is partially due to a technical limitation of the software the VDC runs on. Pages, titles, and categories with non-English characters (such as "д", "к", or "ỹ") '''do not get backed up correctly in the database'''. It is not a problem to use non-English text in the pages themselves, but the page/article titles cannot contain these non-English, non [[Wikipedia:ASCII|ASCII]] characters.
There are a number of ways to change how a page title will appear to readers without affecting the URL.
*[[Template:Lang]]
*[[Template:Otherlang2]]
*The series of templates such as [[Template:base point]], which are used on entity articles.
*<code><nowiki>{{DISPLAYTITLE:</nowiki>''title''<nowiki>}}</nowiki></code> - this is not a template, rather a ''magic word'' to change the page title to whatever you want. All the templates listed use this internally.


Please note that English articles are usually the originals and there is no :en tag on them.
===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.


==Adding links==
[[Template:Otherlang2]] is an older version of the Lang template. Lang was only recently created, so most pages are still using Otherlang2. Otherlang2 does not have automated language detection. Instead, it requires that a list of pages in each language be kept synchronized between each translation of the page. The only reason for pages to continue using Otherlang2 is if a translated page's title does not follow the standard naming scheme (in which case, the page should be ''moved'' to the correct title for reasons stated above).
[[Template:Otherlang2]] generates a row of flags in the top-right of the page. Use it like this:


<pre><nowiki>
<!--Should Translated notice templates, such as [[Template:Delete]] include the english text in them too?-->
{{otherlang2
|title = Localized title of this page (title of the page in its own language) without the language suffix.
|es = Destination page:es
|de = Destination page:de
|jp = Destination page:jp
}}
</nowiki></pre>


The template '''must''' be the first text on the page! You should also do your best to update all the other translated pages, not just your own and English.
==Templates==
[[Help:Templates|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.


For examples and more information, see [[Template:Otherlang2]].
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.


==Available languages==
==Categories==
Languages available can be found in the [[:Category:Languages|Languages category]].
[[Help: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.


In order to have your language category listed in the primary Languages category, add the following to your language's category article:
==Language checklist==
<nowiki>[[Category:Languages]]</nowiki>
Every language on the wiki should have:
*A [[:Category:Languages|language category]].
*Translations for all the pages in the left sidebar:
**[[Main Page]]
**[[SDK Docs]]
**[[Help:Contents]]
**[[:Category:Source SDK FAQ]]
**[[:Category:Level Design FAQ]]
*An icon of a flag representative of the language.
*Proper addition to [[Template:Lang]]/[[Template:Otherlang2]].
{{todo|More?}}


==Final notes==
==Final notes==
This guide is not definitive, but it makes things much simpler when everyone follows one method of using the templates, so everything in the wiki stays consistent throughout languages.
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.
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==
==See Also==
*[[Special:MyLanguage]]
*[[Help:Editing]]
*[[Template:Translate]]
*[[Template:Translate]]
*[[Template:Updatetranslation]]


[[Category:Languages]]
[[Category:Languages]]
[[Category:Wiki]]
[[Category:Wiki]]

Revision as of 20:43, 26 August 2018

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)
Help:Editing
Shortcut
VDC:AL

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 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.

  • Template:Lang
  • Template:Otherlang2
  • The series of templates such as Template:base point, which are used on entity articles.
  • {{DISPLAYTITLE:title}} - this is not a template, rather a magic word to change the page title to whatever you want. All the templates listed use this internally.

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:Otherlang2 is an older version of the Lang template. Lang was only recently created, so most pages are still using Otherlang2. Otherlang2 does not have automated language detection. Instead, it requires that a list of pages in each language be kept synchronized between each translation of the page. The only reason for pages to continue using Otherlang2 is if a translated page's title does not follow the standard naming scheme (in which case, the page should be moved to the correct title for reasons stated above).


Templates

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.

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.

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