X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Google Translator of your pages - French,Spanish,Italian,etc (https://forum.x-cart.com/showthread.php?t=5995)

dealsondeals 01-12-2004 03:36 PM

Google Translator of your pages - French,Spanish,Italian,etc
 
Google Translator of your pages - French,Spanish,Italian,Dutch& Portuguese.

This mod when used will open an existing page in a new window -FULLY TRANSLATED in the language selected. You can also from that point continue to navigate through to other pages of your site as they will appear in the selected language.

At this point your saying, x-cart already has language translations. Yes it does, but not this extensive. This mod translates ALL TEXT on the page it can into the selected language, yes I mean even your product descriptions. Try it and you'll see for yourself. Please note that it takes a couple of seconds for it to load the translated page.

Here it is:

In home.tpl or wherever you please, post the following code in a table cell:

Quote:

<div align="center">{literal}
<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>

{/literal}
<font size="-2" face="Verdana, Arial, Helvetica, sans-serif">Select
Language </font>

<select name="select"
onChange=translate(this.options[this.selectedIndex].value);>
<option
selected>-------------</option>
<option value=fr>Franц╖ais</option>
<option value=de>Deutsch</option>
<option value=es>Espaц╠ol</option>
<option value=it>Italiano</option>
<option value=pt>Portuguese</option>
</select>
</div>



Enjoy,

Glen

funkydunk 01-13-2004 10:53 PM

nice :)

havent tried it but i am sure that it will be a godsend for some sites.

DataViking 01-14-2004 08:05 AM

Thanks for the idea

baconbits 05-14-2008 06:59 AM

Re: Google Translator of your pages - French,Spanish,Italian,etc
 
I just went with adding this:
Quote:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h= 60&title=&border=&output=js"></script>
straight from Google to my Main Area in home.tpl

So stoked on the later...

I do find the translations not working in https so what's the fix for that?

cotc2001 05-14-2008 11:21 AM

Re: Google Translator of your pages - French,Spanish,Italian,etc
 
No idea but I think the moderators should hold an award ceremony for you winning the "replying to oldest thread" Jan 2004 - May 2008 category :lol:

baconbits 05-14-2008 01:52 PM

Re: Google Translator of your pages - French,Spanish,Italian,etc
 
Quote:

Originally Posted by cotc2001
you winning the "replying to oldest thread" Jan 2004 - May 2008 category


You get lost in the search sometimes. I had lost hope on translations till Google came through for me. News to me :mrgreen:

taponitrof 04-16-2009 09:48 AM

Re: Google Translator of your pages - French,Spanish,Italian,etc
 
Hi,

Thanks for that google translate java script. It works great. I searched on Goggle Translate, but could only find their default widget script, but it has a lot of extra crap I didn't want like their logo etc.

I understand that the translations aren't perfect, but my client has four websites and translating all four and then maintain those translations would be a major pain and cost.

Thanks to Google and you for this simple, fast, and easy-to-implement solution.

FactorInteractivo 02-21-2012 03:24 PM

Re: Google Translator of your pages - French,Spanish,Italian,etc
 
Hello !!

Just wanted to share that we have just completed an spanish language translation pack, and we want to share our site and our work with you.
In our site you can immediately buy and download the most current spanish translation pack to enhance your visitor╢s experience (and your admin experience also). It was "manually" made (using no translation tool) by people who╢s been working with X-Cart for years now:

http://www.x-mayor.com/x-cart-complementos

Best regards !!

-----------------

Hola a todos los usuarios de X-Cart que hablan espaЯol !!

Simplemente comunicarles que con un grupo de colegas hemos desarrollado un paquete de traducciСn completo, tanto de la administraciСn como del sitio al cliente, y queremos compartirlo con ustedes.
Son mАs de 7300 lМneas de traducciСn y fue realizado manualmente (lo cual evita errores que cometen los traductores automАticos) y esperamos que este trabajo que hemos hecho con mucho esmero les sea de utilidad.

Pueden acceder al mismo ingresando a http://www.x-mayor.com/x-cart-complementos

Un cordial saludo !!


All times are GMT -8. The time now is 04:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.