On Tue, 2009-09-22 at 06:15 -0700, Lewis Taylor wrote: > I'm not sure if this has been discussed before, my guess is yes, > however i can't find anything about it. > > I noticed that the get_language_from_request method in trans_real only > checks whether the django.mo file for a given locale is available in > the django locale directory, and not an app or projects locale > folders. > > To me this doesn't make sense, it's not acceptable to have to create a > language folder in the django conf/locale directory just to make > django work. If no folder exists there, it will revert back to > settings.LANGUAGE_CODE. > > Does anyone have any particular reason why this approach has been > chosen? > > Thanks > > Lewis >
It is a limitation of gettext I believe. It is documented here[1] and here[2]. Cheers Tom [1] http://docs.djangoproject.com/en/dev/topics/i18n/#id1 [2] http://docs.djangoproject.com/en/dev/topics/i18n/#locale-middleware-notes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---