Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

    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/googl...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.
    Last edited by Yourvirtualworld; 27 Feb 2013 at 12:02 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

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

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

    You can see it HERE

  3. #3
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

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

    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

  5. #5
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

    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.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

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

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

  7. #7
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

    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-transla...l#.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.
    Last edited by Yourvirtualworld; 27 Feb 2013 at 04:43 AM.

  8. #8
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

    Since nobody has put forth a good suggestion I'll offer my solution. See attached image.Name:  Google Translate.jpg
Views: 208
Size:  48.1 KB (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.
    Last edited by Yourvirtualworld; 28 Feb 2013 at 07:44 PM.

  9. #9
    Join Date
    Feb 2012
    Posts
    70
    Plugin Contributions
    0

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

    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>

 

 

Similar Threads

  1. v153 Contact Us - Can I add it to my product pages?
    By adb34 in forum General Questions
    Replies: 5
    Last Post: 5 Jan 2015, 10:30 PM
  2. v150 where can I add banners to the product pages?
    By Jen Will in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 14 Jun 2013, 11:59 PM
  3. v150 Questions about the "share widget" on product pages........
    By DIHI in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Feb 2012, 09:33 PM
  4. Accordion Script - can I add this to my product pages?
    By CharInLasVegas in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 16 Feb 2009, 03:58 AM
  5. Where to add translation of product titles, descriptions?
    By crosswraith in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 26 Feb 2008, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg