Template:GoogleTrans-en: Difference between revisions

From OLPC
Jump to navigation Jump to search
(..)
m (Protected "Template:GoogleTrans-en": widely used template [edit=sysop:move=sysop])
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"><small>
<span class="plainlinks" style="font-size:80%">''{{{title|GoogleTrans-en}}}
<span class="plainlinks" style="font-size:80%">''{{{title|Translate this page with Google}}}
{{#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=en%7Cbg&hl=es&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}
{{#if:{{{bg|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cbg&hl=es&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}
Line 22: Line 23:
{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}
{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}
{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csv&hl=es&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}
{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Csv&hl=es&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}
</span>
</span></small>
</div>

[[Category:Machine translation]]
[[Category:Machine translation]]



Latest revision as of 00:05, 20 February 2009

Translate this page with Google














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)
  • bg - Bulgarian (български)
  • zh-CN - Chinese (Simplified) (中文(中国大陆))
  • zh-TW - Chinese (Traditional) (中文(臺灣))
  • hr - Croatian (hrvatski)
  • cs - Czech (čeština)
  • da - Danish (dansk)
  • nl - Dutch (Nederlands)
  • fi - Finnish (suomi)
  • fr - French (français)
  • de - German (Deutsch)
  • el - Greek (Ελληνικά)
  • hi - Hindi (हिन्दी)
  • it - Italian (italiano)
  • ja - Japanese (日本語)
  • ko - Korean (한국어)
  • no - Norwegian (norsk)
  • pl - Polish(polski)
  • pt - Portuguese (português)
  • ro - Romanian (română)
  • ru - Russian (русский)
  • sv - Swedish(svenska)

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' -->
   | es = show     <!-- OPTIONAL -- shows link for Spanish translation -->
   | bg = show     <!-- OPTIONAL -- shows link for Bulgarian  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 -->
   | fi = show     <!-- OPTIONAL -- shows link for Finnish  translation -->
   | fr = show     <!-- OPTIONAL -- shows link for French  translation -->
   | de = show     <!-- OPTIONAL -- shows link for German  translation -->
   | el = show     <!-- OPTIONAL -- shows link for Greek  translation -->
   | hi = show     <!-- OPTIONAL -- shows link for Hindi  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 -->
   | no = show     <!-- OPTIONAL -- shows link for Norwegian  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 -->
   | sv = show     <!-- OPTIONAL -- shows link for Swedish translation -->
}}

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 beforer release and Arabic can be re-inserted.


Sample

# all languages included
{{ 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 }}

Translate this page with Google -español -български -中文(中国大陆) -中文(臺灣) -hrvatski -čeština -dansk -Nederlands -suomi -français -Deutsch -Ελληνικά -हिन्दी -italiano -日本語 -한국어 -norsk -polski -português -română -русский -svenska