1
vikrant
Google Translator
  • 2004/11/18 19:42

  • vikrant

  • Just popping in

  • Posts: 97

  • Since: 2004/11/9


hi Xoopizens,
I would like to use is Google language translator to my XOOPS website. Has any one done it so far. Could any one of you help me in doing this.
regards
Vikrant

2
hughs
Re: Google Translator
  • 2004/11/18 20:50

  • hughs

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/10/7


Hello Vikrant..
Yes i've got what you need in my Homepage, i must admit that the translation is not quite perfect, here you are.


<div align="center"><img src="http://www.indiamachineshop.com/images/english.gif">.
<img src="http://www.indiamachineshop.com/images/french.gif">.<img src="http://www.indiamachineshop.com/images/german.gif">.<img src="http://www.indiamachineshop.com/images/italian.gif">.<img src="http://www.indiamachineshop.com/images/spanish.gif">.<img src="http://www.indiamachineshop.com/images/portuguese.gif"></div>
<script type="text/javascript">
var isDone;

function translate(language) {

var defLang = "en";
var myURL = document.URL;

if (!isDone) {
alert("Note: Translation is not perfect.\nOnly translate on a page per page basis if needed: (Original Page >> New Language)\nIf the page looks wrong or something is not working, then please go back and use the original english page.\n\nCheers, and good luck!");
}

window.open("http://translate.google.com/translate?langpair=" + defLang + "|" + language + "&u=" + myURL, "translation");
isDone=1;
}
</script>
<div align="center">
<br><select onchange="translate(this.options[this.selectedIndex].value);">
<option value="en">English</option>
<option value="fr">Français</option>
<option value="de">Deutsch</option>
<option value="it">Italiano</option>
<option value="es">Español</option>
<option value="pt">Portuguese</option>
</select>
</div>


All right:! just put this in a block and save it as html,it should work..of course you can choose any language you might need..

if you need any help just E-Mail me at www.cuneli.com..
cheers
hughs

3
vikrant
Re: Google Translator
  • 2004/11/19 15:06

  • vikrant

  • Just popping in

  • Posts: 97

  • Since: 2004/11/9


Volia it works,
Thanks a ton pal.
can i also include German in the code.
Secondly your site has a very good theme, which theme is this Probably i would like to check my site with your theme.
Check the translation at www.content.indiamachineshop.com.
Thanks once again.
best wishes
Vikrant

Login

Who's Online

142 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 142


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits