Template:Google Translations

From OLPC
Revision as of 10:30, 26 May 2007 by Xavi (talk | contribs) (tweaking trying to hide some languages)
Jump to: navigation, search

Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN


This template adds a series of automatic (machine) translation links to the including page. They use Google as the engine, and take English pages and translate it into:

Usage

In order to 'hide' some languages from the list (for example when there's a human translation available) you may specify for each language code "none" and will not be included.

{{ Google Translations
   | ar = none   <!-- OPTIONAL -- hides link for arabic translation;
   | de = none   <!-- OPTIONAL -- hides link for german translation;
   | es = none   <!-- OPTIONAL -- hides link for spanish translation;
   | fr = none   <!-- OPTIONAL -- hides link for french translation;
   | it = none   <!-- OPTIONAL -- hides link for italian translation;
   | ja = none   <!-- OPTIONAL -- hides link for japanese translation;
   | ko = none   <!-- OPTIONAL -- hides link for korean translation;
   | ru = none   <!-- OPTIONAL -- hides link for russing translation;
   | zh-CN = none   <!-- OPTIONAL -- hides link for chinese (simplified) translation;
}}

Sample

{{ Google Translations }}           # all languages included


{{ Google Translations | ar = none }}           # all languages included except ar (arabic)


{{ Google Translations | de = none | es = none }}           # all languages included except german and spanish