Template:Gttranslation alt: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="plainlinks">''{{{title|Google}}}
<span class="plainlinks">''{{{title|GoogleTrans}}}
{{#if:{{{ar|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Car&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ar}}]}}
{{#if:{{{de|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cde&hl=es&ie=UTF-8&oe=UTF-8 {{#language:de}}]}}
{{#if:{{{de|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cde&hl=es&ie=UTF-8&oe=UTF-8 {{#language:de}}]}}
{{#if:{{{es|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cen&hl=es&ie=UTF-8&oe=UTF-8 {{#language:es}}]}}
{{#if:{{{en|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cen&hl=es&ie=UTF-8&oe=UTF-8 {{#language:en}}]}}
{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}
{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}
{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cit&hl=es&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}
{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cit&hl=es&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}
Line 21: Line 20:


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:
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}})
* de - german ({{#language:de}})
* en - [[english language|english]] ({{#language:en}})
* en - [[english language|english]] ({{#language:en}})
Line 35: Line 33:
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.
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.


<nowiki>{{</nowiki> GTranslations
<nowiki>{{</nowiki> Gttranslation_alt
| title = &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
| 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;
| de = ''show'' &lt;!-- OPTIONAL -- shows link for german translation --&gt;
| en = ''show'' &lt;!-- OPTIONAL -- shows link for english translation --&gt;
| en = ''show'' &lt;!-- OPTIONAL -- shows link for english translation --&gt;
Line 52: Line 49:


# all languages included
# all languages included
<nowiki>{{</nowiki> GTranslations | ar=show | de=show | en=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show <nowiki>}}</nowiki>
<nowiki>{{</nowiki> Gttranslation_alt | de=show | en=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show <nowiki>}}</nowiki>
{{ Gttranslation_alt | ar=show | de=show | en=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show }}
{{ Gttranslation_alt | de=show | en=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 18:00, 12 May 2008

GoogleTrans







Created from Google Translations without the translation needed For on the fly translations

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:

  • de - german (Deutsch)
  • en - english (English)
  • fr - french (français)
  • it - italian (italiano)
  • ja - japanese (日本語)
  • ko - korean (한국어)
  • ru - russian (русский)
  • zh - chinese (simplified) (中文)

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.

{{ Gttranslation_alt
   | title =       <!-- OPTIONAL -- title (defaults to 'Google' -->
   | de = show     <!-- OPTIONAL -- shows link for german translation -->
   | en = show     <!-- OPTIONAL -- shows link for english translation -->
   | fr = show     <!-- OPTIONAL -- shows link for french 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 -->
   | pt = show     <!-- OPTIONAL -- shows link for portuguese translation -->
   | ru = show     <!-- OPTIONAL -- shows link for russing translation -->
   | zh = show     <!-- OPTIONAL -- shows link for chinese (simplified) translation -->
}}

Sample

# all languages included
{{ Gttranslation_alt | de=show | en=show | fr=show | it=show | ja=show | ko=show | pt=show | ru=show | zh=show }}

GoogleTrans -Deutsch -English -français -italiano -日本語 -한국어 -português -русский -中文(中国大陆)