Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Can I add a word/phrase translation widget to my product pages?

Can I add a word/phrase translation widget to my product pages?

Started by yourvirtualworld on 26 Feb 2013, 10:58 PM · Views: 1,471

Results 1 to 9 of 9
26 Feb 2013, 10:58 PM
#1
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #1 by yourvirtualworld

I want to integrate a language translation form/widget/gadget into my site’s web pages like Google's Translate form. I found the exact solution from Babylon.com (translation box) but it doesn't work on my Zen Cart product pages when I post their code. See http://dictionary.babylon.com/tools/ which links to http://dictionary.babylon.com/translation-tools/ . This solution would be the perfect one but it doesn't work in Zen Cart for some reason.

I’d like for my visitors to watch videos posted on product pages. If they need to translate a word or a phrase from the subtitled video I’d like for them to do it on that product/video page rather than leave the site for this would break the video session. Though I could direct them to any number of online translation pages, I find this alternative quite inelegant and cumbersome for users, especially young children. I do NOT need my site's web pages or the entire web site translated, just a single word or phrase entered into the query box by the user. Almost all of the free solutions I've seen generate either page or site translations. I’ve been unable to find such a form or gadget that works on my Zen Cart pages. The article one writer wrote is at http://www.labnol.org/internet/google-translation-widgets/10135/ way back in 2009 but the technology is dated and no longer available. I know that the Google Translate API ( https://developers.google.com/translate/#Examples ) lets websites and programs integrate with Google Translate programmatically but I'd rather stay out of Google's clutches on my pocketbook.

27 Feb 2013, 2:47 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I just pasted the code into a product description and it appeared

You can see it HERE

Zen-Venom Get Bitten

27 Feb 2013, 2:53 AM
#3
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #3 by yourvirtualworld

I may be blind but I looked for 3 minutes and could not find any translation tool/link.

27 Feb 2013, 2:54 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

I may be blind but I looked for 3 minutes and could not find any translation tool/link
It is a babylon box right by the add to cart box

Zen-Venom Get Bitten

27 Feb 2013, 3:08 AM
#5
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #5 by yourvirtualworld

Ah... I'm using Google Chrome and it doesn't show up BUT it shows up in Internet Explorer. When I tried it the box only translates 1 word at a time... no phrases. A popup box prompts the user to download a desktop app. I don't think I'm going to encourage casual users to download and install yet another application.

27 Feb 2013, 3:10 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

I only installed it from where you indicated
I am not responsible for what it does or does not do

Zen-Venom Get Bitten

27 Feb 2013, 3:40 AM
#7
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #7 by yourvirtualworld

Thanks Kobra. You're helping me unwrap the riddle. I found a cute little desktop app for Windows called Google Desktop Translator. I downloaded it from http://www.athtek.com/download/ggtranslate.exe but it appears to be a branded version. You don't have to install it because it's just a single file application. It's small at 337 Kb. See http://www.athtek.com/google-translate-desktop.html#.US2AvaL_l8F . I wonder if there's a Mac version. I'd still want a solution integral to the viewing page. HELP anybody in finding a solution.

28 Feb 2013, 6:42 PM
#8
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #8 by yourvirtualworld

Since nobody has put forth a good suggestion I'll offer my solution. See attached image.Attachment 12031 (I'll leave the implementation details to you since it's not rocket science) Google offers code that allows you to insert a gadget anywhere you want on your page that allows the viewer to translate the language on the entire PAGE. Here I've placed it directly above the video. I placed an IMAGE only of Google's Translate page (http://translate.google.com) directly below the video and linked it as a popup whenever the user clicks on the fake translation box image. This takes the user directly to Google and places a word/phrase translation tool at the viewer's disposal. The cost of subscribing to Google's Translate API is avoided and they have access to one of the best, if not the best, translation tools on the web today. Many of us Zen Cart lovers are trying our best to reach an international audience that we want to honor and respect while embracing globalization rather than fleeing from it.

2 Mar 2013, 4:29 AM
#9
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Post #9 by yourvirtualworld

Place this snippet where you'd like to display the Google Page Translator plugin on your product page

<p> <center> <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </center> <p>