Tôi đang cố gắng để có được gettext làm việc trong Django trên OSX Leopard của tôiQuốc tế hóa Django (trên OSX)
django_manage.py makemessages -l nl
Importing Django settings module settings
processing language nl
Error: errors happened while running xgettext on __init__.py
/bin/sh: xgettext: command not found
Trong ga tôi nhận được lỗi tương tự, trừ khi tôi đặt này trong hồ sơ bash của tôi:
PATH=$PATH:/Applications/Poedit.app/Contents/MacOS/
Nhưng sau đó tôi nhận được lỗi này:
Error: errors happened while running msguniq
/bin/sh: msguniq: command not found os x
Và như vậy có thể được thực hiện với [rudix] (http: //rudix.org/) (một trình quản lý gói khác): cài đặt rudix, sau đó là 'sudo rudix -i gettext'. BTW, bản thân rudix có thể được cài đặt trong [virtualenvwrapper] (http://virtualenvwrapper.readthedocs.org/en/latest/index.html). – iutinvg