-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Translation Units behaves differently based on order of invocations. #4277
Comments
How exactly do you add units? In Weblate should be possible to add only units to source language. What Weblate version do you use? |
Adding the versions output
|
I used this script to add the units. Just changed the
|
When I try it, I (correctly) get HTTP 403 when trying to add unit to non source language:
On source language it works just fine and returns the newly added unit and fails on second execution when unit is already added. |
@nijel Thank you for the quick response. I had a look after your reply. I had forgotten to remove an update which was bypassing the checks due to which this weird scenario was possible. After reverting back, I can confirm that it works as you have said. I'm extremely sorry for the trouble that I caused you. |
Describe the bug
Adding a translation unit with same key for different languages in a component behaves differently based on order
To Reproduce
If we have a project with en as source language,
Scenario 1:
We get an error Translation with this key seem to already exist!
Scenario 2:
The translated string is visible under German language for the component.
Expected behavior
The translated string is visible in German, irrespective of the order of execution of translation Unit APIs
The text was updated successfully, but these errors were encountered: