• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Machine Translation Deepl

New Here ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

Hello all!

 

(robohelp version 2020.8.34)

 

I've been setting up my projects and am now at the point where I'm asked to look into translating our documents. Right now we publish to frameless and I'm wondering what it would look like if I finished the translation of topics. What would it look like published. Is there a button that switches to a picked language or how am I supposed to see this? 

 

I've been struggling with setting up machine translations for the provided companies: google, yandex and bing. However none of these API's are currently working for me. Luckily I can add a custom API. We've picked Deepl for this: DeepL API.  

I'm not sure what I'm supposed to do for the custom script path:

ElisaTeigeler_0-1659359696382.png

Is there anyone that could help me with this? I know it's a Javascript file but that's all I know. 

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Oct 03, 2022 Oct 03, 2022

Hi Elisa. Try using this code. It works for me when doing the machine translation with Deepl.

Arnau23165357qr5k_0-1664865124266.png

 

Moreover, the endpoint should be like this for free deepl API: 

Delete "-free" if you're using Pro version.
 
For more information check this web page: https://www.deepl.com/docs-api 
There is an example of what needs Deepl for a basic request to translate text.
 
Hope it works for you!

Votes

Translate

Translate
Community Expert ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

In theory it should all look the came except for your text and the screen labels being in a foreign language.

 

How it needs to be set up is described in RH2020 Translations (grainge.org)

 

How your chosen machine translator is supposed to work is something that I think you will need to find out from their site.

________________________________________________________

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

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 16, 2022 Aug 16, 2022

Copy link to clipboard

Copied

Thank you for your reply! 

Do I have to publish my translation projects separately or is it automatically detected what language the user is using on their computer? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 03, 2022 Oct 03, 2022

Copy link to clipboard

Copied

Hi Elisa. Try using this code. It works for me when doing the machine translation with Deepl.

Arnau23165357qr5k_0-1664865124266.png

 

Moreover, the endpoint should be like this for free deepl API: 

Delete "-free" if you're using Pro version.
 
For more information check this web page: https://www.deepl.com/docs-api 
There is an example of what needs Deepl for a basic request to translate text.
 
Hope it works for you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 04, 2022 Oct 04, 2022

Copy link to clipboard

Copied

Hello! 

 

Thank you for your reply! I'll make sure to try this a bit later on today. 

 

😄

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2022 Nov 11, 2022

Copy link to clipboard

Copied

Hi,

I try your code in Robohelp too, but only get the error "Falsche Anmeldedaten" English: "wrong login".

Do I need to add my DeepL account information to the script, or as headlines in Robohelp?

Screenshot 2022-11-11 152600.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2022 Nov 13, 2022

Copy link to clipboard

Copied

Is the Endpunkt field correct? Arnau suggests a slightly different endpoint.

 

Also, if you are using the Pro (paid for) version, Arnau also suggests you need to delete the '-free' bit.

 

I don't do translations, so these are just suggestions for things to check based on the previous posts, until someone more knowlegeable comes along. 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2022 Nov 14, 2022

Copy link to clipboard

Copied

Hey Marcel!

 

I've direct;y copied his code and his suggestion and it worked fine! 

Here is a picture of the code and my setup in Robohelp:

ElisaTeigeler_0-1668435005924.png

Hope this helps!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2022 Dec 01, 2022

Copy link to clipboard

Copied

Thanks for your feedback, I have the endpoint the same as you now, but it still doesn't work here.

 

But now I get the following error message:
Unexpected token < in JSON at position 0.
I suspect I still have a bug in the JS script, because I just scanned this and I'm not a JS specialist.
To paste the JS script here as an attachment, I renamed it from Deepl-Translation.js to Deepl-Translation.txt. Can you please compare the script with yours, it would help me a lot.

 

Does Robohelp also create log files that might help me more?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2022 Dec 03, 2022

Copy link to clipboard

Copied

The JS-Skript is working now in my home office.

It looks like the network settings in my company cause the problem.

Thank you very much for your help!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2023 Feb 06, 2023

Copy link to clipboard

Copied

I tried to take the same steps as suggested here so far, Unfortunately, I still get the error message "Falsche Anmeldedaten" - which means as much as "wrong login data" in german - when I try to validate my script. Additionally, an error window occurs which says "failed to fetch".

 

I also tried to use a different network as you suggested but that didn't fix my issues. Did you take any further steps before your translation profile worked for you?

 

Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

I have another error, I used the same script, I checked that everything is correct but I get an error "cannot read propert '0' of undefined", I check that I have well written the script, but I can not find the error, the credentials of the deepl I get validated. I can't provide an image because it won't let me upload. I don't know what else I can do.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

LATEST

Just use the Insert Photos icon in your response.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp