Webmasterland
  Traduction Google
 

Code officiel du traducteur de google


<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta name="viewport" id="iphone-viewport" content="width=320; maximum-scale=1.0; minimum-scale=1.0; initial-scale=1.0; user-scalable=no" /><style type="text/css">
body,td,div,span,p{font-family:arial,sans-serif;}a {color:#0000cc; }a:visited { color:#551a8b; }a:active { color:#ff0000; }body {margin: 0px;padding: 0px; background-color: white; }</style></head><body style="-webkit-text-size-adjust:none"><script src="/ig/extern_js/f/CgJlbhICdXMrMAE4ACw/TuOehYjQk9Y.js"></script><script src="/ig/extern_js/f/CgJlbhICdXMrMBI4ACwrMBM4ACw/k1VYXjgOIbk.js"></script><script>function sendRequest(iframe_id, service_name, args_list, remote_relay_url,callback, local_relay_url) {_IFPC.call(iframe_id, service_name, args_list, remote_relay_url, callback,local_relay_url);}function _IFPC_SetPref(key, value) {throw new Error("To use this feature, you must add " +"<Require feature='setprefs'/> to your <ModulePrefs> tag.");}
function _IG_SetTitle(title) {throw new Error("To use this feature, you must add " +"<Require feature='settitle'/> to your <ModulePrefs> tag.");}function _IG_AdjustIFrameHeight() {throw new Error("To use this feature, you must add " +"<Require feature='dynamic-height'/> to your " +"<ModulePrefs> tag.");}
var gv = null;if (window.gadgets && window.gadgets.views) {var errFunc = function() {throw new Error("To use this feature, you must add " +"<Require feature='views'/> to your " +"<ModulePrefs> tag.");};gv = window.gadgets.views;gv.requestNavigateTo = gv.getCurrentView = gv.getParams = errFunc;}
</script><script>_et="";_IG_Prefs._parseURL("0");</script><script>_IG_Prefs._addAll("0", [["msg_greek","Grec"],["msg_swedish","Suédois"],["msg_chinese_tw","Chinois (traditionnel)"],["msg_portuguese_br","Portugais (Brésil)"],["msg_korean","Coréen"],["msg_chinese","Chinois"],["msg_spanish","Espagnol"],["msg_danish","Danois"],["msg_arabic","Arabe"],["msg_italian","Italien"],["msg_dutch","Néerlandais"],["msg_german","Allemand"],["msg_russian","Russe"],["msg_japanese","Japonais"],["msg_norwegian","Norvégien"],["msg_orig_language","Langue du site"],["msg_finnish","Finnois"],["msg_french","Français"],["msg_portuguese","Portugais"],["msg_english","Anglais"],["msg_chinese_zh","Chinois (simplifié)"],["up_source_language","fr"],["up_.lang","fr"],["up_.country","us"],["up_synd","ig"]]);if (window._isk) {window._isk[0] = "-2264634222317176313";}</script><!-- Create your own Google Gadgets: http://code.google.com/apis/igoogle/ --><div id=remote_0 style="border:0;padding:0;margin:0;width:100%;height:auto;overflow:hidden">
<style type="text/css">
#content_div{
background-image:url(http://www.google.com/ig/modules/translatemypage_content/box.gif);
background-repeat:no-repeat;
width:160px;
height:75px;
margin:0px 0px 0px 0px;
}
.title{
padding-left:5px;
padding-top:5px;
}
.title_link{
color:#666666;
font-size:15px;
font-weight:bold;
text-decoration:none;
}
.title_link:visited{
color:#666666;
}
.title_text{
vertical-align:top;
}
.small{
font-size:9px;
color:#00C;
}
a{
color:#00C;
}
#lang_form{
margin-left:5px;
margin-top:0px;
margin-bottom:0px;
}
#lang_select{
width:146px;
}
#s{
margin-top:3px;
margin-right:8px;
text-align:right;
}
</style>
<div id="content_div">
<div class="title">
<a href="http://translate.google.com/translate_t" target="_top" class="title_link">
<img border=0 src="http://www.google.com/ig/modules/translatemypage_content/logo.gif" />
<span class="title_text" id="translate">Translate</span>
</a>
</div>
<form id="lang_form">
<select id="lang_select" onchange="dotranslate(this);">
<option value="" id="select_language">Select Language</option>
</select>
</form>
<div style="margin-top:8px;text-align:center;width:100%">
<i style="color:#999;font-size:0.7em">Update this gadget.
<a href="http://translate.google.com/translate_tools" target="_top">Click here</a></i>
</div>
</div>
<script>
var prefs = new _IG_Prefs(0);
function renderGadget() {
var browser_lang = browserLanguage();
var orig = prefs.getString("source_language");
var select_language = _gel("select_language");
var lang_select_obj = _gel("lang_select");
var found_browser_lang = false;
for (var target in target_languages) {
if (target_languages[target] != browser_lang) {
lang_select_obj.appendChild(createOption(orig, target_languages[target]));
} else {
found_browser_lang = true;
}
}
if (found_browser_lang) {
lang_select_obj.insertBefore(
createOption(orig, browser_lang),
select_language.nextSibling);
}
if (_args()["source"] && _args()["source"].match("translate_c")) {
var newoption = document.createElement("option");
newoption.value = "orig";
newoption.id = "original_page";
newoption.appendChild(document.createTextNode("Original Page"));
lang_select_obj.insertBefore(newoption, select_language.nextSibling);
}
updateForBrowserLang(browser_lang);
}
var target_languages = ['ar', // Arabic
'bg', // Bulgarian
'ca', // Catalan
'cs', // Czech
'da', // Danish
'de', // German
'el', // Greek
'en', // English
'es', // Spanish
'fi', // Finnish
'fr', // French
'hi', // Hindi
'hr', // Croatian
'id', // Indonesian
'it', // Italian
'iw', // Hebrew
'ja', // Japanese
'ko', // Korean
'lt', // Lithuanian
'lv', // Latvian
'nl', // Dutch
'no', // Norwegian
'pl', // Polish
'pt', // Portuguese
'ro', // Romanian
'ru', // Russian
'sk', // Slovak
'sl', // Slovenian
'sr', // Serbian
'sv', // Swedish
'tl', // Filipino
'uk', // Ukrainian
'vi', // Vietnamese
'zh-CN', // Chinese (Simplified)
'zh-TW']; // Chinese (Traditional)
var display_name = new Array();
display_name['ar'] = "العربية";
display_name['bg'] = "български";
display_name['ca'] = "català";
display_name['cs'] = "česky";
display_name['da'] = "Dansk";
display_name['de'] = "Deutsch";
display_name['el'] = "Ελληνικά";
display_name['en'] = "English";
display_name['es'] = "Español";
display_name['fi'] = "suomi";
display_name['fr'] = "Français";
display_name['hi'] = "हिन्दी";
display_name['hr'] = "hrvatski";
display_name['id'] = "Indonesia";
display_name['it'] = "Italiano";
display_name['iw'] = "עברית";
display_name['ja'] = "日本語";
display_name['ko'] = "한국어";
display_name['lt'] = "Lietuvių";
display_name['lv'] = "latviešu";
display_name['nl'] = "Nederlands";
display_name['no'] = "norsk";
display_name['pl'] = "Polski";
display_name['pt'] = "Português";
display_name['ro'] = "Română";
display_name['ru'] = "Русский";
display_name['sk'] = "slovenčina";
display_name['sl'] = "slovenščina";
display_name['sr'] = "српски";
display_name['sv'] = "Svenska";
display_name['tl'] = "Filipino";
display_name['uk'] = "українська";
display_name['vi'] = "Tiếng Việt";
display_name['zh-CN'] = "中文 (简体)";
display_name['zh-TW'] = "中文 (繁體)";
var translate_message = new Array();
translate_message['ar'] = "ترجمة";
translate_message['bg'] = "Преводач";
translate_message['ca'] = "Traductor";
translate_message['cs'] = "Překladač";
translate_message['da'] = "Oversæt";
translate_message['de'] = "Übersetzung";
translate_message['el'] = "Μετάφραση";
translate_message['en'] = "Translate";
translate_message['es'] = "Traductor";
translate_message['fi'] = "Kääntäjä";
translate_message['fr'] = "Traduction";
translate_message['hi'] = "अनुवाद करें";
translate_message['hr'] = "Prevoditelj";
translate_message['id'] = "Translate";
translate_message['it'] = "Traduttore";
translate_message['iw'] = "תרגם";
translate_message['ja'] = "翻訳";
translate_message['ko'] = "번역";
translate_message['lt'] = "Versti";
translate_message['lv'] = "Tulkotājs";
translate_message['nl'] = "Vertaal";
translate_message['no'] = "Oversetter";
translate_message['pl'] = "Tłumacz";
translate_message['pt'] = "Tradutor";
translate_message['ro'] = "Traducere";
translate_message['ru'] = "Переводчик";
translate_message['sk'] = "Prekladač";
translate_message['sl'] = "Prevajalnik";
translate_message['sr'] = "преводилац";
translate_message['sv'] = "Översätt";
translate_message['tl'] = "Pagsasalin";
translate_message['uk'] = "Перекладач";
translate_message['vi'] = "Dịch";
translate_message['zh-CN'] = "翻译";
translate_message['zh-TW'] = "翻譯";
var select_language_message = new Array();
select_language_message['ar'] = "تحديد اللغة";
select_language_message['bg'] = "Избор на език";
select_language_message['ca'] = "Selecciona l'idioma";
select_language_message['cs'] = "Zvolit jazyk";
select_language_message['da'] = "Vælg sprog";
select_language_message['de'] = "Sprache wählen";
select_language_message['el'] = "Επιλογή γλώσσας";
select_language_message['en'] = "Select Language";
select_language_message['es'] = "Seleccionar idioma";
select_language_message['fi'] = "Valitse kieli";
select_language_message['fr'] = "Choisissez langue";
select_language_message['hi'] = "भाषा चुनें";
select_language_message['hr'] = "Odaberite jezik";
select_language_message['id'] = "Pilih Bahasa";
select_language_message['it'] = "Seleziona lingua";
select_language_message['iw'] = "בחירת שפה";
select_language_message['ja'] = "言語を選択";
select_language_message['ko'] = "언어설정";
select_language_message['lt'] = "Pasirinkite kalbą";
select_language_message['lv'] = "Atlasiet valodu";
select_language_message['nl'] = "Kies Taal";
select_language_message['no'] = "Velg språk";
select_language_message['pl'] = "Wybierz język";
select_language_message['pt'] = "Seleccionar idioma";
select_language_message['ro'] = "Selectaţi limba";
select_language_message['ru'] = "Выберите язык";
select_language_message['sk'] = "Výber jazyka";
select_language_message['sl'] = "Izberi jezik";
select_language_message['sr'] = "Изабери језик";
select_language_message['sv'] = "Välj språk";
select_language_message['tl'] = "Pumili ng Wika";
select_language_message['uk'] = "Виберіть мову";
select_language_message['vi'] = "Chọn Ngôn ngữ";
select_language_message['zh-CN'] = "选择语言";
select_language_message['zh-TW'] = "選擇語言";
var original_page_message = new Array();
original_page_message['ar'] = "الصفحة الأصلي";
original_page_message['bg'] = "Оригинална страница";
original_page_message['ca'] = "Pàgina original";
original_page_message['cs'] = "Původní stránka";
original_page_message['da'] = "Oprindelige side";
original_page_message['de'] = "Originalseite";
original_page_message['el'] = "Πρωτότυπη σελίδα";
original_page_message['en'] = "Original Page";
original_page_message['es'] = "Página original";
original_page_message['fi'] = "Alkuperäinen sivu";
original_page_message['fr'] = "Page d'origine";
original_page_message['hi'] = "मूल पृष्ठ";
original_page_message['hr'] = "Izvorna stranica";
original_page_message['id'] = "Lihat Laman asli";
original_page_message['it'] = "Pagina originale";
original_page_message['iw'] = "דף מקורי";
original_page_message['ja'] = "オリジナル ページ";
original_page_message['ko'] = "원래 페이지";
original_page_message['lt'] = "Pradinis puslapis";
original_page_message['lv'] = "Oriģinālā lapa";
original_page_message['nl'] = "Originele Pagina";
original_page_message['no'] = "Opprinnelig side";
original_page_message['pl'] = "Oryginalna strona";
original_page_message['pt'] = "Página original";
original_page_message['ro'] = "Pagina originală";
original_page_message['ru'] = "Исходная страница";
original_page_message['sk'] = "Pôvodná stránka";
original_page_message['sl'] = "Izvirna stran";
original_page_message['sr'] = "Оригинална страница";
original_page_message['sv'] = "Ursprunglig sida";
original_page_message['tl'] = "Orihinal na Pahina";
original_page_message['uk'] = "Оригінальна сторінка";
original_page_message['vi'] = "Trang gốc";
original_page_message['zh-CN'] = "原来的页面";
original_page_message['zh-TW'] = "原始網頁";
function updateForBrowserLang(browser_lang) {
_gel('translate').innerHTML =
translate_message[browser_lang];
_gel('select_language').innerHTML =
select_language_message[browser_lang];
if (_gel('original_page')) {
_gel('original_page').innerHTML =
original_page_message[browser_lang];
}
}
function browserLanguage() {
var blang = prefs.getLang();
if (translate_message[blang] != undefined) {
return blang;
} else if (translate_message[blang.substring(0,2)] != undefined) {
return blang.substring(0,2);
} else {
return "en";
}
}
function createOption(source_lang, target_lang) {
var newoption = document.createElement("option");
newoption.id = "op" + source_lang + target_lang;
newoption.value = getLanguageParameter(source_lang, target_lang);
newoption.appendChild(document.createTextNode(display_name[target_lang]));
return newoption;
}
function getURL() {
var url;
if (_args()['customurl']) {
url = _args()['customurl'];
} else {
url = _args()['source'];
if (url.match('translate_c')) {
if (window.RegExp) {
var regex = new RegExp("[?&]u=([^&#]*)");
var results = regex.exec(url);
if (results != null) {
url = _unesc(results[1]);
}
}
}
}
return url;
}
function getLanguageParameter(source_lang, target_lang) {
return "&langpair=" + source_lang + "|" + target_lang;
}
function dotranslate(select_obj) {
var target_url = getURL();
if (target_url.match("ig/creator")) {
return;
}
var path_suffix = "";
if (select_obj.value == "orig") {
window.top.location=target_url;
}
else if (select_obj.value != '') {
_IG_Analytics("UA-1043770-1", "/translate_my_page_gadget/translate");
window.top.location='http://translate.google.com/translate' +
'?client=tmpg&hl=' + browserLanguage() + '&u=' +
_esc(target_url) + select_obj.value;
}
}
_IG_Analytics("UA-1043770-1", "/translate_my_page_gadget");
renderGadget();
</script>
</div><script>_IG_TriggerEvent("domload");</script></body></html>
 
   
 
=> Veux-tu aussi créer une site gratuit ? Alors clique ici ! <=