10👍
✅
you should run
django-admin.py makemessages -d djangojs -l en
django-admin.py compilemessages
for each language you have 🙂
0👍
In your file base.html add the following lines to the beginning
{% load static from staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
- [Django]-Choices in Django model not being translated, possibly due to use of modelform or modelformset?
- [Django]-Mod_wsgi (3.4-14) / Apache 2.4.12 / Red Hat (6.7) / Django 1.8.2 hanging under load
- [Django]-How should I upgrade from bradjasper's django-jsonfield to Django's built-in jsonfield?
- [Django]-How to change to string and remove ' from Django tempalates / context?
Source:stackexchange.com