-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Weblate and lupdate
fighting over XML entities/non-breaking spaces.
#5917
Comments
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
The file formats are handled by https://github.com/translate/translate/, for most formats full serialization is done even on change, so these kind of differences can happen. In this particular case I'd prefer to fix translate-toolkit to save the strings in a same way as |
Honestly, given that my files have a UTF-8 XML header, I would expect Qt Linguist to be a good citizen and print them as UTF-8 too, but I don't think I'd be able to pull that off with Qt. |
The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable). |
This is how Qt tools do that. Fixes WeblateOrg/weblate#5917
translate/translate#4330 should address this. |
This is how Qt tools do that. Fixes WeblateOrg/weblate#5917
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
It looks like Qt linguist's
lupdate
command prefers HTML entities and Weblate prefers the effective UTF-8 character.I regularly run
lupdate qml/ -ts translations/*.ts
on my project (in CI), and use Weblate to translate.Weblate regularly sends me diffs of the form:
and
lupdate
reverts that:Since I'm running
lupdate
in CI (for line number tracking, mostly), this is getting quite noisy.Especially since French seems also affected for some HTML entities.
I already tried
Describe the steps you tried to solve the problem yourself.
If you didn’t try already, try to search there what you wrote above.
To Reproduce the issue
Steps to reproduce the behavior:
lupdate
manuallyExpected behavior
On of the following:
lupdate
shouldn't alter the entitiesScreenshots
n.a., I think the diffs above should be enough
Exception traceback
n.a.
Server configuration and status
weblate.org
Additional context
Public and open source project, here are the links:
The text was updated successfully, but these errors were encountered: