"jhbuild sanitycheck --help" return first translation string
When running jhbuild sanitycheck --help
in a locale other then C
, JHBuild will print the very first translation string in the translation files, which is the one with Gettext headers like Project-Id-Version, Report-Msgid-Bugs-To, PO-Revision-Date. This does not happen when forcing C locale, like LC_ALL=C jhbuild sanitycheck --help
.
This normally happens when printing an empty string, because the above string has source content ""
(nothing) and its translation has the aforementioned headers. For example:
$ jhbuild sanitycheck --help
Usage: jhbuild sanitycheck Project-Id-Version: jhbuild
Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/jhbuild/issues
PO-Revision-Date: 2019-11-24 21:54-0300
Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>
Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>
Language: pt_BR
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n > 1)
X-Generator: Gtranslator 3.32.0
X-Project-Style: gnome
Verifica se as ferramentas necessárias para apoio estão disponíveis
Options:
-h, --help show this help message and exit
Maybe sanitycheck.py setting usage_args=''
is ending up in printing the empty string?