Languages tab > Translate not working + no log
I'm having some troubles with the "Translate" feature in the "Languages" tab: on certain languages, it indicates "Translating (123)..." in the source window but stops very soon, actually not translating anything.
When I hit the same button again, it still tries to translate the same amount of terms.
Also I'm not getting any error in the console.
I'm using I2Localization v2.8.9 f1 with Unity 2017.4.3f1.
Please Log in or Create an account to join the conversation.
- benroberts
- Offline
- New Member
- Posts: 9
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Could the languages file help debugging it?
Please Log in or Create an account to join the conversation.
- benroberts
- Offline
- New Member
- Posts: 9
- Thank you received: 0
<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Service invoked too many times in a short time: translate. Try Utilities.sleep(1000) between calls. (line 45, file "Translate")</div></body></html>
The I2Loc ParseTranslationResult() method includes this code:
if (html.Contains("Service invoked too many times in a short time"))
return ""; // ignore and try again
So the error message gets hidden from the user, and that 'and try again' is a lie, maybe at some point the idea was to build retry logic but there isn't any in the codebase currently. Just fails without error.
Please Log in or Create an account to join the conversation.
- benroberts
- Offline
- New Member
- Posts: 9
- Thank you received: 0
Please Log in or Create an account to join the conversation.
In the meantime I'll do the auto-translate on the google spreadsheet using this kind of command: GoogleTranslate($B2, "en","fr").
Please Log in or Create an account to join the conversation.