Difference between revisions of "Template:Google translation link"
(Add back noinclude code) |
(New improved and fully functional translation assist) |
||
Line 1: | Line 1: | ||
− | <span style="font-family: | + | <span class="plainlinks" style="font-family:Arial,Helvetica,sans-serif;font-size:.75em;"><span |
− | [http://translate.google.com/ Google | + | style="font-variant:small-caps;font-weight:100;color:#55a;white-space:nowrap;">[http://translate.google.com/ Google translate] <span |
− | + | style="font-size:110%;font-variant:normal;font-weight:700;">{{{Lang|<span title="English">en</span>}}}</span> <span | |
− | + | style="background-color:#def;"> page to </span> (or <span | |
− | + | style="display:inline-block;line-height:.66em;padding-top:0;padding-bottom:.18em;background-color:#ddd;"> text ''to'' </span> or <span | |
− | [http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{ | + | style="display:inline-block;line-height:.66em;padding-top:0;padding-bottom:.18em;background-color:#adb;"> ''from'' </span> ):</span> <!--space: IE would treat   here as if non breaking--><span |
− | [http://translate.google.com/translate? | + | style="display:inline-block;font-weight:700;"><!-- |
− | [http://translate.google.com/translate? | + | --><span style="white-space:nowrap;" TITLE="Afrikaans"><!-- |
− | + | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=af <!-- | |
− | [http://translate.google.com/translate? | + | --><span style="background-color:#def;"> af </span>]<!-- |
− | [http://translate.google.com/translate? | + | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=af <span style="color:#ddd;">■</span>]<!-- |
− | + | -->[http://translate.google.com/translate?sl=af&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | |
− | [http://translate.google.com/translate? | + | -->| <span style="white-space:nowrap;" TITLE="العربية (Arabic)"><!-- |
− | [http://translate.google.com/translate? | + | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=ar <!-- |
− | + | --><span style="background-color:#def;"> ar </span>]<!-- | |
− | + | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=ar <span style="color:#ddd;">■</span>]<!-- | |
− | < | + | -->[http://translate.google.com/translate?sl=ar&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- |
+ | -->| <span style="white-space:nowrap;" TITLE="Česky (Czech)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=cs <!-- | ||
+ | --><span style="background-color:#def;"> cs </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=cs <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=cs&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Cymraeg (Welsh)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=cy <!-- | ||
+ | --><span style="background-color:#def;"> cy </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=cy <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=cy&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Dansk (Danish)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=da <!-- | ||
+ | --><span style="background-color:#def;"> da </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=da <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=da&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Deutsch (German)"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=de <!-- | ||
+ | --><span style="background-color:#def;"> de </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=de <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=de&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Ελληνικά (Greek)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=el <!-- | ||
+ | --><span style="background-color:#def;"> el </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=el <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=el&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Εnglish"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=en <!-- | ||
+ | --><span style="background-color:#def;"> en </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=en <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=en&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Español (Spanish)"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=es <!-- | ||
+ | --><span style="background-color:#def;"> es </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=es <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=es&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Suomi (Finnish)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=fi <!-- | ||
+ | --><span style="background-color:#def;"> f i </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=fi <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=fi&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="français (French)"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=fr <!-- | ||
+ | --><span style="background-color:#def;"> fr </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=fr <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=fr&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Gaeilge (Irish)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=ga <!-- | ||
+ | --><span style="background-color:#def;"> ga </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=ga <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=ga&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Italiano (Italian)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=it <!-- | ||
+ | --><span style="background-color:#def;"> it </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=it <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=it&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="日本語 (Japanese)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=ja <!-- | ||
+ | --><span style="background-color:#def;"> ja </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=ja <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=ja&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Māori (Maori)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=mi <!-- | ||
+ | --><span style="background-color:#def;"> mi </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=mi <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=mi&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Nederlands (Dutch)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=nl <!-- | ||
+ | --><span style="background-color:#def;"> nl </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=nl <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=nl&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Português (Portuguese)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=pt <!-- | ||
+ | --><span style="background-color:#def;"> pt </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=pt <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=pt&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="Русский (Russian)"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=ru <!-- | ||
+ | --><span style="background-color:#def;"> ru </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=ru <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=ru&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="中文(简) (Chinese ‹simplified›)"><!-- INTERNATIONAL | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=zh-CN <!-- | ||
+ | --><span style="background-color:#def;"> zh<small>-CN</small> </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=zh-CN <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=zh-CN&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | -->| <span style="white-space:nowrap;" TITLE="中文(繁) (Chinese ‹traditional›)"><!-- | ||
+ | -->[http://translate.google.com/translate?u=http%3A//wiki.worldnakedbikeride.org/index.php%3Ftitle%3D{{PAGENAMEE}}&sl={{{Lang|en}}}&tl=zh-TW <!-- | ||
+ | --><span style="background-color:#def;"> zh<small>-TW</small> </span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl={{{Lang|en}}}&tl=zh-TW <span style="color:#ddd;">■</span>]<!-- | ||
+ | -->[http://translate.google.com/translate?sl=zh-TW&tl={{{Lang|en}}} <span style="color:#adb;">■</span>]</span><!-- | ||
+ | --></span></span></span><noinclude><div style="display:none;"> | ||
+ | Template edit information: | ||
+ | * Dismissed: | ||
+ | TITLE="Magyar (Hungarian)" hu - Probably no intended ride(s) at Budapest took place, none recently proposed | ||
+ | TITLE="עברית (Hebrew)" iw - No intended ride(s) at Tel Aviv took place, none recently proposed | ||
+ | TITLE="Latviešu (Latvian)" lv - Probably no intended ride(s) at Riga took place, none recently proposed | ||
+ | TITLE="Polski (Polish)" pl - Probably no intended ride(s) at Krakau took place, none recently proposed | ||
+ | TITLE="Svenska (Swedish)" sv - No asked for ride(s) at Stockholm took place, none recently proposed | ||
− | '' | + | * Maintenance: |
+ | Each language starts with its TITLE="<language name>" line and ends immediately above such of the next language: Easy to copy/paste, replace the <language name> and on each of the following 4 lines replace the quickly spotted language code with the one of the new language. Only the block of the very first language in the series, starts with '--><span ' instead of '-->| <span ' | ||
− | + | * Google syntax: | |
+ | - to translate a web page: http://translate.google.com/translate?u=URL&sl=FROMLANG&tl=TOLANG | ||
+ | - to allow user (editor) pasting or typing a text: | ||
+ | 1) works when manually entered in a browser, but fails to set proper languages when launched from a linking page (until the user sets the cursor in the browser input zone behind the passed on url and presses Enter): translate.google.com#FROMLANG|TOLANG or translate.google.com/#FROMLANG|TOLANG | ||
+ | 2) http://translate.google.com/translate?sl=FROMLANG&tl=TOLANG | ||
− | </noinclude> | + | </div><hr> |
+ | ''The language codes recognized by the Google Translate application, generally follow the ISO 639-1 standard (e.g. 'en' for English), for only a few special cases with a region identifier suffix (e.g. 'zh-CN' and 'zh-TW') — see [http://sites.google.com/site/tomihasa/google-language-codes Google's list of Web Interface Language Codes].'' | ||
+ | |||
+ | ''This template lists only languages of considerable international importance, and the ones of locations where a ride ever took place (or recently became proposed). Merely pointing at a code in the series, shows the relevant language name written in that language (and in English); a click on either of its 3 small items, launches the proper translator.'' | ||
+ | |||
+ | ''Calling the template from near the top (or bottom) of a page, facilitates its translation, or such of a to be copy/pasted section. The <span style="font-family:Arial,Helvetica,sans-serif;font-size:0.86em;font-variant:small-caps;font-weight:100;"> from </span> link <span style="color:#adb;">■</span> of one's native language may assist editing a page written in another language. Syntax:<br />1)'' <nowiki>{{Google translation link}}</nowiki> ''which assumes an 'en' page (i.e. the calling page is at least partially written in English)<br />2)'' <nowiki>{{Google translation link|</nowiki>''xx''<nowiki>}}</nowiki> ''in which 'xx' is to be the ISO 639-1 code (exceptionally with regional suffix) of the (or a) language in the calling page. It does not need to be one of the template, which thus allows easily preparing a ride at a new location of which Google recognizes the code for whatever local language.'' | ||
+ | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 09:56, 9 March 2020
Google translate en page to (or text to or from ): af ■■| ar ■■| cs ■■| cy ■■| da ■■| de ■■| el ■■| en ■■| es ■■| f i ■■| fr ■■| ga ■■| it ■■| ja ■■| mi ■■| nl ■■| pt ■■| ru ■■| zh-CN ■■| zh-TW ■■
The language codes recognized by the Google Translate application, generally follow the ISO 639-1 standard (e.g. 'en' for English), for only a few special cases with a region identifier suffix (e.g. 'zh-CN' and 'zh-TW') — see Google's list of Web Interface Language Codes.
This template lists only languages of considerable international importance, and the ones of locations where a ride ever took place (or recently became proposed). Merely pointing at a code in the series, shows the relevant language name written in that language (and in English); a click on either of its 3 small items, launches the proper translator.
Calling the template from near the top (or bottom) of a page, facilitates its translation, or such of a to be copy/pasted section. The from link ■ of one's native language may assist editing a page written in another language. Syntax:
1) {{Google translation link}} which assumes an 'en' page (i.e. the calling page is at least partially written in English)
2) {{Google translation link|xx}} in which 'xx' is to be the ISO 639-1 code (exceptionally with regional suffix) of the (or a) language in the calling page. It does not need to be one of the template, which thus allows easily preparing a ride at a new location of which Google recognizes the code for whatever local language.