开发者

help: where can I find pygettext.py and msgfmt.py?

开发者 https://www.devze.com 2023-03-12 12:11 出处:网络
I am using openSUSE11.3 and wanna use gettext in my app. BUt I cannot find two python utilities pygettext.py and msgfmt.py. Could you guys tell me where can I find them? What\'s the path开发者_StackOv

I am using openSUSE11.3 and wanna use gettext in my app. BUt I cannot find two python utilities pygettext.py and msgfmt.py. Could you guys tell me where can I find them? What's the path开发者_StackOverflow社区? Thanks in advance.


On my system it's C:\Python27\Tools\i18n. It may be similar for you.


Under openSUSE and SLES you need to install python-demo and then msgfmt.py will be available in /usr/share/doc/packages/python/Tools/i18n.


In Linux, you can install msgfmt.py using pip:

python3 -m pip install python-gettext

And you can find the location using this command:

sudo find / -name 'msgfmt.py'

Usually the path is something like /usr/local/lib/python/site-packages/pythongettext.

0

精彩评论

暂无评论...
验证码 换一张
取 消