Template:GoogleTrans-fr: Difference between revisions

From OLPC
Jump to navigation Jump to search
(lang-fr version of GoogleTrans bar)
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:

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

</span>
</span>


Line 34: Line 34:
For on the fly translations
For on the fly translations


start-lang - en
start-lang - fr


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
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
Line 64: Line 64:
== Usage ==
== 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 "<tt>show</tt>" and will not be included. When a human
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> GoogleTrans-fr
translation becomes available, just remove the parameter for the given language.

<nowiki>{{</nowiki> GoogleTrans-es
| title = &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
| title = &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
| en = ''show'' &lt;!-- OPTIONAL -- shows link for Englsih translation --&gt;
| en = ''show'' &lt;!-- OPTIONAL -- shows link for English translation --&gt;
| es = ''show'' &lt;!-- OPTIONAL -- shows link for Spanlish translation --&gt;
| es = ''show'' &lt;!-- OPTIONAL -- shows link for Spanlish translation --&gt;
| bg = ''show'' &lt;!-- OPTIONAL -- shows link for Bulgarian translation --&gt;
| bg = ''show'' &lt;!-- OPTIONAL -- shows link for Bulgarian translation --&gt;
Line 96: Line 94:
== 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
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.

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.




Line 106: Line 100:


# all languages included
# all languages included
<nowiki>{{</nowiki> GoogleTrans-fr | en =show | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | de =show | el =show | hi =show | it =show | ja
<nowiki>{{</nowiki> GoogleTrans-fr | en =show | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =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>

=show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show <nowiki>}}</nowiki>

{{GoogleTrans-fr |en =show | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =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-fr |en =show | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =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}}


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

Latest revision as of 06:20, 26 May 2008

GoogleTrans-fr














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

start-lang - fr

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)
  • 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)
  • 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-fr
   | title =           <!-- OPTIONAL -- title (defaults to 'Google' -->
   | en = show     <!-- OPTIONAL -- shows link for English translation -->
   | es = show     <!-- OPTIONAL -- shows link for Spanlish 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 -->
   | 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 before release and Arabic can be re-inserted.


Sample

# all languages included
{{ GoogleTrans-fr | en =show | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =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-fr -English -español -български -中文(中国大陆) -中文(臺灣) -hrvatski -čeština -dansk -Nederlands -suomi -Deutsch -Ελληνικά -हिन्दी -italiano -日本語 -한국어 -norsk -polski -português -română -русский -svenska