Open strarsis opened 2 years ago
Thanks for sharing this suggestion 👍
I'm not sure if the gettext library we use supports that, but at first glance it looks like it at least does extract #
and #~
comments:
Then the question is whether these can be kept during the update/merge.
Feature Request
Describe your use case and the problem you are facing
update-po
doesn't preserve unused translations/comments inside the PO files. As Gettext editors like POEdit use their own translation database and VCS are usually used, this isn't a big deal and may de-clutter the PO file. - But an option for keeping this extra stuff may still be helpful in some cases.Describe the solution you'd like An option that lets
update-po
keep the unused translations/comments inside the PO files.Example: Input PO:
Output PO (as you can see the extra Copyright comment and the unused translation were both stripped):