bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible bug in `msgfmt` (incorrect results when invoking --statistics w


From: Natalia Bidart
Subject: Possible bug in `msgfmt` (incorrect results when invoking --statistics with version 0.22.3)
Date: Tue, 5 Dec 2023 18:10:33 -0300

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

[0] https://github.com/django/django-docs-translations/blob/stable/5.0.x/translations/zh_Hans/LC_MESSAGES/releases.po
[1] https://github.com/django/djangoproject.com/pull/1445

reply via email to

[Prev in Thread] Current Thread [Next in Thread]