Template:Google translation

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Google translation

Template documentation[view] [edit] [history] [purge]

Usage[edit]

This template creates an external link to a Google Translate page, which can translate the text from a Web page in a source language to a destination language. Syntax:

{{Google translation|destination language code|source language code|URL of page to translate|link text}}

If you leave the link text argument blank, “Google translation” appears as the default text.

Some URLs that contain special characters, such as & or =, will break the template. The solution is to prepend the URL with 3=, for example {{Google translation|ru|en|3=http://www.example.org/this-url-contains-=}} resulting in Google translation

The following languages below are available in any pairings, with their language code following the dash. (As of August 13, 2008):

  • Arabic – ar
  • Bulgarian – bg
  • Chinese (Simplified) – zh-CN
  • Chinese (Traditional) – zh-TW (only available as a destination language)
  • Croatian – hr
  • Czech – cs
  • Danish – da
  • Dutch – nl
  • English – en
  • Finnish – fi
  • French – fr
  • German – de
  • Greek – el
  • Hebrew – iw
  • Hindi – hi
  • Italian – it
  • Japanese – ja
  • Korean – ko
  • Norwegian – no
  • Polish – pl
  • Portuguese – pt
  • Romanian – ro
  • Russian – ru
  • Spanish – es
  • Swedish – sv

Some are in BETA version, and all of them provide translations whose quality is not as good as a professional translation. However, these translations are useful to get a rough idea of the original document. See Google Translate for updates to the list of available languages.

Avoid using in articles[edit]

WP:EL#Non-English language content advises against linking to non-English content from articles in the English Wikipedia, but does not forbid it in all cases. Links to machine-translated pages from articles may lead to disputes with other editors, who may feel the quality of translation is insufficient to create a reliable source. Therefore, use your judgment, and check the quality of translation to make sure it is adequate to use as a source.

There should be no problem with using this template on non-article pages, such as talk pages, the Help desk, and so on. See the similar advice for template such as {{Google}}.

Examples[edit]

Type this To get this What it produces
{{Google translation|en|zh-CN|https://zh.wikipedia.org|Translate the Chinese Wikipedia to English}} Translate the Chinese Wikipedia to English Translate the Chinese Wikipedia to English
{{Google translation|en|da|https://da.wikipedia.org|Translate the Danish Wikipedia to English}} Translate the Danish Wikipedia to English Translate the Danish Wikipedia to English
{{Google translation|en|nl|https://nl.wikipedia.org|Translate the Dutch Wikipedia to English}} Translate the Dutch Wikipedia to English Translate the Dutch Wikipedia to English
{{Google translation|en|de|https://de.wikipedia.org|Translate the German Wikipedia to English}} Translate the German Wikipedia to English Translate the German Wikipedia to English
{{Google translation|en|it|https://it.wikipedia.org|Translate the Italian Wikipedia to English}} Translate the Italian Wikipedia to English Translate the Italian Wikipedia to English
{{Google translation|en|pt|https://pt.wikipedia.org|Translate the Portuguese Wikipedia to English}} Translate the Portuguese Wikipedia to English Translate the Portuguese Wikipedia to English
{{Google translation|en|es|https://es.wikipedia.org|Translate the Spanish Wikipedia to English}} Translate the Spanish Wikipedia to English Translate the Spanish Wikipedia to English
{{Google translation|es|en|https://en.wikipedia.org|Translate the English Wikipedia to Spanish}} Translate the English Wikipedia to Spanish Translate the English Wikipedia to Spanish
{{Google translation|pt|en|https://en.wikipedia.org|Translate the English Wikipedia to Portuguese}} Translate the English Wikipedia to Portuguese Translate the English Wikipedia to Portuguese
{{Google translation|it|en|https://en.wikipedia.org|Translate the English Wikipedia to Italian}} Translate the English Wikipedia to Italian Translate the English Wikipedia to Italian
{{Google translation|ar|en|https://en.wikipedia.org|Translate the English Wikipedia to Arabic}} Translate the English Wikipedia to Arabic Translate the English Wikipedia to Arabic

See also[edit]

External links[edit]