Dear all,
I am using google translation in my website, problem is when i choose the language entire language option is convert to required language.
1) i want changes happend into a my web content NOT LANGUAGE TAB.
Please help me WEB LINK
You have two ways of doing this:
Line 27 of your HTML file
<td class="notranslate" height="28"><select onChange="doTranslate(this);"><option selected="selected" value="">Select Language</option><option style="font-weight: bold;" value="en|en">English</option><option value="en|ar">Arabic</option><option value="en|nl">Dutch</option><option value="en|fr">French</option><option value="en|de">German</option><option value="en|el">Greek</option><option value="en|iw">Hebrew</option><option value="en|hi">Hindi</option><option value="en|it">Italian</option><option value="en|ja">Japanese</option><option value="en|ko">Korean</option><option value="en|fa">Persian</option><option value="en|pl">Polish</option><option value="en|pt">Portuguese</option><option value="en|ru">Russian</option><option value="en|sl">Slovenian</option><option value="en|es">Spanish</option></select></td>
Google's API function is as follows:
function doTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname==' www.newtonclients.com' && lang_pair=='en|en')return;else if(location.hostname!='www.newtonclients.com' && lang_pair=='en|en')openTab(unescape(gfg('u')));else if(location.hostname=='www.newtonclients.com' && lang_pair!='en|en')openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lan g_pair+'&u='+escape(location.href));else openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lan g_pair+'&u='+unescape(gfg('u')));}
Note the bold function name. This is included by default in all the elements of your page when you insert the Google Translate code and request Google to translate your document for you.
class="notranslate" works as an override to this function, meaning, whichever element you have class="notranslate" on, Google will skip those tags and all child tags within them. This is controlled by Google API when it reads your page during the translation request.
Trust this helps.
North America
Europe, Middle East and Africa
Asia Pacific