Template:GoogleTrans-de: Difference between revisions

From OLPC
Jump to navigation Jump to search
(German version of GoogleTrans-xx)
 
(refactoring)
 
Line 1: Line 1:

<span class="plainlinks">''{{{title|GoogleTrans-de}}}
<span class="plainlinks">''{{{title|GoogleTrans-de}}}
{{#if:{{{en|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cen&hl=de&ie=UTF-8&oe=UTF-8 {{#language:en}}]}}
{{#if:{{{en|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cen&hl=de&ie=UTF-8&oe=UTF-8 {{#language:en}}]}}
{{#if:{{{es|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Ces&hl=de&ie=UTF-8&oe=UTF-8 {{#language:es}}]}}
{{#if:{{{es|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Ces&hl=de&ie=UTF-8&oe=UTF-8 {{#language:es}}]}}
{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cfr&hl=de&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}
{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cfr&hl=de&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}
{{#if:{{{bg|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cbg&hl=de&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}
{{#if:{{{bg|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cbg&hl=de&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}
{{#if:{{{zh-TW|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Czh-TW&hl=de&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}]}}
{{#if:{{{zh-TW|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Czh-TW&hl=de&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}]}}
{{#if:{{{zh-CN|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Czh-CN&hl=de&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}}
{{#if:{{{zh-CN|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Czh-CN&hl=de&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}}
{{#if:{{{hr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Chr&hl=de&ie=UTF-8&oe=UTF-8 {{#language:hr}}]}}
{{#if:{{{hr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Chr&hl=de&ie=UTF-8&oe=UTF-8 {{#language:hr}}]}}
{{#if:{{{cs|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Ccs&hl=de&ie=UTF-8&oe=UTF-8 {{#language:cs}}]}}
{{#if:{{{cs|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Ccs&hl=de&ie=UTF-8&oe=UTF-8 {{#language:cs}}]}}
{{#if:{{{da|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cda&hl=de&ie=UTF-8&oe=UTF-8 {{#language:da}}]}}
{{#if:{{{da|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cda&hl=de&ie=UTF-8&oe=UTF-8 {{#language:da}}]}}
{{#if:{{{nl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cnl&hl=de&ie=UTF-8&oe=UTF-8 {{#language:nl}}]}}
{{#if:{{{nl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cnl&hl=de&ie=UTF-8&oe=UTF-8 {{#language:nl}}]}}
{{#if:{{{fi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cfi&hl=de&ie=UTF-8&oe=UTF-8 {{#language:fi}}]}}
{{#if:{{{fi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cfi&hl=de&ie=UTF-8&oe=UTF-8 {{#language:fi}}]}}
{{#if:{{{el|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cel&hl=de&ie=UTF-8&oe=UTF-8 {{#language:el}}]}}
{{#if:{{{el|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cel&hl=de&ie=UTF-8&oe=UTF-8 {{#language:el}}]}}
{{#if:{{{hi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Chi&hl=de&ie=UTF-8&oe=UTF-8 {{#language:hi}}]}}
{{#if:{{{hi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Chi&hl=de&ie=UTF-8&oe=UTF-8 {{#language:hi}}]}}
{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cit&hl=de&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}
{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cit&hl=de&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}
{{#if:{{{ja|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cja&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ja}}]}}
{{#if:{{{ja|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cja&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ja}}]}}
{{#if:{{{ko|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cko&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ko}}]}}
{{#if:{{{ko|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cko&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ko}}]}}
{{#if:{{{no|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cno&hl=de&ie=UTF-8&oe=UTF-8 {{#language:no}}]}}
{{#if:{{{no|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cno&hl=de&ie=UTF-8&oe=UTF-8 {{#language:no}}]}}
{{#if:{{{pl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cpl&hl=de&ie=UTF-8&oe=UTF-8 {{#language:pl}}]}}
{{#if:{{{pl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cpl&hl=de&ie=UTF-8&oe=UTF-8 {{#language:pl}}]}}
{{#if:{{{pt|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cpt&hl=de&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}}
{{#if:{{{pt|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cpt&hl=de&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}}
{{#if:{{{ro|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cro&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ro}}]}}
{{#if:{{{ro|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cro&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ro}}]}}
{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Cru&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}
{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Cru&hl=de&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}
{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=zh-CN%7Csv&hl=de&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}
{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=de%7Csv&hl=de&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}
</span>
</span>



Latest revision as of 02:11, 30 May 2008

GoogleTrans-de














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

start-lang - bg

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:

  • en - English(English)
  • es - Spanish(español)
  • fr - French(français)
  • bg - Bulgarian (български)
  • zh-TW - Chinese (Traditional) (中文(臺灣))
  • zh-CN - Chinese (Simplified) (中文(中国大陆))
  • hr - Croatian (hrvatski)
  • cs - Czech (čeština)
  • da - Danish (dansk)
  • nl - Dutch (Nederlands)
  • fi - Finnish (suomi)
  • 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-bg
   | en = show     <!-- OPTIONAL -- shows link for English translation -->
   | es = show     <!-- OPTIONAL -- shows link for Spanish translation -->
   | fr = show     <!-- OPTIONAL -- shows link for French translation -->
   | bg = show     <!-- OPTIONAL -- shows link for Bulgarian  translation -->
   | zh-TW = show     <!-- OPTIONAL -- shows link for Chinese (Traditional)  translation -->
   | zh-CN = show     <!-- OPTIONAL -- shows link for Chinese (Simplified)  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 -->
   | 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 before release and Arabic can be re-inserted.


Sample

# all languages included

{{ GoogleTrans-de | en =show | es =show | fr =show | bg =show | zh-TW =show | zh-CN =show | hr =show | cs =show | da =show | nl =show | fi =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show }}


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