Doc-To-Help

How to integrate Google Translate into NetHelp 2.0?

  •  maryfconnor-4p said 10 months, 4 weeks ago:

    Has anyone done this integration? I can make it work on plain HTML files but not on NetHelp 2.0 output. Which file do I need to update to add snippets to topics?

    http://translate.google.com/manager/

    [1] Place this meta tag before the closing

    <meta name="google-translate-customization" content="13146eb8d3686edc-0e3fdbbb4f0494ac-g500a5b4018cdd4b4-12">

    [2] Place this snippet where you’d like to display the Website Translator plug-in on your page

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

    Thanks for any ideas! When I get it working, I’ll post the URL so y’all can give it a spin.

  •  maryfconnor-4p said 10 months, 4 weeks ago:

    I need help with where to add the snippet, but here’s information on problems getting the translation snippet to work, even when added manually:

    1. Open a translation-enabled plain HTML page: http://docs.imis.com/15.2/index2.htm
    2. Select a language; translation works!
    3. Now open a translation-enabled D2H page: http://docs.imis.com/i100/?topiconly=true#!onlinecommunications.htm
    3. Translation works!
    4. Open the same D2H page in another browser: doesn’t work.

    So something isn’t initializing, but it works if you’ve already selected a language to translate to.

  •  Brad Keller2p said 10 months, 2 weeks ago:

    We figured out how to add this functionality to NetHelp 2.0 (read this blog post for more information):

    http://our.componentone.com/2012/07/09/instant-localization-integrating-google-translate-into-nethelp/

    This functionality is only available in 2012 V2 and later versions. The scheduled release date for 2012 V2 is July 17th, 2012. You can download it here when it is released: http://www.doctohelp.com/download

    Answer
  •  maryfconnor-4p said 10 months, 2 weeks ago:

    That’s a fabulous birthday present for me! Can’t wait to try it!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.