1
rider
On the fly translations
  • 2003/12/11 22:36

  • rider

  • Just popping in

  • Posts: 56

  • Since: 2003/6/18


PHPNuke has a module that allows you to translate the site at the click of a button using BabelFish or some other service.

Is there a XOOPS module that does the same thing?

Failing that, how do you actually use the translations of XOOPS? I can't seem to see an option.

Am I blind or is it based on location of your ISP?

2
CBlue
Re: On the fly translations

Put this script in a custom block:

<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">
<select onchange="translate(this.options[this.selectedIndex].value);">
<option>-------------</option>
<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>

And have that block show on all pages. This comes from google's translations.

3
recupsoft
Re: On the fly translations
  • 2003/12/13 12:26

  • recupsoft

  • Friend of XOOPS

  • Posts: 151

  • Since: 2003/10/30


Here is a much better solution : XOOPS Multilanguage
Customization possible

https://xoops.org/modules/news/article.php?storyid=1106


Login

Who's Online

221 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 221


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