[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug in `msgfmt` (incorrect results when invoking --statisti
From: |
Bruno Haible |
Subject: |
Re: Possible bug in `msgfmt` (incorrect results when invoking --statistics with version 0.22.3) |
Date: |
Tue, 05 Dec 2023 23:23:00 +0100 |
Hi,
> Hopefully I'm writing to the right list to report a possible issue with
> `msgfmt`. If not, please let me know!
Yes, this is the right list. In general, for GNU programs, the '--help' output
contains an indication where to send bug reports.
> 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]
When I do a 'wget' of that URL, I get a JSON file. The URL that you meant was
probably
https://raw.githubusercontent.com/django/django-docs-translations/stable/5.0.x/translations/zh_Hans/LC_MESSAGES/releases.po
> , and there are clearly untranslated strings
> (examples are at lines 1414, 1419, 1422, 1461, etc).
Yes, these are untranslated strings.
> $ msgfmt -V
> msgfmt (GNU gettext-tools) 0.22.3
> $ msgfmt --statistics -o /dev/null
> translations/zh_Hans/LC_MESSAGES/releases.po
> 7454 translated messages.
I obtain
$ msgfmt --statistics releases.po
1809 translated messages, 5116 untranslated messages.
with all versions in { 0.19, 0.20, 0.21, 0.22, 0.22.3, 0.22.4 }.
Either
* You are working with different translations/zh_Hans/LC_MESSAGES/releases.po
files in the two cases.
Or
* Your GNU gettext binaries are broken.
On which platform is this? Did you compile them yourself? If not, please
CC the project from which you obtained these binaries.
Bruno