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:
Is there anyone that could help me with this? I know it's a Javascript file but that's all I know.
Hi Elisa. Try using this code. It works for me when doing the machine translation with Deepl.
Moreover, the endpoint should be like this for free deepl API:
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.
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?
Copy link to clipboard
Copied
Hi Elisa. Try using this code. It works for me when doing the machine translation with Deepl.
Moreover, the endpoint should be like this for free deepl API:
Copy link to clipboard
Copied
Hello!
Thank you for your reply! I'll make sure to try this a bit later on today.
😄
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?
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. 🙂
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:
Hope this helps!
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?
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!
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
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.
Copy link to clipboard
Copied
Just use the Insert Photos icon in your response.