Hello,

i can't get my project translation to load. Original strings are in English. I 
switch the language to "de" with set_language (like described in the i18n 
doc). Checked it with "get_current_language" in the template, which 
outputs "de" as expected. My strings however are still in English and i have 
no idea what i'm doing wrong.

---------------------------------------
- The translation is in place:
$ cd ${my_project_dir}
$ ls conf/locale/de/LC_MESSAGES/django.*
conf/locale/de/LC_MESSAGES/django.mo  conf/locale/de/LC_MESSAGES/django.po

- My settings.py:
MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)
gettext = lambda s: s
LANGUAGES = (
    ('de', gettext('German')),
    ('en', gettext('English')),
)

- My view:
def index(request):
    post_list = Post.objects.all().order_by('date')[:5]
    return render_to_response('base_frontpage.html', {
            'post_list': post_list,
        },
        context_instance=RequestContext(request)
    )
---------------------------------------

Anything that i have missed?

Best Regards,
Dirk Eschler

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to