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
{{ message }}
Repository navigation
Avoid copying flags when creating monolingual unit #22992
Area: File format supportIssues related to file formats implemented in Weblate.Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.
With monolingual file formats that support storing flags (PO, XLIFF etc), the current Weblate behavior seems to be that on translation unit creation, the flags that are present at that point in time in the source language file are copied into the translation file.
Any future changes to existing flags in the source language file are not propagated into the translation files. They have to be updated in all translation files outside of Weblate. Depending on the amount of changes and the file format it can be error-prone to make the flags consistent again.
To instead have this managed inside Weblate I see two options:
On unit creation do not copy any flags into the translation file and rely on flag inheritance behavior
Perhaps make this a setting for backwards compatibility or other use-cases
Track if a flag was inherited from the source language file or if it was loaded from the translation file, and in the first case propagate any changes that come from the source language file into the translation files
What do you think?
Side note: When per-translation flag support (#12779 & #12815) becomes available, there will be no way to distinguish between "inherited at creation" and "added from UI" flags.
The flags copying is a side effect of copying the whole underlying unit. I don't think it was ever intended (most monolingual formats do not store flags explicitly).
Area: File format supportIssues related to file formats implemented in Weblate.Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.
Activity
nijel commentedon Nov 20, 2026
The flags copying is a side effect of copying the whole underlying unit. I don't think it was ever intended (most monolingual formats do not store flags explicitly).