I am trying to figure out the django translation system, so I wrote a small test application. I created translation files and compiled them (* .po and * .mo), and now I'm trying to display the template in another language. I am changing LANGUAGE_CODE in my settings.py to a different language code, but the template is still displayed in English. There are no errors, I just donβt see another language that I am trying to execute, although I translated, compiled and all that. I have db configured to support all the necessary. I also used get_current_language in the template:
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
the current language is {{ LANGUAGE_CODE }}
but I get an empty place where the code should appear. What am I missing? thanks.
sa125 source
share