Skip to main content
Inspiring
June 13, 2022
Question

Adding Google Translate option to RoboHelp Project

  • June 13, 2022
  • 5 replies
  • 380 views

Hi, Is it possible to add free of charge Google Translate option for machine translation or only Google Translation API based on Cloud Translation pricing?

    This topic has been closed for replies.

    5 replies

    Community Expert
    July 12, 2022

    From the error message it looks to me like RH doesn't like the // format of the google translate URL.

     

    I'd suggest confirming with support. See the following page for support contact options. The email address is recommended as it goes to a dedicated Robohelp team.
    https://helpx.adobe.com/contact/enterprise-support.other.html#robohelp

    AngelikasAuthor
    Inspiring
    July 12, 2022

    Thank you, @Amebr 🙂

    Peter Grainge
    Community Expert
    Community Expert
    July 11, 2022

    All I can say is that RoboHelp is seeing that link as incorrect. The file is not where that path is pointing.

    ________________________________________________________
    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    July 11, 2022

    The second yellow warning is telling you that somewhere in your project you have a link that is incorrect. The link to element.js is wrong so as the message says, it has not been uploaded. It follows it will not work.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    AngelikasAuthor
    Inspiring
    July 11, 2022

    Thank you, @Peter Grainge. Can you share any clue how to fix element.js?  If this is not supported by RH, please let me know and I won't waste time.

    <title> Google Translator for Website </title>
    </head>
    <body>
    <h2>Your Web Page</h2>
    <p>Click on the dropdown button to translate.</p>
    <p>Translate this page:</p>
    <div id="google_translate_element"> </div>
    <script type="text/javascript">
    //<![CDATA[
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: 'en'
    }, 'google_translate_element');
    }
    //]]>
    </script>
    <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
    <p>You can translate the content of this page by selecting a language in the select box.</p>
    </body>

    Community Expert
    July 8, 2022

    You reference the element.js javascript twice in what you posted. You don't say what problem you are encountering, but you could try to remove the first reference that's in the <head> section of the page.

     

    For more information about the google products and their licensing terms and availaility, you'll need to check their website as they will have the latest information.

     

    AngelikasAuthor
    Inspiring
    July 11, 2022

    Thank you for your reply, @Amebr. I removed the reference from the <head> section, but it didn't change much.

    The problem is - only the text appears on the page as in the screenshot, there is no dropdownlist with language selection,

    there is also a warning in generated output. Did someone test it if it actually can work in the RoboHelp?

     

    Peter Grainge
    Community Expert
    Community Expert
    June 13, 2022

    I believe the free option can be used but I am not 100% sure. Try it. 

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    AngelikasAuthor
    Inspiring
    July 7, 2022

    Hi @Peter Grainge,

    I am getting back to this topic, testing the code, but the results are not so good.

    I took the instructions from that I found the most clear ones from https://codingdiksha.com/google-translate-code-in-javascript/ 

    I added it into the master page, could you take a look if I might miss something or it is just not supported?