Internationalisation Django (on OSX)

前端 未结 3 750
不知归路
不知归路 2020-12-23 17:02

I\'m trying to get gettext to work in Django on my OSX Leopard

django_manage.py makemessages -l nl
Importing Django settings module settings
processing langu         


        
3条回答
  •  忘掉有多难
    2020-12-23 17:58

    I think you need to install gettext. Poedit includes only some of the programs provided by the gettext package.

    Probably the easiest way to install (not only) gettext is via homebrew. Once you have homebrew installed, run brew install gettext. After that, make sure that the programs in /usr/local/Cellar/gettext/0.18.1.1/bin are on your $PATH.

    Note that you need to have Xcode installed for homebrew to work as it usually installs packages from source (you can get Xcode for Lion for free from the Mac App Store).

    Edit: I overlooked that you don't use Lion. For Snow Leopard, you can get XCode from the App Store for $5. XCode For Leopard is I think on the installation disk.

提交回复
热议问题