Hello everyone,
Hopefully I'm writing to the right list to report a possible issue with `msgfmt`. If not, please let me know!
tl;dr msgfmt --statistics returns different results for the same .po file depending on the msgfmt version
Specifically, msgfmt 0.22.3 is reporting no untranslated strings for the .po file available at [0], and there are clearly untranslated strings (examples are at lines 1414, 1419, 1422, 1461, etc).
$ msgfmt -V
msgfmt (GNU gettext-tools) 0.22.3
$ msgfmt --statistics -o /dev/null translations/zh_Hans/LC_MESSAGES/releases.po
7454 translated messages.
Testing with msgfmt version 0.21 and 0.19.8.1 returns the following (which is more accurate):
$ msgfmt -V
msgfmt (GNU gettext-tools) 0.19.8.1
$ msgfmt --statistics -o /dev/null translations/zh_Hans/LC_MESSAGES/releases.po
1809 translated messages, 5116 untranslated messages.
This was noticed in the context of updating some translation related files after the Django 5.0 release that happened on Monday (full discussion at [1]).
Any further detail or clarification that you could share is appreciated.
Thank you!
Natalia Bidart, Django Fellow