Template:Google Translations: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (too hard to change Category:Wanted translation to plural)
(Esperanto)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="noprint" style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px; padding-left:0.7em; background-color:#d0e6f9;">
<span class="plainlinks">''{{{title|Google}}}{{#if:{{{ar|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ar}}]}}{{#if:{{{de|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8 {{#language:de}}]}}{{#if:{{{es|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8 {{#language:es}}]}}{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}{{#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:{{{pt|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}}{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=en&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}{{#if:{{{zh|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&hl=en&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}}''</span>
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey">
[[Category:Wanted translation|{{PAGENAME}}]]
<tr><td style="font-size:70%"><span class="plainlinks">[http://translate.google.com {{{title|Google ''translations''}}}]: <!--
[[Category:Wanted translation{{#if:{{{ar|}}}|s lang-ar}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Caf&hl=af&ie=UTF-8&oe=UTF-8 {{#language:af}}] <!--
[[Category:Wanted translation{{#if:{{{de|}}}|s lang-de}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=ar&ie=UTF-8&oe=UTF-8 {{#language:ar}}] <!--
[[Category:Wanted translation{{#if:{{{es|}}}|s lang-es}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Caz&hl=az&ie=UTF-8&oe=UTF-8 {{#language:az}}] <!--
[[Category:Wanted translation{{#if:{{{fr|}}}|s lang-fr}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cid&hl=id&ie=UTF-8&oe=UTF-8 {{#language:id}}] <!--
[[Category:Wanted translation{{#if:{{{it|}}}|s lang-it}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cms&hl=ms&ie=UTF-8&oe=UTF-8 {{#language:ms}}] <!--
[[Category:Wanted translation{{#if:{{{ja|}}}|s lang-ja}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbe&hl=be&ie=UTF-8&oe=UTF-8 {{#language:be}}] <!--
[[Category:Wanted translation{{#if:{{{ko|}}}|s lang-ko}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbn&hl=bn&ie=UTF-8&oe=UTF-8 {{#language:bn}}] <!--
[[Category:Wanted translation{{#if:{{{pt|}}}|s lang-pt}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbg&hl=bg&ie=UTF-8&oe=UTF-8 {{#language:bg}}] <!--
[[Category:Wanted translation{{#if:{{{ru|}}}|s lang-ru}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cca&hl=ca&ie=UTF-8&oe=UTF-8 {{#language:ca}}] <!--
[[Category:Wanted translation{{#if:{{{zh|}}}|s lang-zh}}|{{PAGENAME}}]]
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ccs&hl=cs&ie=UTF-8&oe=UTF-8 {{#language:cs}}] <!--
-->[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%7Cde&hl=de&ie=UTF-8&oe=UTF-8 {{#language:de}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cet&hl=et&ie=UTF-8&oe=UTF-8 {{#language:et}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cel&hl=el&ie=UTF-8&oe=UTF-8 {{#language:el}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=auto%7Cen&hl=en&ie=UTF-8&oe=UTF-8 {{#language:en}}] <!--
-->[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%7Ceo&hl=eo&ie=UTF-8&oe=UTF-8 {{#language:eo}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ceu&hl=eu&ie=UTF-8&oe=UTF-8 {{#language:eu}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfa&hl=fa&ie=UTF-8&oe=UTF-8 {{#language:fa}}] <!--
-->[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%7Cgu&hl=gu&ie=UTF-8&oe=UTF-8 {{#language:gu}}] <!--
-->[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%7Ciw&hl=iw&ie=UTF-8&oe=UTF-8 {{#language:he}}] <!--
-->[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%7Chy&hl=hy&ie=UTF-8&oe=UTF-8 {{#language:hy}}] <!--
-->[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%7Cka&hl=ka&ie=UTF-8&oe=UTF-8 {{#language:ka}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ckn&hl=kn&ie=UTF-8&oe=UTF-8 {{#language:kn}}] <!--
-->[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%7Cht&hl=gl&ie=UTF-8&oe=UTF-8 {{#language:ht}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cla&hl=la&ie=UTF-8&oe=UTF-8 {{#language:la}}] <!--
-->[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%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%7Cnl&hl=nl&ie=UTF-8&oe=UTF-8 {{#language:nl}}] <!--
-->[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%7Cno&hl=no&ie=UTF-8&oe=UTF-8 {{#language:no}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpl&hl=pl&ie=UTF-8&oe=UTF-8 {{#language:pl}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpt&hl=pt&ie=UTF-8&oe=UTF-8 {{#language:pt}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cro&hl=ro&ie=UTF-8&oe=UTF-8 {{#language:ro}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=ru&ie=UTF-8&oe=UTF-8 {{#language:ru}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csq&hl=sq&ie=UTF-8&oe=UTF-8 {{#language:sq}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csk&hl=sk&ie=UTF-8&oe=UTF-8 {{#language:sk}}] <!--
-->[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%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%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%7Cta&hl=ta&ie=UTF-8&oe=UTF-8 {{#language:ta}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cte&hl=te&ie=UTF-8&oe=UTF-8 {{#language:te}}] <!--
-->[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%7Cur&hl=ur&ie=UTF-8&oe=UTF-8 {{#language:ur}}] <!--
-->[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cyi&hl=yi&ie=UTF-8&oe=UTF-8 {{#language:yi}}] <!--
-->[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}}]
</span></td>
</tr>
</table>
</div>

[[Category:Machine translation]]
<noinclude>
<noinclude>


----
----


Created from '''Google Translations''' without the translation needed
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 language|arabic]] ({{#language:ar}})
* de - german ({{#language:de}})
* es - [[spanish language|spanish]] ({{#language:es}})
* fr - [[french language|french]] ({{#language:fr}})
* it - italian ({{#language:it}})
* ja - [[japanese]] ({{#language:ja}})
* ko - [[korean language|korean]] ({{#language:ko}})
* ru - [[russian]] ({{#language:ru}})
* zh - [[chinese]] (simplified) ({{#language:zh}})


For on the fly translations
== Usage ==


start-lang - en
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 "<tt>show</tt>" and will not be included. When a human translation becomes available, just remove the parameter for the given language.


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:
<nowiki>{{</nowiki> Google Translations
See http://translate.google.com for languages.
| title = &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
| ar = ''show'' &lt;!-- OPTIONAL -- shows link for arabic translation --&gt;
| de = ''show'' &lt;!-- OPTIONAL -- shows link for german translation --&gt;
| es = ''show'' &lt;!-- OPTIONAL -- shows link for spanish translation --&gt;
| fr = ''show'' &lt;!-- OPTIONAL -- shows link for french translation --&gt;
| it = ''show'' &lt;!-- OPTIONAL -- shows link for italian translation --&gt;
| ja = ''show'' &lt;!-- OPTIONAL -- shows link for japanese translation --&gt;
| ko = ''show'' &lt;!-- OPTIONAL -- shows link for korean translation --&gt;
| pt = ''show'' &lt;!-- OPTIONAL -- shows link for portuguese translation --&gt;
| ru = ''show'' &lt;!-- OPTIONAL -- shows link for russing translation --&gt;
| zh = ''show'' &lt;!-- OPTIONAL -- shows link for chinese (simplified) translation --&gt;
<nowiki>}}</nowiki>


== Categories ==
== 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.
* The page is added to [[:Category:Wanted translation]]
* See http://wiki.sugarlabs.org/go/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.
* For each requested translation language (ar, de, etc.) the page is added to "Category:Wanted translations ''lang''"

== 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:he}}); #language:iw is not working.


== Sample ==
== Sample ==


# all languages included
# all languages included:<br><code><nowiki>{{</nowiki>Google Translations<nowiki>}}</nowiki></code>

<nowiki>{{</nowiki> Google Translations | ar=show | de=show | es=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show <nowiki>}}</nowiki>
{{Google Translations}}
{{ Google Translations | ar=show | de=show | es=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show }}


[[Category:Template|{{PAGENAME}}]]
[[Category:Template|{{PAGENAME}}]]

Latest revision as of 03:39, 27 April 2012



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 http://wiki.sugarlabs.org/go/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:
    {{Google Translations}}