55
Install gettext GNU tools with Homebrew using Terminal
- Install Homebrew :
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install GNU gettext :
brew install gettext
- Create symlink :
brew link gettext --force
21
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
- [Django]-Serving dynamically generated ZIP archives in Django
- [Django]-Django AutoField with primary_key vs default pk
- [Django]-Combining Django F, Value and a dict to annotate a queryset
- [Django]-Django.db.utils.ProgrammingError: relation "bot_trade" does not exist
- [Django]-User Registration with error: no such table: auth_user
- [Django]-How to query directly the table created by Django for a ManyToMany relation?
7
If you try running link gettext --force
it warns you:
Note that doing so can interfere with building software.
The safest way to use it is to add gettext binary to your path:
export PATH="/usr/local/opt/gettext/bin:$PATH"
- [Django]-Django-rest-framework returning 403 response on POST, PUT, DELETE despite AllowAny permissions
- [Django]-Django query annotation with boolean field
- [Django]-What is actually assertEquals in Python?
Source:stackexchange.com