Template:GTranslations

From OLPC
Revision as of 04:43, 26 January 2008 by Katie (talk | contribs)
Jump to navigation Jump to search

Google



Created from

without the translation needed

For on the fly translations

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

  • ar - arabic (العربية)
  • de - german (Deutsch)
  • es - spanish (español)
  • fr - french (français)
  • it - italian (italiano)
  • ja - japanese (日本語)
  • ko - korean (한국어)
  • ru - russian (русский)
  • zh - chinese (simplified) (中文)

Usage

In order to show languages from the list (for example when there isn't a human translation available) you may specify for each language code "show" and will not be included. When a human translation becomes available, just remove the parameter for the given language.

{{ GTranslations
   | title =       <!-- OPTIONAL -- title (defaults to 'Google' -->
   | ar = show     <!-- OPTIONAL -- shows link for arabic translation -->
   | de = show     <!-- OPTIONAL -- shows link for german translation -->
   | es = show     <!-- OPTIONAL -- shows link for spanish translation -->
   | fr = show     <!-- OPTIONAL -- shows link for french translation -->
   | it = show     <!-- OPTIONAL -- shows link for italian translation -->
   | ja = show     <!-- OPTIONAL -- shows link for japanese translation -->
   | ko = show     <!-- OPTIONAL -- shows link for korean translation -->
   | pt = show     <!-- OPTIONAL -- shows link for portuguese translation -->
   | ru = show     <!-- OPTIONAL -- shows link for russing translation -->
   | zh = show     <!-- OPTIONAL -- shows link for chinese (simplified) translation -->
}}

Sample

# all languages included
{{ GTranslations | ar=show | de=show | es=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show }}

Google-العربية-Deutsch-español-français-italiano-日本語-한국어-português-русский-中文(中国大陆)