vslavik / poedit

Translations editor for Mac, Windows and Unix
https://poedit.net
MIT License
1.71k stars 274 forks source link

Poedit does not preserve comments above msgid "" #827

Closed rillig closed 6 months ago

rillig commented 6 months ago

https://translationproject.org/PO-files/de/e2fsprogs-1.46.6-rc1.de.po has a big block of comments above the initial msgid, explaining how to translate this particular domain:

#.  %S      backup superblock
#.  %X  <num>   hexadecimal format
#.
msgid ""
msgstr ""

When I open that file with Poedit 3.4.1 and save it, this comment gets lost.

vslavik commented 6 months ago

(Specifically, it's only the #. portion - i.e. the extracted-comments - that is lost, the translator-comments above with with copyright and authorship information are preserved.)

vslavik commented 6 months ago

Handling of this file is still not perfect after the above commits, some trailing whitespace is still stripped and some lines reformatted. But that's a more involved fix.