#16084: makemessages command doesn't respect LOCALE_PATHS setting
--------------------------------------+------------------------------------
     Reporter:  heylinus              |                    Owner:  nobody
         Type:  New feature           |                   Status:  reopened
    Component:  Internationalization  |                  Version:  1.4
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by EmilStenstrom):

 * cc: em@… (added)


Comment:

 I would characterize this as a bug, not a new feature.

 Reason: These are the options a 1.4 user has:

 '''1)''' Use a directory called "locale", without a __init__.py, like you
 did with Django 1.3. You will now get a DeprecationWarning each time you
 use manage.py. '''Annoying'''.

 '''2)''' Use a directory with a non-locale name, such as "translations",
 and reference that path with the new LOCALE_PATHS setting. Now the
 makemessages command won't work. '''Unacceptable'''.

 '''3)''' Use a directory called "locale" and point to it using the
 LOCALE_PATHS setting. Now you'll get an ImportWarning that the locale
 directory is missing a __init__.py file. But if you add a file like this
 you get other import errors, since
 [http://stackoverflow.com/questions/10874945/importerror-cannot-import-
 name-normalize gettext imports a package called locale], and stops working
 if there's a local importable directory called locale. '''Unacceptable'''.

 So unless I'm missing something basic (I have before, so please point it
 if so), it seems we're stuck with an annoying DeprecationWarning until
 this bug is fixed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16084#comment:7>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to