Search code examples
djangotranslationhomebrewgettextxgettext

Application gettext not visible for Django translation on Mountain Lion


I'm trying to translate my applications in my Django project. My development machine works under control OSX Mountain Lion, which out of the box doesn't have installed gettext, so I've installed this application with Homebrew:

brew install gettext

This command installed gettext-0.18.3.1.

After that I try to generate messages to my applications:

python manage.py makemessages -l pl

in result I get message:

CommandError: Error running xgettext. Note that Django internationalization requires GNU gettext 0.15 or newer.

Do you have any advice how to launch translation process on Mountain Lion with gettext installed via Homebrew?


Solution

  • gettext is probably not on the PATH. This should work:

    brew install gettext
    brew link gettext --force