Jump to content

Template:GoogleTrans-en: Difference between revisions

From Sugar Labs
No edit summary
test empty template
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey">
<tr><td style="font-size:80%">&nbsp;&nbsp;<span class="plainlinks">[http://translate.google.com ''{{{title| Google Translations}}}]<!--
-->{{#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=es%7Cbg&hl=es&ie=UTF-8&oe=UTF-8 {{#language:bg}}]}}<!--
-->{{#if:{{{zh-CN|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Czh-CN&hl=es&ie=UTF-8&oe=UTF-8 {{#language:zh-CN}}]}}<!--
-->{{#if:{{{zh-TW|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Czh-TW&hl=es&ie=UTF-8&oe=UTF-8 {{#language:zh-TW}}]}}<!--
-->{{#if:{{{hr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Chr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:hr}}]}}<!--
-->{{#if:{{{cs|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Ccs&hl=es&ie=UTF-8&oe=UTF-8 {{#language:cs}}]}}<!--
-->{{#if:{{{da|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cda&hl=es&ie=UTF-8&oe=UTF-8 {{#language:da}}]}}<!--
-->{{#if:{{{nl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cnl&hl=es&ie=UTF-8&oe=UTF-8 {{#language:nl}}]}}<!--
-->{{#if:{{{fi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfi&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fi}}]}}<!--
-->{{#if:{{{fr|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cfr&hl=es&ie=UTF-8&oe=UTF-8 {{#language:fr}}]}}<!--
-->{{#if:{{{de|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cde&hl=es&ie=UTF-8&oe=UTF-8 {{#language:de}}]}}<!--
-->{{#if:{{{el|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cel&hl=es&ie=UTF-8&oe=UTF-8 {{#language:el}}]}}<!--
-->{{#if:{{{hi|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Chi&hl=es&ie=UTF-8&oe=UTF-8 {{#language:hi}}]}}<!--
-->{{#if:{{{it|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cit&hl=es&ie=UTF-8&oe=UTF-8 {{#language:it}}]}}<!--
-->{{#if:{{{ja|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cja&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ja}}]}}<!--
-->{{#if:{{{ko|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cko&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ko}}]}}<!--
-->{{#if:{{{no|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cno&hl=es&ie=UTF-8&oe=UTF-8 {{#language:no}}]}}<!--
-->{{#if:{{{pl|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cpl&hl=es&ie=UTF-8&oe=UTF-8 {{#language:pl}}]}}<!--
-->{{#if:{{{pt|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cpt&hl=es&ie=UTF-8&oe=UTF-8 {{#language:pt}}]}}<!--
-->{{#if:{{{ro|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cro&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ro}}]}}<!--
-->{{#if:{{{ru|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Cru&hl=es&ie=UTF-8&oe=UTF-8 {{#language:ru}}]}}<!--
-->{{#if:{{{sv|}}}|'''-'''[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=es%7Csv&hl=es&ie=UTF-8&oe=UTF-8 {{#language:sv}}]}}</span></td>
</tr>
</table>
</div>
[[Category:Machine translation]]
<noinclude>


----
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({{#language:es}})
* bg - Bulgarian ({{#language:bg}})
* zh-CN - Chinese (Simplified) ({{#language:zh-CN}})
* zh-TW - Chinese (Traditional) ({{#language:zh-TW}})
* hr - Croatian ({{#language:hr}})
* cs - Czech ({{#language:cs}})
* da - Danish ({{#language:da}})
* nl - Dutch ({{#language:nl}})
* fi - Finnish ({{#language:fi}})
* fr - French ({{#language:fr}})
* de - German ({{#language:de}})
* el - Greek ({{#language:el}})
* hi - Hindi ({{#language:hi}})
* it - Italian ({{#language:it}})
* ja - Japanese ({{#language:ja}})
* ko - Korean ({{#language:ko}})
* no - Norwegian ({{#language:no}})
* pl - Polish({{#language:pl}})
* pt - Portuguese ({{#language:pt}})
* ro - Romanian ({{#language:ro}})
* ru - Russian ({{#language:ru}})
* sv - Swedish({{#language:sv}})
== 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 translation becomes available, just remove the parameter for the given language.
<nowiki>{{</nowiki> GoogleTrans-es
    | title =          &lt;!-- OPTIONAL -- title (defaults to 'Google' --&gt;
    | es = ''show''    &lt;!-- OPTIONAL -- shows link for Spanish translation --&gt;
    | bg = ''show''    &lt;!-- OPTIONAL -- shows link for Bulgarian  translation --&gt;
    | zh-CN = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Simplified)  translation --&gt;
    | zh-TW = ''show''  &lt;!-- OPTIONAL -- shows link for Chinese (Traditional)  translation --&gt;
    | hr = ''show''    &lt;!-- OPTIONAL -- shows link for Croatian  translation --&gt;
    | cs = ''show''    &lt;!-- OPTIONAL -- shows link for Czech  translation --&gt;
    | da = ''show''    &lt;!-- OPTIONAL -- shows link for Danish  translation --&gt;
    | nl = ''show''    &lt;!-- OPTIONAL -- shows link for Dutch  translation --&gt;
    | fi = ''show''    &lt;!-- OPTIONAL -- shows link for Finnish  translation --&gt;
    | fr = ''show''    &lt;!-- OPTIONAL -- shows link for French  translation --&gt;
    | de = ''show''    &lt;!-- OPTIONAL -- shows link for German  translation --&gt;
    | el = ''show''    &lt;!-- OPTIONAL -- shows link for Greek  translation --&gt;
    | hi = ''show''    &lt;!-- OPTIONAL -- shows link for Hindi  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;
    | no = ''show''    &lt;!-- OPTIONAL -- shows link for Norwegian  translation --&gt;
    | pl = ''show''    &lt;!-- OPTIONAL -- shows link for Polish translation --&gt;
    | pt = ''show''    &lt;!-- OPTIONAL -- shows link for Portuguese  translation --&gt;
    | ro = ''show''    &lt;!-- OPTIONAL -- shows link for Romanian  translation --&gt;
    | ru = ''show''    &lt;!-- OPTIONAL -- shows link for Russian  translation --&gt;
    | sv = ''show''    &lt;!-- OPTIONAL -- shows link for Swedish translation --&gt;
<nowiki>}}</nowiki>
== 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
<nowiki>{{</nowiki> 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 <nowiki>}}</nowiki>
{{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}}
[[Category:Template|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:54, 22 October 2009