WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.5k stars 992 forks source link

Feature request: remove empty translations #5214

Open gade01 opened 3 years ago

gade01 commented 3 years ago

It would be a great feature to be able to remove empty/untranslated strings from bilingual po files:

This would reduce file sizes and traffic.

nijel commented 3 years ago

It's already there for monolingual files, see https://docs.weblate.org/en/latest/admin/addons.html#remove-blank-strings

The problem is that for bilingual files, Weblate offers for translation strings present in the file. When these would be removed, they would not be offered for translation.

gade01 commented 3 years ago

I see. That makes sense.

So we need something to do this when pushing from Weblate to the upstream repo?

nijel commented 3 years ago

I'm not sure what would be the best approach here. Either we add support in Weblate to handle bilingual files similarly as monolingual (show all strings from the base file and add translated ones on demand) or provide some way to export files to suit your needs.

github-actions[bot] commented 3 years ago

This issue has been put aside. It is currently unclear if it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate. Please try to clarify the use case or consider proposing something more generic to make it useful to more users.