Difference between revisions of "Template:GoogleTrans-en"

From Sugar Labs
Jump to navigation Jump to search
(Undo revision 34869 restore from test)
Line 2: Line 2:
 
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey">
 
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey">
 
<tr><td style="font-size:70%"><span class="plainlinks">[http://translate.google.com {{{title|Google ''translations''}}}]: <!--
 
<tr><td style="font-size:70%"><span class="plainlinks">[http://translate.google.com {{{title|Google ''translations''}}}]: <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cid&hl=id&ie=UTF-8&oe=UTF-8 {{#language:id}}] <!--
+
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Caf&hl=af&ie=UTF-8&oe=UTF-8 {{#language:af}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cid&hl=id&ie=UTF-8&oe=UTF-8 {{#language:id}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cms&hl=ms&ie=UTF-8&oe=UTF-8 {{#language:ms}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbe&hl=be&ie=UTF-8&oe=UTF-8 {{#language:be}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbg&hl=bg&ie=UTF-8&oe=UTF-8 {{#language:bg}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbg&hl=bg&ie=UTF-8&oe=UTF-8 {{#language:bg}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cca&hl=ca&ie=UTF-8&oe=UTF-8 {{#language:ca}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cca&hl=ca&ie=UTF-8&oe=UTF-8 {{#language:ca}}] <!--
Line 8: Line 11:
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&zh-CN=en&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&zh-CN=en&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-TW&hl=zh-TW&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-TW&hl=zh-TW&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ccy&hl=cy&ie=UTF-8&oe=UTF-8 {{#language:cy}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cda&hl=da&ie=UTF-8&oe=UTF-8 {{#language:da}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cda&hl=da&ie=UTF-8&oe=UTF-8 {{#language:da}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=de&ie=UTF-8&oe=UTF-8 {{#language:de}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=de&ie=UTF-8&oe=UTF-8 {{#language:de}}] <!--
Line 14: Line 18:
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=es&ie=UTF-8&oe=UTF-8 {{#language:es}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=es&ie=UTF-8&oe=UTF-8 {{#language:es}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=fr&ie=UTF-8&oe=UTF-8 {{#language:fr}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=fr&ie=UTF-8&oe=UTF-8 {{#language:fr}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cga&hl=ga&ie=UTF-8&oe=UTF-8 {{#language:ga}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cgl&hl=gl&ie=UTF-8&oe=UTF-8 {{#language:gl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cgl&hl=gl&ie=UTF-8&oe=UTF-8 {{#language:gl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chi&hl=hi&ie=UTF-8&oe=UTF-8 {{#language:hi}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chi&hl=hi&ie=UTF-8&oe=UTF-8 {{#language:hi}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chr&hl=hr&ie=UTF-8&oe=UTF-8 {{#language:hr}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chr&hl=hr&ie=UTF-8&oe=UTF-8 {{#language:hr}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cis&hl=is&ie=UTF-8&oe=UTF-8 {{#language:is}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=it&ie=UTF-8&oe=UTF-8 {{#language:it}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=it&ie=UTF-8&oe=UTF-8 {{#language:it}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cja&hl=ja&ie=UTF-8&oe=UTF-8 {{#language:ja}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cja&hl=ja&ie=UTF-8&oe=UTF-8 {{#language:ja}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csw&hl=sw&ie=UTF-8&oe=UTF-8 {{#language:sw}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cko&hl=ko&ie=UTF-8&oe=UTF-8 {{#language:ko}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cko&hl=ko&ie=UTF-8&oe=UTF-8 {{#language:ko}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clv&hl=lv&ie=UTF-8&oe=UTF-8 {{#language:lv}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clv&hl=lv&ie=UTF-8&oe=UTF-8 {{#language:lv}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clt&hl=lt&ie=UTF-8&oe=UTF-8 {{#language:lt}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clt&hl=lt&ie=UTF-8&oe=UTF-8 {{#language:lt}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chu&hl=hu&ie=UTF-8&oe=UTF-8 {{#language:hu}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chu&hl=hu&ie=UTF-8&oe=UTF-8 {{#language:hu}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cmk&hl=mk&ie=UTF-8&oe=UTF-8 {{#language:mk}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cmt&hl=mt&ie=UTF-8&oe=UTF-8 {{#language:mt}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cmt&hl=mt&ie=UTF-8&oe=UTF-8 {{#language:mt}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cnl&hl=nl&ie=UTF-8&oe=UTF-8 {{#language:nl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cnl&hl=nl&ie=UTF-8&oe=UTF-8 {{#language:nl}}] <!--
Line 34: Line 42:
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csl&hl=sl&ie=UTF-8&oe=UTF-8 {{#language:sl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csl&hl=sl&ie=UTF-8&oe=UTF-8 {{#language:sl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csr&hl=sr&ie=UTF-8&oe=UTF-8 {{#language:sr}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csr&hl=sr&ie=UTF-8&oe=UTF-8 {{#language:sr}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfi&hl=fi&ie=UTF-8&oe=UTF-8 {{#language:fi}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csv&hl=sv&ie=UTF-8&oe=UTF-8 {{#language:sv}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csv&hl=sv&ie=UTF-8&oe=UTF-8 {{#language:sv}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfi&hl=fi&ie=UTF-8&oe=UTF-8 {{#language:fi}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfi&hl=fi&ie=UTF-8&oe=UTF-8 {{#language:fi}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cth&hl=th&ie=UTF-8&oe=UTF-8 {{#language:th}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cth&hl=th&ie=UTF-8&oe=UTF-8 {{#language:th}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctl&hl=tl&ie=UTF-8&oe=UTF-8 {{#language:tl}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctl&hl=tl&ie=UTF-8&oe=UTF-8 {{#language:tl}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cvi&hl=vi&ie=UTF-8&oe=UTF-8 {{#language:vi}}] <!-- -->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctr&hl=tr&ie=UTF-8&oe=UTF-8 {{#language:tr}}] <!--
+
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cvi&hl=vi&ie=UTF-8&oe=UTF-8 {{#language:vi}}] <!--
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctr&hl=tr&ie=UTF-8&oe=UTF-8 {{#language:tr}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cuk&hl=uk&ie=UTF-8&oe=UTF-8 {{#language:uk}}] <!--
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cuk&hl=uk&ie=UTF-8&oe=UTF-8 {{#language:uk}}] <!--
 
Right-to-left languages
 
Right-to-left languages
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=ar&ie=UTF-8&oe=UTF-8 {{#language:ar}}] <!-- Arabic
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=ar&ie=UTF-8&oe=UTF-8 {{#language:ar}}] <!-- Arabic
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ciw&hl=iw&ie=UTF-8&oe=UTF-8 {{#language:he}}] <!-- Hebrew
 
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ciw&hl=iw&ie=UTF-8&oe=UTF-8 {{#language:he}}] <!-- Hebrew
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfa&hl=fa&ie=UTF-8&oe=UTF-8 {{#language:fa}}]</span></td> <!-- Persian -->
+
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfa&hl=fa&ie=UTF-8&oe=UTF-8 {{#language:fa}}] <!-- Persian
 +
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cyi&hl=yi&ie=UTF-8&oe=UTF-8 {{#language:yi}}]</span></td> <!-- Yiddish -->
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 60: Line 71:
  
 
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:
 
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 ({{#language:es}})
+
See http://translate.google.com for languages.
* sq - Albanian ({{#language:sq}})
 
* ar - Arabic ({{#language:ar}})
 
* bg - Bulgarian ({{#language:bg}})
 
* ca - Catalan ({{#language:ca}})
 
* zh-CN - Chinese (Simplified) ({{#language:zh-CN}})
 
* zh-TW - Chinese (Traditional) ({{#language:zh-TW}})
 
* hr - Croatian ({{#language:hr}})
 
* cs - Czech ({{#language:cs}})
 
* da - Danish ({{#language:da}})
 
* nl - Dutch ({{#language:nl}})
 
* et - Estonian ({{#language:et}})
 
* tl - Filipino ({{#language:tl}})
 
* fi - Finnish ({{#language:fi}})
 
* fr - French ({{#language:fr}})
 
* gl - Galician ({{#language:gl}})
 
* de - German ({{#language:de}})
 
* el - Greek ({{#language:el}})
 
* iw/he - Hebrew ({{#language:he}}) iw for Google Translate, he for MediaWiki (ISO-639)
 
* hi - Hindi ({{#language:hi}})
 
* hu - Hungarian ({{#language:hu}})
 
* id - Indonesian ({{#language:id}})
 
* it - Italian ({{#language:it}})
 
* ja - Japanese ({{#language:ja}})
 
* ko - Korean ({{#language:ko}})
 
* lv - Latvian ({{#language:lv}})
 
* lt - Lithuanian ({{#language:lt}})
 
* mt - Maltese ({{#language:mt}})
 
* no - Norwegian ({{#language:no}})
 
* fa - Persian ({{#language:fa}})
 
* pl - Polish({{#language:pl}})
 
* pt - Portuguese ({{#language:pt}})
 
* ro - Romanian ({{#language:ro}})
 
* ru - Russian ({{#language:ru}})
 
* sr - Serbian ({{#language:sr}})
 
* sk - Slovak ({{#language:sk}})
 
* sl - Slovenian ({{#language:sl}})
 
* sv - Swedish ({{#language:sv}})
 
* th - Thai ({{#language:th}})
 
* tr - Turkish ({{#language:tr}})
 
* uk - Ukrainian ({{#language:uk}})
 
* vi - Vietnamese ({{#language:vi}})
 
 
 
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 ==
 
== Usage ==

Revision as of 23:49, 10 September 2009



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: See http://translate.google.com for languages.

Usage

  • The link structure contains a langpair=aa|aa (e.g., &langpair=en%7Ces) parameter and a header language parameter hl=aa (e.g., &hl=es), which controls the language for the Google Translate header labels and text.
  • See Template:GoogleTrans-en2 for a version that allows optional exclusion of languages. For simplification the default is to show all available. Human translators may lag primary editors.

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 for Hebrew (עברית); #language:iw is not working.

Sample

  1. all languages included:
    {{GoogleTrans-en}}