I want to translate strings in my Python app on my Mac OS X 10.7.
I can import the gettext
module but i can't find the tools pygettext.py
and msgfmt.py
, which according to the Python docs should be somewhere in my Python installation.
Is the pre-installed Python version on Mac OS X 10.7 missing these tools and if yes, how can I get them?
Thanks.
With python 3 and MacOS >= 10.9, installing gettext
via homebrew won't link the libraries and this will produce the error Can't find msgfmt
.
This helps:
$ brew install gettext # if not already done
$ brew link gettext --force
Thanks to https://stackoverflow.com/a/8785138/621690
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With