DeepLException
during MT for languages with faulty bcp tag
#2116
Labels
🐛 bug
Something isn't working
⁉️ prio: low
Not urgent, can be resolved in the distant future.
☺️ effort: low
Should be doable in <4h
Milestone
Describe the Bug
If you try to use the MT for languages with a faulty bcp tag Django errors occur. This issue is quite relevant, because in our live system quite a few bcp codes are filled out "incorrectly", and therefore we would run into a lot of issues when releasing our implementation in April.
Steps to Reproduce
Expected Behavior
Even in cases where instead of the bcp code the slug is filled in the translation should work. And for cases in which the bcp code is filled in incorrectly (e.g. pt_PT instead of pt-PT) there should be an informative error message.
Actual Behavior
In both cases that I described above a django error message appears (see screenshot)
Additional Information
The underlying problem is probably that we check the language slugs when testing for DeepL availability, but when we're actually translating we're sending the bcp tag. This error also appears while using the translation box in our page form, introduced by #2062
The text was updated successfully, but these errors were encountered: