Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Google Translator of your pages - French,Spanish,Italian,etc

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 01-12-2004, 03:36 PM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default 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
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote

The following user thanks dealsondeals for this useful post:
taponitrof (04-16-2009)
  #2  
Old 01-13-2004, 10:53 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

nice

havent tried it but i am sure that it will be a godsend for some sites.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 01-14-2004, 08:05 AM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

Thanks for the idea
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #4  
Old 05-14-2008, 06:59 AM
  baconbits's Avatar 
baconbits baconbits is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: WNY
Posts: 46
 

Default 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?
__________________
X-Cart Gold 4.1.12 / XC SEO / AOM / Google Checkout / PayPal
Reply With Quote
  #5  
Old 05-14-2008, 11:21 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default 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
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #6  
Old 05-14-2008, 01:52 PM
  baconbits's Avatar 
baconbits baconbits is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: WNY
Posts: 46
 

Default 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
__________________
X-Cart Gold 4.1.12 / XC SEO / AOM / Google Checkout / PayPal
Reply With Quote
  #7  
Old 04-16-2009, 09:48 AM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default 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.
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
  #8  
Old 02-21-2012, 03:24 PM
 
FactorInteractivo FactorInteractivo is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 44
 

Default 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 !!
__________________
X-Carting since 2006
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:09 AM.

   

 
X-Cart forums © 2001-2020