Weblate detects illegal escape sequence in .po files too late #5905
Labels
backlog
This is not on the Weblate roadmap for now. Can be prioritized by sponsorship.
enhancement
Adding or requesting a new feature.
Milestone
As you might already know, I like to initialize translation components by uploading a full set (.pot and .po) files to weblate via zip. ;)
I did this and the component creation succeeded without error message. (Or at least I didn't notice)
But, as I found out later, the French .po file contained messages with "\r\n" in the translations.
I would have expected that this:
would already be detected when the .po file is analyzed for the first time.
What happened now was that (days) later, the .pot file was uploaded to weblate via the API and failed with a '400 Bad Request'.
Here's a snippet of the application's log of the API request/response:
I would have expected that uploading the .pot file itself passes successfully, because it is not an error in the .pot file, but in one of the .po files that was uploaded earlier.
Thoughts:
The component was set up with Weblate 4.5.x and the error when uploading the .pot file occurred with 4.6.0.
The text was updated successfully, but these errors were encountered: