Difference between revisions of "Template:GoogleTrans-en"

From Sugar Labs
Jump to navigation Jump to search
(added new languages)
Line 1: Line 1:
 
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px; padding-left:0.7em; background-color:#d0e6f9;">
 
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px; padding-left:0.7em; background-color:#d0e6f9;">
 
<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''}}}]: <!--
-->{{#if:{{{es|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8 {{#language:es}}]}}<!--
+
-->{{#if:{{{es|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8 {{#language:es}}]}} <!--
-->{{#if:{{{bg|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cbg&hl=es&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}<!--
+
-->{{#if:{{{sq|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csq&hl=en&ie=UTF-8&oe=UTF-8 {{#language:sq}}]}} <!--
-->{{#if:{{{zh-CN|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Czh-CN&hl=es&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}}<!--
+
-->{{#if:{{{bg|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbg&hl=en&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}} <!--
-->{{#if:{{{zh-TW|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Czh-TW&hl=es&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}]}}<!--
+
-->{{#if:{{{ca|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cca&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ca}}]}} <!--
-->{{#if:{{{hr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Chr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:hr}}]}}<!--
+
-->{{#if:{{{zh-CN|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&hl=en&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}} <!--
-->{{#if:{{{cs|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Ccs&hl=es&ie=UTF-8&oe=UTF-8 {{#language:cs}}]}}<!--
+
-->{{#if:{{{zh-TW|}}}| [http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-TW&hl=en&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}]}} <!--
-->{{#if:{{{da|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cda&hl=es&ie=UTF-8&oe=UTF-8 {{#language:da}}]}}<!--
+
-->{{#if:{{{hr|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chr&hl=en&ie=UTF-8&oe=UTF-8 {{#language:hr}}]}} <!--
-->{{#if:{{{nl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cnl&hl=es&ie=UTF-8&oe=UTF-8 {{#language:nl}}]}}<!--
+
-->{{#if:{{{cs|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ccs&hl=en&ie=UTF-8&oe=UTF-8 {{#language:cs}}]}} <!--
-->{{#if:{{{fi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfi&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fi}}]}}<!--
+
-->{{#if:{{{da|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cda&hl=en&ie=UTF-8&oe=UTF-8 {{#language:da}}]}} <!--
-->{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}<!--
+
-->{{#if:{{{nl|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cnl&hl=en&ie=UTF-8&oe=UTF-8 {{#language:nl}}]}} <!--
-->{{#if:{{{de|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cde&hl=es&ie=UTF-8&oe=UTF-8 {{#language:de}}]}}<!--
+
-->{{#if:{{{et|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cet&hl=en&ie=UTF-8&oe=UTF-8 {{#language:et}}]}} <!--
-->{{#if:{{{el|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cel&hl=es&ie=UTF-8&oe=UTF-8 {{#language:el}}]}}<!--
+
-->{{#if:{{{tl|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctl&hl=en&ie=UTF-8&oe=UTF-8 {{#language:tl}}]}} <!--
-->{{#if:{{{hi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Chi&hl=es&ie=UTF-8&oe=UTF-8 {{#language:hi}}]}}<!--
+
-->{{#if:{{{fi|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfi&hl=en&ie=UTF-8&oe=UTF-8 {{#language:fi}}]}} <!--
-->{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cit&hl=es&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}<!--
+
-->{{#if:{{{fr|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}} <!--
-->{{#if:{{{ja|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cja&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ja}}]}}<!--
+
-->{{#if:{{{gl|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cgl&hl=en&ie=UTF-8&oe=UTF-8 {{#language:gl}}]}} <!--
-->{{#if:{{{ko|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cko&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ko}}]}}<!--
+
-->{{#if:{{{de|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8 {{#language:de}}]}} <!--
-->{{#if:{{{no|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cno&hl=es&ie=UTF-8&oe=UTF-8 {{#language:no}}]}}<!--
+
-->{{#if:{{{el|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cel&hl=en&ie=UTF-8&oe=UTF-8 {{#language:el}}]}} <!--
-->{{#if:{{{pl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cpl&hl=es&ie=UTF-8&oe=UTF-8 {{#language:pl}}]}}<!--
+
-->{{#if:{{{hi|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chi&hl=en&ie=UTF-8&oe=UTF-8 {{#language:hi}}]}} <!--
-->{{#if:{{{pt|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cpt&hl=es&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}}<!--
+
-->{{#if:{{{hu|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Chu&hl=en&ie=UTF-8&oe=UTF-8 {{#language:hu}}]}} <!--
-->{{#if:{{{ro|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cro&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ro}}]}}<!--
+
-->{{#if:{{{id|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cid&hl=en&ie=UTF-8&oe=UTF-8 {{#language:id}}]}} <!--
-->{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cru&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}<!--
+
-->{{#if:{{{it|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8 {{#language:it}}]}} <!--
-->{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Csv&hl=es&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}</span></td>
+
-->{{#if:{{{ja|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cja&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ja}}]}} <!--
 +
-->{{#if:{{{ko|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cko&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ko}}]}} <!--
 +
-->{{#if:{{{lv|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clv&hl=en&ie=UTF-8&oe=UTF-8 {{#language:lv}}]}} <!--
 +
-->{{#if:{{{lt|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Clt&hl=en&ie=UTF-8&oe=UTF-8 {{#language:lt}}]}} <!--
 +
-->{{#if:{{{mt|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cmt&hl=en&ie=UTF-8&oe=UTF-8 {{#language:mt}}]}} <!--
 +
-->{{#if:{{{no|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cno&hl=en&ie=UTF-8&oe=UTF-8 {{#language:no}}]}} <!--
 +
-->{{#if:{{{pl|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpl&hl=en&ie=UTF-8&oe=UTF-8 {{#language:pl}}]}} <!--
 +
-->{{#if:{{{pt|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}} <!--
 +
-->{{#if:{{{ro|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cro&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ro}}]}} <!--
 +
-->{{#if:{{{ru|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}} <!--
 +
-->{{#if:{{{sr|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csr&hl=en&ie=UTF-8&oe=UTF-8 {{#language:sr}}]}} <!--
 +
-->{{#if:{{{sk|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csk&hl=en&ie=UTF-8&oe=UTF-8 {{#language:sk}}]}} <!--
 +
-->{{#if:{{{sl|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csl&hl=en&ie=UTF-8&oe=UTF-8 {{#language:sl}}]}} <!--
 +
-->{{#if:{{{sv|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csv&hl=en&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}} <!--
 +
-->{{#if:{{{th|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cth&hl=en&ie=UTF-8&oe=UTF-8 {{#language:th}}]}} <!--
 +
-->{{#if:{{{tr|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ctr&hl=en&ie=UTF-8&oe=UTF-8 {{#language:tr}}]}} <!--
 +
-->{{#if:{{{uk|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cuk&hl=en&ie=UTF-8&oe=UTF-8 {{#language:uk}}]}} <!--
 +
-->{{#if:{{{vi|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cvi&hl=en&ie=UTF-8&oe=UTF-8 {{#language:vi}}]}} <!-- Right-to-left languages
 +
-->{{#if:{{{ar|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ar}}]}} <!-- Hebrew
 +
-->{{#if:{{{iw|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ciw&hl=en&ie=UTF-8&oe=UTF-8 {{#language:he}}]}} <!--
 +
-->{{#if:{{{fa|}}}|[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfa&hl=en&ie=UTF-8&oe=UTF-8 {{#language:fa}}]}}</span></td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 
</div>
 
</div>
 +
 
[[Category:Machine translation]]
 
[[Category:Machine translation]]
 
<noinclude>
 
<noinclude>
Line 39: Line 60:
  
 
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}})
+
* es - Spanish ({{#language:es}})
 +
* sq - Albanian ({{#language:sq}})
 +
* ar - Arabic ({{#language:ar}})
 
* bg - Bulgarian ({{#language:bg}})
 
* bg - Bulgarian ({{#language:bg}})
 +
* ca - Catalan ({{#language:ca}})
 
* zh-CN - Chinese (Simplified) ({{#language:zh-CN}})
 
* zh-CN - Chinese (Simplified) ({{#language:zh-CN}})
 
* zh-TW - Chinese (Traditional) ({{#language:zh-TW}})
 
* zh-TW - Chinese (Traditional) ({{#language:zh-TW}})
Line 47: Line 71:
 
* da - Danish ({{#language:da}})
 
* da - Danish ({{#language:da}})
 
* nl - Dutch ({{#language:nl}})
 
* nl - Dutch ({{#language:nl}})
 +
* et - Estonian ({{#language:et}})
 +
* tl - Filipino ({{#language:tl}})
 
* fi - Finnish ({{#language:fi}})
 
* fi - Finnish ({{#language:fi}})
 
* fr - French ({{#language:fr}})
 
* fr - French ({{#language:fr}})
 +
* gl - Galician ({{#language:gl}})
 
* de - German ({{#language:de}})
 
* de - German ({{#language:de}})
 
* el - Greek ({{#language:el}})
 
* el - Greek ({{#language:el}})
 +
* iw/he - Hebrew ({{#language:he}}) iw for Google Translate, he for MediaWiki (ISO-639)
 
* hi - Hindi ({{#language:hi}})
 
* hi - Hindi ({{#language:hi}})
 +
* hu - Hungarian ({{#language:hu}})
 +
* id - Indonesian ({{#language:id}})
 
* it - Italian ({{#language:it}})
 
* it - Italian ({{#language:it}})
 
* ja - Japanese ({{#language:ja}})
 
* ja - Japanese ({{#language:ja}})
 
* ko - Korean ({{#language:ko}})
 
* ko - Korean ({{#language:ko}})
 +
* lv - Latvian ({{#language:lv}})
 +
* lt - Lithuanian ({{#language:lt}})
 +
* mt - Maltese ({{#language:mt}})
 
* no - Norwegian ({{#language:no}})
 
* no - Norwegian ({{#language:no}})
 +
* fa - Persian ({{#language:fa}})
 
* pl - Polish({{#language:pl}})
 
* pl - Polish({{#language:pl}})
 
* pt - Portuguese ({{#language:pt}})
 
* pt - Portuguese ({{#language:pt}})
 
* ro - Romanian ({{#language:ro}})
 
* ro - Romanian ({{#language:ro}})
 
* ru - Russian ({{#language:ru}})
 
* ru - Russian ({{#language:ru}})
* sv - Swedish({{#language:sv}})
+
* 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 ==
Line 67: Line 151:
  
 
  <nowiki>{{</nowiki> GoogleTrans-es
 
  <nowiki>{{</nowiki> GoogleTrans-es
     | title =          &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
+
     | title =          &lt;!-- OPTIONAL -- title (defaults to 'Google Translations' --&gt;
 
     | es = ''show''    &lt;!-- OPTIONAL -- shows link for Spanish translation --&gt;
 
     | es = ''show''    &lt;!-- OPTIONAL -- shows link for Spanish translation --&gt;
 +
    | sq = ''show''    &lt;!-- OPTIONAL -- shows link for Albanian translation --&gt;
 +
    | ar = ''show''    &lt;!-- OPTIONAL -- shows link for Arabic translation --&gt;
 
     | bg = ''show''    &lt;!-- OPTIONAL -- shows link for Bulgarian  translation --&gt;
 
     | bg = ''show''    &lt;!-- OPTIONAL -- shows link for Bulgarian  translation --&gt;
 +
    | ca = ''show''    &lt;!-- OPTIONAL -- shows link for Catalan translation --&gt;
 
     | zh-CN = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Simplified)  translation --&gt;
 
     | zh-CN = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Simplified)  translation --&gt;
 
     | zh-TW = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Traditional)  translation --&gt;
 
     | zh-TW = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Traditional)  translation --&gt;
Line 76: Line 163:
 
     | da = ''show''    &lt;!-- OPTIONAL -- shows link for Danish  translation --&gt;
 
     | da = ''show''    &lt;!-- OPTIONAL -- shows link for Danish  translation --&gt;
 
     | nl = ''show''    &lt;!-- OPTIONAL -- shows link for Dutch  translation --&gt;
 
     | nl = ''show''    &lt;!-- OPTIONAL -- shows link for Dutch  translation --&gt;
 +
    | et = ''show''    &lt;!-- OPTIONAL -- shows link for Estonian translation --&gt;
 +
    | tl = ''show''    &lt;!-- OPTIONAL -- shows link for Filipino translation --&gt;
 
     | fi = ''show''    &lt;!-- OPTIONAL -- shows link for Finnish  translation --&gt;
 
     | fi = ''show''    &lt;!-- OPTIONAL -- shows link for Finnish  translation --&gt;
 
     | fr = ''show''    &lt;!-- OPTIONAL -- shows link for French  translation --&gt;
 
     | fr = ''show''    &lt;!-- OPTIONAL -- shows link for French  translation --&gt;
 +
    | gl = ''show''    &lt;!-- OPTIONAL -- shows link for Galician translation --&gt;
 
     | de = ''show''    &lt;!-- OPTIONAL -- shows link for German  translation --&gt;
 
     | de = ''show''    &lt;!-- OPTIONAL -- shows link for German  translation --&gt;
 
     | el = ''show''    &lt;!-- OPTIONAL -- shows link for Greek  translation --&gt;
 
     | el = ''show''    &lt;!-- OPTIONAL -- shows link for Greek  translation --&gt;
 +
    | iw = ''show''    &lt;!-- OPTIONAL -- shows link for Hebrew translation --&gt;
 
     | hi = ''show''    &lt;!-- OPTIONAL -- shows link for Hindi  translation --&gt;
 
     | hi = ''show''    &lt;!-- OPTIONAL -- shows link for Hindi  translation --&gt;
 +
    | hu = ''show''    &lt;!-- OPTIONAL -- shows link for Hungarian translation --&gt;
 +
    | id = ''show''    &lt;!-- OPTIONAL -- shows link for Indonesian translation --&gt;
 
     | it = ''show''    &lt;!-- OPTIONAL -- shows link for Italian  translation --&gt;
 
     | it = ''show''    &lt;!-- OPTIONAL -- shows link for Italian  translation --&gt;
 
     | ja = ''show''    &lt;!-- OPTIONAL -- shows link for Japanese  translation --&gt;
 
     | ja = ''show''    &lt;!-- OPTIONAL -- shows link for Japanese  translation --&gt;
 
     | ko = ''show''    &lt;!-- OPTIONAL -- shows link for Korean  translation --&gt;
 
     | ko = ''show''    &lt;!-- OPTIONAL -- shows link for Korean  translation --&gt;
 +
    | lv = ''show''    &lt;!-- OPTIONAL -- shows link for Latvian translation --&gt;
 +
    | lt = ''show''    &lt;!-- OPTIONAL -- shows link for Lithuanian translation --&gt;
 +
    | mt = ''show''    &lt;!-- OPTIONAL -- shows link for Maltese translation --&gt;
 
     | no = ''show''    &lt;!-- OPTIONAL -- shows link for Norwegian  translation --&gt;
 
     | no = ''show''    &lt;!-- OPTIONAL -- shows link for Norwegian  translation --&gt;
 +
    | fa = ''show''    &lt;!-- OPTIONAL -- shows link for Persian translation --&gt;
 
     | pl = ''show''    &lt;!-- OPTIONAL -- shows link for Polish translation --&gt;
 
     | pl = ''show''    &lt;!-- OPTIONAL -- shows link for Polish translation --&gt;
 
     | pt = ''show''    &lt;!-- OPTIONAL -- shows link for Portuguese  translation --&gt;
 
     | pt = ''show''    &lt;!-- OPTIONAL -- shows link for Portuguese  translation --&gt;
 
     | ro = ''show''    &lt;!-- OPTIONAL -- shows link for Romanian  translation --&gt;
 
     | ro = ''show''    &lt;!-- OPTIONAL -- shows link for Romanian  translation --&gt;
 
     | ru = ''show''    &lt;!-- OPTIONAL -- shows link for Russian  translation --&gt;
 
     | ru = ''show''    &lt;!-- OPTIONAL -- shows link for Russian  translation --&gt;
 +
    | sr = ''show''    &lt;!-- OPTIONAL -- shows link for Serbian translation --&gt;
 +
    | sk = ''show''    &lt;!-- OPTIONAL -- shows link for Slovak translation --&gt;
 +
    | sl = ''show''    &lt;!-- OPTIONAL -- shows link for Slovenian translation --&gt;
 
     | sv = ''show''    &lt;!-- OPTIONAL -- shows link for Swedish translation --&gt;
 
     | sv = ''show''    &lt;!-- OPTIONAL -- shows link for Swedish translation --&gt;
 +
    | th = ''show''    &lt;!-- OPTIONAL -- shows link for Thai translation --&gt;
 +
    | tr = ''show''    &lt;!-- OPTIONAL -- shows link for Turkish translation --&gt;
 +
    | uk = ''show''    &lt;!-- OPTIONAL -- shows link for Ukrainian translation --&gt;
 +
    | vi = ''show''    &lt;!-- OPTIONAL -- shows link for Vietnamese translation --&gt;
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
 
== Known Issues ==
 
== Known Issues ==
  
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.
+
* 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:he}}) #language:iw is not working.
  
 
== Sample ==
 
== Sample ==
  
# all languages included
+
# all languages included:<br><code><nowiki>{{</nowiki> 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 <nowiki>}}</nowiki></code>
<nowiki>{{</nowiki> GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show <nowiki>}}</nowiki>
 
  
{{GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show}}
+
{{GoogleTrans-en | 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 }}
  
 
[[Category:Template|{{PAGENAME}}]]
 
[[Category:Template|{{PAGENAME}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude>

Revision as of 00:03, 25 June 2009

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 العربية עברית فارسی