Open SpecPep opened 2 days ago
If i check it seems the word YONOO its in postgre sql and it is under trans_suggestion. I wonder if there is any connection
You're probably doing something wrong in your code. At least "source": "YONO AIRPAZ",
is obviously wrong, it should contain the source language.
Anyway, if you want to not translate some terminology, use recent Weblate with service that supports glossaries (see https://docs.weblate.org/en/latest/user/glossary.html#glossaries-in-automatic-suggestion) and define it as non-translatable in Weblate glossary. The Google basic translation doesn't support this and for advanced this is not yet implemented in Weblate, see https://github.com/WeblateOrg/weblate/issues/10526
This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks!
In case your question is already answered, making a donation is the right way to say thank you!
My user require to use the google cloud translation basic , is there no other way ? I was trying to replicate from this documentation https://docs.weblate.org/en/latest/admin/customize.html hence the error.
__PLACEHOLDER__
string. We ended up using shorter replacement strings which cannot be confused with the words by the machine translation service (see format_replacement
method).YONO SRC
as source).So you're obviously making many mistakes.
If these are terms which should not be changed at all, you can mark them as placeholders and Weblate will try to preserve them during machine translation.
Describe the issue
I have an issue where I tweaked machinery/google.py. I want to make certain strings non-translatable for automatic suggestions in google.py. Since I didn't fully understand how it works, I reverted it back, but now it shows unexpected results. How do I fix it?
I already tried
Steps to reproduce the behavior
from .base import DownloadTranslations, MachineTranslation, MachineTranslationError from .forms import KeyMachineryForm
GOOGLE_API_ROOT = "https://translation.googleapis.com/language/translate/v2/"
class GoogleBaseTranslation(MachineTranslation):
Map codes used by Google to the ones used by Weblate
class GoogleTranslation(GoogleBaseTranslation): """Google Translate API v2 machine translation support."""