I'm trying to internationalize a Django app by following the wonderful Django documentation. The problem is when I try to run command to create language files:
python manage.py makemessages -l fr
It outputs an error :
CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.
My configuration :
Install gettext GNU tools with Homebrew using Terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install gettext
brew link gettext --force
For Windows:
Download gettext and install
Add in system var PATH: C:\Program Files\gettext-iconv\bin
(if you didn't it during installation)
Check or create in your project directory locale/
Check or add in settings.py: LOCALE_PATHS = (BASE_DIR + 'locale/', )
Enjoy by django-admin makemessages -l fr
. If still repeating don't forget to restart your shell to update env vars
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