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
When trying to get the associated translation via the REST API, we get a 404 response.
This seems to occur when the components template files are present in the git repo in the cloud, but not in the local repo that Weblate uses for managing translations.
This is resolved when the appropriate templates (both the template and monolingual base file) are pulled down into the local Weblate repo.
To Reproduce
Steps to reproduce the behavior:
create some template files (pot and monolingual base file) in your local data repo and git push the changes
do not pull these changes into your local weblate instance
create a monolingual GETTEXT component and ensure the Templates for new translation and Monolingual base language file fields refer to the aforementioned template files
make a POST request to associate a translation with your newly created component
make a GET request for the newly associated translation, you should receive a 404 response
To Resolve:
In the Weblate UI go to project -> component -> manage -> repository status -> Pull, to pull the template files down
repeat steps 4 & 5, you should get a 201 response
Expected behavior
When associating a language/translation to a component via the REST API , we should get an appropriate error message stating the reason why the translation can not be associated with the component instead of a 201 response with {'data': {'language_code': '', 'filename': '', 'revision': ''}} .
Describe the bug
When associating a language/translation to a component via the REST API , we sometimes get this response back:
When trying to get the associated translation via the REST API, we get a 404 response.
This seems to occur when the components template files are present in the git repo in the cloud, but not in the local repo that Weblate uses for managing translations.
This is resolved when the appropriate templates (both the template and monolingual base file) are pulled down into the local Weblate repo.
To Reproduce
Steps to reproduce the behavior:
git push
the changesTemplates for new translation
andMonolingual base language file
fields refer to the aforementioned template filesTo Resolve:
Expected behavior
When associating a language/translation to a component via the REST API , we should get an appropriate error message stating the reason why the translation can not be associated with the component instead of a 201 response with
{'data': {'language_code': '', 'filename': '', 'revision': ''}}
.Server configuration and status
The text was updated successfully, but these errors were encountered: