Difference between revisions of "CCWiki:Translate"

From Creative Commons
Jump to: navigation, search
(New page: 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...)
 
m
Line 2: Line 2:
  
 
* 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 {{Lang-1|Example Content}}
+
* To '''Es:Contenido del Ejemplo''' add <code><nowiki>{{Lang-1|Example Content}}</nowiki></code>
* To Example Content add {{Lang-1|Es:Contenido del Ejemplo}}  
+
* To Example Content add <code><nowiki>{{Lang-1|Es:Contenido del Ejemplo}}</nowiki></code>
  
 
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, use the appropriate template, e.g., Lang-2 for three languages, Lang-3 for four, etc.

Revision as of 20:49, 2 January 2008

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.

  • Create a new article called Es:Contenido del Ejemplo. The contents should be a translation of Example Content.
  • To Es:Contenido del Ejemplo add {{Lang-1|Example Content}}
  • To Example Content add {{Lang-1|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, use the appropriate template, e.g., Lang-2 for three languages, Lang-3 for four, etc.

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 specifiy (technically because MediaWiki can treat a prefix before : as a separate namespace).