[Python-ideas] Idea: msgfmt.py and pygettext..py should be -m executable modules

Robert Vanden Eynde robertvandeneynde at hotmail.com
Mon Jul 30 12:11:24 EDT 2018


Shortcuts designed for CLI are just to "be more mnemonic" have to be considered with caution.
If gettext is a package, it means the whole python community shoud agree on that.
msgfmt is part of gettext, so yes, python -m gettest.msgfmt is the best long lasting command. Or it could be 'python -m gettest msgfmt'.
If you're using CLI, 90% of chances you know that if you don't like "python -m gettest.msgfmt" because it's too long, you can add a `alias dotrans='python -m gettest.msgfmt'` in your .bashrc so that you can simply write "dotrans Something".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180730/c56c1b0c/attachment.html>


More information about the Python-ideas mailing list