Just to be more precise, here's what I've already done :
- create locale folder
- run make-message.py -l fr
- edit django.po to change charset and translate strings
- run compile-messages.py -l fr
- load i18N in template page
- {% trans Hello World %}
- should give Bonjour le monde but nothing
Hi,
Perhaps you can use django.middleware.locale.LocaleMiddleware.
Check your settings.py.
Here are my MIDDLEWARE settings:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.locale.LocaleMiddleware',
#
Hi Takashi,
I did it in Myapplication/setting.py, then restart server but
translation isn't working.
? ~~~
Pierre
On 6 sep, 04:24, Takashi Matsuo [EMAIL PROTECTED] wrote:
Hi,
Perhaps you can use django.middleware.locale.LocaleMiddleware.
Check your settings.py.
Here are my MIDDLEWARE