|
I'm running a project on hosted.weblate.org, and I am experiencing some issues using the Google Cloud Translation Advanced service for Automatic Suggests. Every automatic suggestion from the Google Cloud provider merely suggests the source string - for every language (e.g. "None" → "None"). In contrast, the Weblate Translation Memory provide is offering sensible suggestions.
I thought that the issue might be that my project's source language is English (Developer) and that Google might not have understood the
Furthermore, I'm certain I had this working several months ago when I played around with the Automatic Translations Add-On. As evidenced by the below (and many other) suggestions that the add-on added in bulk to our projects in July. Note, I've confirmed that the add-on also n now returns source strings (not entirely unexpected as I suspect it uses the same underlying code?).
Does anybody have any idea what might be causing this? I've toyed around with setting language aliases in the project workflow settings), but that didn't seem to fix the issue, and most of the language codes for the target languages (see below) look unproblematic to me as far as Google's language codes go.
Alas, as I'm using hosted.weblate.org, I don't have access to any detailed logging, so I can't see the details of any 'conversations' between Weblate and Google Cloud. :-( Language codes taken from the component level overview:
|
Replies: 2 comments 4 replies
|
The “evidence” it worked actually doesn't show that, because that is suggestion from the Weblate service, not from Google Translate. So it might have never worked… The language mapping should work just fine, and languages should be mapped to service-specific codes correctly. Is the machine translation on the Google side configured correctly? I barely recall somebody having messed up the setup there, making it behave weird. We can also look at the project on Hosted Weblate. Can you please share a link to it? Either here or privately to care@weblate.org. |
|
After looking at the translation, I know why this happens:
The regex check was merely intended for single string checks rather than used in such a wide way. With the negative match pattern as you are using, it really can't work as expected with the machine translation. |







The fix is now deployed on Hosted Weblate, so you can continue using your regex.
While I agree that your use case is not typical, there is no need to have overlapping behavior of regex and placeholder checks, so it definitely makes sense to distinguish the behavior in this regard.