I have:

    * created translation strings in the template and in the
application view.
    * run this command: django-admin.py makemessages -l it and the
file it/LC_MESSAGES/django.po has been created
    * translated strings in the django.po file.
    * run this command: django-admin.py compilemessages and I receive:
processing file django.po in /home/jobber/Desktop/library/books/locale/
it/LC_MESSAGES
    * set this in settings.py:

LANGUAGE_CODE = 'it'

TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth",

"django.core.context_processors.debug",

"django.core.context_processors.i18n",

"django.core.context_processors.media", )

USE_I18N = True

MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware',

'django.middleware.locale.LocaleMiddleware',

'django.contrib.sessions.middleware.SessionMiddleware',

'django.contrib.auth.middleware.AuthenticationMiddleware',

)

but.... translation doesn't work !! I always see english text. Why ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to