Change the Google Site language:
Translation Example 01:
For this simple Language Selection.
You can paste the following <form> </form> Code directly into your Google Sites Html (It will render as a Google Gadget/Embed Gadget).
You only need to change the website URLs.
Add the code
<form> </form>
FIRST [so you can adjust the embed gadget created ie. height , width etc..] to your html then add the full code below:<form style="text-align: center; color: rgb(255, 255, 255); background-color: rgb(153, 153, 153);" xmlns="http://www.w3.org/1999/xhtml" action="../"><select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="">Language >>> </option>
<option value="http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=www.goopal.org&sl=auto&tl=fr">Français</option>
<option value="http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=www.goopal.org&sl=auto&tl=es">Español</option>
<option value="http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=www.goopal.org&sl=auto&tl=ru">Pусский</option>
<option value="http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=www.goopal.org&sl=auto&tl=de">Deutsch</option>
<option value="http://translate.google.com/#en|en|www.goopal.org">......................More</option>
</select><br><br><br>
</form>
Translation Example 02:
A more advanced selection using inline Javascript to call the URL of the active page. The user has a choice of translation, the homepage or the active page.
<form name="translate" style="text-align: center" xmlns="http://www.w3.org/1999/xhtml" action="../"><br><br>
<select name="domainSelect" id="domainSelect" style="width:200;" >
<option value="document.referrer">This Page!</option>
<option value="'www.goopal.org'">www.goopal.org</option>
</select><br />
<select style="width:200;" id="transSelection" onchange="javascript:(function(){var selObj=document.getElementById('transSelection'),selection=selObj.options[selObj.selectedIndex].value,
domainObj=document.getElementById('domainSelect'),webpage=eval(domainObj.options[domainObj.selectedIndex].value),a=window,b=document,c=encodeURIComponent,d=a.open('http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&sl=auto&u='+webpage+'&tl='+selection,'translate_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=700px,width=1000px,resizable=1,alwaysRaised=1,scrollbars=1');a.setTimeout(function(){d.focus()},300)})();">
<option value="">Language >>> </option>
<option value="fr" title="Translate Site to French">Français</option>
<option value="de" title="Translate Site to German">Deutsch</option>
<option value="it" title="Translate Site to Italian">Italiano</option>
<option value="nl" title="Translate Site to Dutch">Nederlands</option>
<option value="es" title="Translate Site to Spanish">Español</option>
<option value="pt-BR" title="Translate Site to Portugese (Brasil)">português (Brasil) </option>
<option value="pt-PT" title="Translate Site to Portugese (Portugal)">português (Portugal) </option>
<option value="da" title="Translate Site to Danish">Dansk </option>>
<option value="iw" title="Translate Site to Hebrew">עברית </option>
<option value="zh-tw" title="Translate Site to Chinese (Taiwan)">中文(繁體)</option>
<option value="zh-CN" title="Translate Site to Chinese">中文(简体) </option>
<option value="ru" title="Translate Site to Russian">Pусский</option>
<option value="en#en|en|www.goopal.org">......................More</option>
</select><br><br>
</form>
ISO Country Codes are required to change the translated language ie. value="da" , value="fr".