Thank you everyone for your feedback. I forgot to mention that I read that paragraph in the docs as well and already installed the LocaleMiddleware. This makes the translation of the built-in modules work, but not my per-app translations. This was why I was thinking that maybe it had something to do with my PYTHONPATH. I've even tried to change it to include all the apps directories, but that was to no avail either.
Any ideas? On Nov 25, 11:47 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-11-25 at 11:39 +0100, Jarek Zgoda wrote: > > Wiadomość napisana w dniu 2008-11-25, o godz. 11:17, przez Thomas > > Guettler: > > > > The last days I did my first i18n application and befor I read this: > > >http://docs.djangoproject.com/en/dev/topics/i18n/ > > > {{{ > > > Application message files are a bit complicated to discover -- they > > > need > > > the LocaleMiddleware. > > > If you don't use the middleware, only the Django message files and > > > project message files will be processed. > > > > }}} > > > > I don't know if it is really need. But the documentation says so. Or I > > > read it to quickly and overlooked > > > I thing something is wrong with docs then, because I'm speaking from > > my practice. > > That quoted section does seem to be inaccurate. The code that fetches > the translations is in django.util.translation.trans_real.translation() > and it always runs through settings.INSTALLED_APPS looking for locale > files. > > I'm rewriting the i18n documentation at the moment, so I've made a note > to fix that confusion (that whole section is already basically just a > big FIXME at the moment anyway). > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---