Updating comment/note in source template file does not correctly update comment/note in translations #11133
Open
2 tasks done
Labels
enhancement
Adding or requesting a new feature.
undecided
These features might not be implemented. Can be prioritized by sponsorship.
Describe the issue
Seen when using Fluent, but I imagine it would effect other formats that use a template.
Whenever the source file changes the comment/note on one of its strings, the translation files do not pick up on this change, and Weblate shows the "string description" as a concatenation of the old and new strings.
I already tried
Steps to reproduce the behavior
Tested with my local weblate instance, but I've seen this for the Tor Project before:
Weblate will show the en string with the string description: "New comment.". But the de string will have the string description: "New comment. Original Comment.". Moreover, the "de.ftl" file will only contain the old comment: "Original Comment.".
NOTE: The concatenation comes from this line:
weblate/weblate/formats/ttkit.py
Lines 106 to 110 in a808cf0
Expected behavior
If the notes on a template unit changes, then all translation units with the same original note should update their note to match the new value. I.e. the new comment should entirely replace the old comment on Weblate, and in the translated files.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: