Hello guys,
I'm trying to use some translations in my project. I've read the doc
about i18n, but I must be missing in some step.
I've embedded translation strings in my templates. I've got
translations for those strings in the languages I want to support
(makemessages and compilemessages) and I've activated the locale
middleware in my Django settings.
I stick here my middleware classes installed.
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
To do some tests I've added to my urlconf (r'^i18n/', include
('django.conf.urls.i18n')), and after selecting one of the language
"availabe" I consult the cookie django_language and it's correctly
stablished but no one string of my app is translated to the selected
language. It's like the language didn't be installed.
Any idea??
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---