I have a Django application (in Google App Engine) that I want to internationalize.
settings.py:
USE_I18N = True
LANGUAGE_CODE = 'en'
LANGUAGES = (
('en', 'English'),
('fr', 'French'),
)
MIDDLEWARE_CLASSES = (
'ragendja.middleware.ErrorMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
...
I created .po and .mo files for my application in the / fr / LC _MESSAGES locale (although not globally).
I set the Accept-Language browser header to "fr" and Django ignores it. When I look at request.LANGUAGE_CODE, it is always "en".
I can say that the browser is right because I visit some other site with i18n support and it returns French.
How to find out what Django is missing in my setup?
I saw this question and it did not help me.
I am running Django 1.0 using the engine patch 1.0.2.2 application in Google App Engine.