Valve Developer Community:It/Alternative Languages: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(21 intermediate revisions by 10 users not shown)
Line 1: Line 1:
This page is a reference on having alternative languages on the Valve Developer Community.
{{LanguageBar}}
 
== Tradurre la tua pagina ==
Tradurre una pagina dovrebbe essere semplice se si conosce la lingua in questione. Questo articolo non espone in profondita la traduzione degli articoli, ma ne spiega ill procedimento.
 
=== Suggested naming scheme ===
E' consigliato mantenere lo stesso titolo inglese negli articoli
Example: [[Command Line Options:it]]
 
Nota: Spesso gli articoli in inglese sono gli orniginali, e non necessitano del tag :en.
 
== Other language templates ==
The templates used to mark a page that is translated into other languages are set up so they can be used for and in any language.
 
Example for an English page that has a Japanese translation:
<pre><nowiki>
{{otherlang:en}}
{{otherlang:en:jp|Destination page:jp}}
</nowiki></pre>
 
Example for a Spanish page that has English and German translations:
<pre><nowiki>
{{otherlang:es}}
{{otherlang:es:en|Destination page}},
{{otherlang:es:de|Destination page:de}}
</nowiki></pre>
 
=== Syntax form ===
If you notice, there are several parts to the templates used to create these statements. The first part,
<code><nowiki>{{otherlang:</nowiki>'''Current language code'''<nowiki>}}</nowiki></code>
represents the ''This language is avaliable in:'' in that language. It is followed one or more statements of
<code><nowiki>{{otherlang:</nowiki>'''Current language code'''<nowiki>:</nowiki>'''Destination language code'''<nowiki>|</nowiki>'''Destination page'''<nowiki>}}</nowiki></code>
which has text written in both the current page's language and the destination page's language, which links to the destination page.
 
== Creating language tag templates ==
Creating templates for alternative languages is easy. Simply copy the code for existing templates, and put them into templates replaced with your correct language code. Please be sure to put your target language's name in both your language and the target language's.
 
Example ([[:Template:otherlang:es:en|Spanish]]):
Inglés (English)
 
A template can be modified by going to <code>Template:''name''</code>; for example, the <code>otherlang:pl:en</code> template can be modified by going to <code>Template:otherlang:pl:en</code>.
 
The code for <code>otherlang:'''''xx'''''</code> is:
<nowiki><br style="clear:both;" /></nowiki>
<nowiki>----</nowiki>
&lt;small>'''''translation1''''': &lt;/small>
 
The code for <code>otherlang:'''''xx''''':'''''yy'''''</code> is:
<nowiki><small>[[{{{1}}}|</nowiki>'''''translation2''''' ('''''translation3'''''<nowiki>)]]</small></nowiki>
Where:
* '''''xx''''' is the language code of your language
* '''''yy''''' is the language code of the other language
* '''''translation1''''' is the phrase "This page is also available in", translated to your language
* '''''translation2''''' is the name of the other language, translated to your language
* '''''translation3''''' is the name of the other language, translated to its own language
 
Examples:
* [[Template:otherlang:en]] (written in English)
* [[Template:otherlang:en:es]] (says "Spanish" in English and Spanish)
* [[Template:otherlang:es]] (written in Spanish)
* [[Template:otherlang:es:en]] (says "English" in Spanish and English)
 
* [[Template:otherlang:en]] (written in English)
* [[Template:otherlang:en:sv]] (says "Swedish" in English and Swedish)
* [[Template:otherlang:sv]] (written in Swedish)
* [[Template:otherlang:sv:en]] (says "English" in Swedish and English)
 
== Available languages ==
Languages available can be found in the [[:Category:Languages|Languages category]].
 
In order to have your language category listed in the primary Languages category, add the following to your language's category article:
<nowiki>[[Category:Languages]]</nowiki>
 
== 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.
 
[[Category:Languages]]
 
{{otherlang:en}}
{{otherlang:en:zh-cn|Valve_Developer_Community:Alternative_Languages:zh-cn}}

Latest revision as of 07:08, 22 August 2024

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)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.