Difference between revisions of "CCWiki:Translate"

From Creative Commons
Jump to: navigation, search
m
Line 1: Line 1:
This is (in theory, soon in practice), a multilingual wiki. Follow these steps to translate an article. For the purposes of illustration, the article is called '''Example Content''' and we will translate the article to Spanish.
+
This is a multilingual wiki. Follow these steps to translate an article. For the purposes of illustration, the article is called '''Example Content''' and we will translate the article to Spanish.
  
 
* Create a new article called '''Es:Contenido del Ejemplo'''. The contents should be a translation of Example Content.
 
* Create a new article called '''Es:Contenido del Ejemplo'''. The contents should be a translation of Example Content.
* To '''Es:Contenido del Ejemplo''' add <code><nowiki>{{Lang-1|Example Content}}</nowiki></code>
+
* To '''Es:Contenido del Ejemplo''' add:
* To Example Content add <code><nowiki>{{Lang-1|Es:Contenido del Ejemplo}}</nowiki></code>
+
<pre><nowiki>
 +
  {{Translated From
 +
    | source=Source Article Name
 +
  }}
 +
</nowiki></pre>
 +
* To Example Content add:
 +
<pre><nowiki>
 +
  {{Translations|
 +
    articles=Es:Contenido del Ejemplo
 +
  }}
 +
</nowiki></pre>
  
A box appear in each article listing the languages the article is available in. If an article is available more than two languages, use the appropriate template, e.g., Lang-2 for three languages, Lang-3 for four, etc.
+
A box appear in each article listing the languages the article is available in. If an article is available more than two languages, separate the translated article names with commas in the <code>Translations</code> template.
  
 
Es: is special in the translated article name. It is the [http://web.archive.org/web/20060205024706/http://en.wikipedia.org/wiki/List_of_ISO_639_codes language code] for Spanish, followed by :. If translating for another language, use the appropriate language code, e.g., Ja for Japanese (use alpha-2 if available).
 
Es: is special in the translated article name. It is the [http://web.archive.org/web/20060205024706/http://en.wikipedia.org/wiki/List_of_ISO_639_codes language code] for Spanish, followed by :. If translating for another language, use the appropriate language code, e.g., Ja for Japanese (use alpha-2 if available).
  
Eventually you'll be able to search for articles only in language(s) you specifiy (technically because MediaWiki can treat a prefix before : as a separate namespace).
+
Eventually you'll be able to search for articles only in language(s) you specify.

Revision as of 22:21, 12 June 2008

This is a multilingual wiki. Follow these steps to translate an article. For the purposes of illustration, the article is called Example Content and we will translate the article to Spanish.

  • Create a new article called Es:Contenido del Ejemplo. The contents should be a translation of Example Content.
  • To Es:Contenido del Ejemplo add:
  {{Translated From
    | source=Source Article Name
  }}
  • To Example Content add:
  {{Translations|
     articles=Es:Contenido del Ejemplo
  }}

A box appear in each article listing the languages the article is available in. If an article is available more than two languages, separate the translated article names with commas in the Translations template.

Es: is special in the translated article name. It is the language code for Spanish, followed by :. If translating for another language, use the appropriate language code, e.g., Ja for Japanese (use alpha-2 if available).

Eventually you'll be able to search for articles only in language(s) you specify.