#17509: Project-level locale directory is not found when project is in a nested
module
--------------------------------------+--------------------
     Reporter:  anonymous             |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Internationalization  |    Version:  1.3
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 We have a Django project in a nested module structure, it looks something
 like this:
   company.app.something.django_project

 So our project-level locale is in
   company/app/something/django_project/locale/
 And settings.py is:
   company/app/something/django_project/settings.py

 The documentation states:
 From: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-
 django-discovers-translations
   3. Then, it looks for a locale directory in the project directory, or
 more accurately, in the directory containing your settings file.

 But the code takes the first level of the module structure:
 See:
 
https://code.djangoproject.com/browser/django/tags/releases/1.3.1/django/utils/translation/__init__.py#L48

 Therefore the locale directory is being looked for here:
    company/locale/

 There is a workaround in that the path can be explicitly set in
 settings.LOCALE_PATHS.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17509>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to