You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Weblate v4.17, I am trying to fully replace the translation file for the source language of my translation component through Weblate's API. This works fine for other languages, but errors out for the source language with the error message "You can not overwrite existing approved translations".
I'm confused as to why this is the case through the API, since uploading a file through the web portal with "Replace existing translation file" works without a hitch.
For reference, here is a code snippet of the request:
Most likely source strings review are not enabled and thus approved state is not applicable. The error message could be definitely more clear in this case.
nijel
changed the title
Failing to replace source language's translation file through API
Unclear error message on replacing source language's translation file through API
Jan 24, 2024
nijel
added a commit
to nijel/weblate
that referenced
this issue
Jan 24, 2024
Describe the issue
Using Weblate v4.17, I am trying to fully replace the translation file for the source language of my translation component through Weblate's API. This works fine for other languages, but errors out for the source language with the error message "You can not overwrite existing approved translations".
I'm confused as to why this is the case through the API, since uploading a file through the web portal with "Replace existing translation file" works without a hitch.
For reference, here is a code snippet of the request:
I have searched extensively on the docs, google and the issues on GitHub, but found no mentions about this issue.
I already tried
Steps to reproduce the behavior
/api/translations/(string: project)/(string: component)/(string: language)/file/
for the source languageExpected behavior
Translation file successfully replace
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Other
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: