Template:GoogleTrans-en2

From Sugar Labs
Revision as of 13:34, 6 August 2009 by FGrose (talk | contribs) (restore from subtemplate test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Google translations:



Created from Google Translations without the translation needed

For on the fly translations

start-lang - en

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 start-lang and can translate it into one of the following:

  • es - Spanish (español)
  • sq - Albanian (shqip)
  • ar - Arabic (العربية)
  • bg - Bulgarian (български)
  • ca - Catalan (català)
  • zh-CN - Chinese (Simplified) (中文(中国大陆)‎)
  • zh-TW - Chinese (Traditional) (中文(台灣)‎)
  • hr - Croatian (hrvatski)
  • cs - Czech (čeština)
  • da - Danish (dansk)
  • nl - Dutch (Nederlands)
  • et - Estonian (eesti)
  • tl - Filipino (Tagalog)
  • fi - Finnish (suomi)
  • fr - French (français)
  • gl - Galician (galego)
  • de - German (Deutsch)
  • el - Greek (Ελληνικά)
  • iw/he - Hebrew (עברית) iw for Google Translate, he for MediaWiki (ISO-639)
  • hi - Hindi (हिन्दी)
  • hu - Hungarian (magyar)
  • id - Indonesian (Bahasa Indonesia)
  • it - Italian (italiano)
  • ja - Japanese (日本語)
  • ko - Korean (한국어)
  • lv - Latvian (latviešu)
  • lt - Lithuanian (lietuvių)
  • mt - Maltese (Malti)
  • no - Norwegian (norsk)
  • fa - Persian (فارسی)
  • pl - Polish(polski)
  • pt - Portuguese (português)
  • ro - Romanian (română)
  • ru - Russian (русский)
  • sr - Serbian (српски / srpski)
  • sk - Slovak (slovenčina)
  • sl - Slovenian (slovenščina)
  • sv - Swedish (svenska)
  • th - Thai (ไทย)
  • tr - Turkish (Türkçe)
  • uk - Ukrainian (українська)
  • vi - Vietnamese (Tiếng Việt)

Albanian Arabic Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Thai Turkish Ukrainian Vietnamese

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.

{{ GoogleTrans-es
   | title =           <!-- OPTIONAL -- title (defaults to 'Google Translations' -->
   | es = show     <!-- OPTIONAL -- shows link for Spanish translation -->
   | sq = show     <!-- OPTIONAL -- shows link for Albanian translation -->
   | ar = show     <!-- OPTIONAL -- shows link for Arabic translation -->
   | bg = show     <!-- OPTIONAL -- shows link for Bulgarian  translation -->
   | ca = show     <!-- OPTIONAL -- shows link for Catalan translation -->
   | zh-CN = show  <!-- OPTIONAL -- shows link for Chinese (Simplified)  translation -->
   | zh-TW = show  <!-- OPTIONAL -- shows link for Chinese (Traditional)  translation -->
   | hr = show     <!-- OPTIONAL -- shows link for Croatian  translation -->
   | cs = show     <!-- OPTIONAL -- shows link for Czech  translation -->
   | da = show     <!-- OPTIONAL -- shows link for Danish  translation -->
   | nl = show     <!-- OPTIONAL -- shows link for Dutch  translation -->
   | et = show     <!-- OPTIONAL -- shows link for Estonian translation -->
   | tl = show     <!-- OPTIONAL -- shows link for Filipino translation -->
   | fi = show     <!-- OPTIONAL -- shows link for Finnish  translation -->
   | fr = show     <!-- OPTIONAL -- shows link for French  translation -->
   | gl = show     <!-- OPTIONAL -- shows link for Galician translation -->
   | de = show     <!-- OPTIONAL -- shows link for German  translation -->
   | el = show     <!-- OPTIONAL -- shows link for Greek  translation -->
   | iw = show     <!-- OPTIONAL -- shows link for Hebrew translation -->
   | hi = show     <!-- OPTIONAL -- shows link for Hindi  translation -->
   | hu = show     <!-- OPTIONAL -- shows link for Hungarian translation -->
   | id = show     <!-- OPTIONAL -- shows link for Indonesian 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 -->
   | lv = show     <!-- OPTIONAL -- shows link for Latvian translation -->
   | lt = show     <!-- OPTIONAL -- shows link for Lithuanian translation -->
   | mt = show     <!-- OPTIONAL -- shows link for Maltese translation -->
   | no = show     <!-- OPTIONAL -- shows link for Norwegian  translation -->
   | fa = show     <!-- OPTIONAL -- shows link for Persian translation -->
   | pl = show     <!-- OPTIONAL -- shows link for Polish translation -->
   | pt = show     <!-- OPTIONAL -- shows link for Portuguese  translation -->
   | ro = show     <!-- OPTIONAL -- shows link for Romanian  translation -->
   | ru = show     <!-- OPTIONAL -- shows link for Russian  translation -->
   | sr = show     <!-- OPTIONAL -- shows link for Serbian translation -->
   | sk = show     <!-- OPTIONAL -- shows link for Slovak translation -->
   | sl = show     <!-- OPTIONAL -- shows link for Slovenian translation -->
   | sv = show     <!-- OPTIONAL -- shows link for Swedish translation -->
   | th = show     <!-- OPTIONAL -- shows link for Thai translation -->
   | tr = show     <!-- OPTIONAL -- shows link for Turkish translation -->
   | uk = show     <!-- OPTIONAL -- shows link for Ukrainian translation -->
   | vi = show     <!-- OPTIONAL -- shows link for Vietnamese translation -->
}}

Known Issues

  • Translated language names with spaces permit mid-name line returns that may be confusing.
  • It appears that the Firefox 3-beta browser has issues with handling this if you mix right-to-left and left-to-right languages in the same line. The symptom is jumpy switching from R-L to L-R orientations and results in poor usability. The quick workaround is to leave out Arabic for the moment and report the issue to Mozilla. Hopefully a fix of the behavior on mouseover of the span-class statement will be baked into FF3 before release and Arabic can be re-inserted.
trying L-R languages at end of table row
  • iw - Hebrew - עברית - is used by Google Translate, mediawiki ISO-639 gives he the (עברית) #language:iw is not working.

Sample

  1. all languages included:
    {{ GoogleTrans-en2 | es =show | sq =show | bg =show | ca =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | et =show | tl =show | fi =show | fr =show | gl =show | de =show | el =show | hi =show | hu =show | id =show | it =show | ja =show | ko =show | lv =show | lt =show | mt =show | no =show | pl =show | pt =show | ro =show | ru =show | sr =show | sk =show | sl =show | sv =show | th =show | tr =show | uk =show | vi =show | ar =show | iw =show | fa =show }}
Google translations: español shqip български català 中文(中国大陆)‎ 中文(台灣)‎ hrvatski čeština dansk Nederlands eesti Tagalog suomi français galego Deutsch Ελληνικά हिन्दी magyar Bahasa Indonesia italiano 日本語 한국어 latviešu lietuvių Malti norsk polski português română русский српски / srpski slovenčina slovenščina svenska ไทย Türkçe українська Tiếng Việt العربية עברית فارسی