[issue36837] Make il8n tools available from `python -m`

Toshio Kuratomi report at bugs.python.org
Sat May 11 11:26:52 EDT 2019


Toshio Kuratomi <a.badger at gmail.com> added the comment:

Scratch what I said in https://bugs.python.org/issue36837?@ok_message=msg%20342005%20created%0Aissue%2036837%20message_count%2C%20messages%20edited%20ok&@template=item#msg342005

GNU msgfmt does extract the charset correctly.  (My previous test failed to write any output so it was using the .mo file I had written out with msgfmt.py.  I realized that this morning when I figured out why my C test program wasn't finding any message catalog.

For reference the three ways to extract strings with the three tools are:
* pygettext.py test.py
* pybabel extract -o messages.pot test.py
* xgettext test.py -o messages.pot test.py

and the three ways to generate catalogs via the three tools are:
* msgfmt3.7.py  es_MX/LC_MESSAGES/domain.po
* msgfmt es_MX/LC_MESSAGES/testc.po -o es_MX/LC_MESSAGES/testc.mo
* pybabel compile -D test -d . [--use-fuzzy]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36837>
_______________________________________


More information about the Python-bugs-list mailing list