Hello everyone, I am trying to translate an application I made from french to english. I followed the steps described in the documentation:
1. I added a simple {% trans "Bonjour" %} tag to my index template (and before you ask, I did {% load i18n %}) 2. I created a locale folder in the application folder 3. I ran make-messages.py -l en 4. I opened the locale/en/LC_MESSAGES/django.po and changed the msgstr for "Good morning" 5. I ran compile-messages.py 6. I added (r'^i18n/', include('django.conf.urls.i18n')), to my urls.py 7. I added (r'^lang/$', 'project.app.views.lang'), to my urls.py 8. I created a small function in views.py called lang(request) that did a simple return render_to_response(). I did not use RequestContext. 9. I copied the small template given in the documentation to change language and I added the get_current_language and get_available_languages at the top. 10. I added the LocaleMiddleware below SessionMiddleware in settings.py Now, when I go to /lang/, I see a dropdown list with all the languages. Their name is in french (my LANGUAGE_CODE in settings.py is "fr-ca"). I select english, press the submit button and I'm returned to the index page. The string "Bonjour" is still there, it has not been translated. If I go to /lang/ again, the names of the languages are now in english. Why are the Django strings correctly translated but not the ones in my application? Have I forgotten anything? Vincent. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---