Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2015-11-18 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
-+-
 Reporter:  heylinus |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:   |  Version:  1.4
  Internationalization   |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by claudep):

 It's probably not intentional. We would need to find some heuristics to
 detect if dirname is a 'locale' directory containing translations or any
 other sort of 'locale'-named directory. Please open a new ticket for this
 issue.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.005c8aed59171ac5b30a059e31607512%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2015-11-18 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
-+-
 Reporter:  heylinus |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:   |  Version:  1.4
  Internationalization   |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by termopetteri):

 Hello, commenting an old fixed ticket.

 If an app has 'locale' named folder under its static folder
 (/app_name/static/app_name/locale/foobar.js), makemessages does not pick
 the files in that folder (here foobar.js). Is that intentional?

 Here's the relevant code:
 
https://github.com/django/django/blob/master/django/core/management/commands/makemessages.py#L413

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.13ce01c7539bf0126b95f7ab79c33b58%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2013-11-30 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
-+-
 Reporter:  heylinus |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:   |  Version:  1.4
  Internationalization   |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Ready for
 Keywords:   |  checkin
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Claude Paroz ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50a8ab7cd1e611e6422a148becaec02218577d67"]:
 {{{
 #!CommitTicketReference repository=""
 revision="50a8ab7cd1e611e6422a148becaec02218577d67"
 Enabled makemessages to support several translation directories

 Thanks Rémy Hubscher, Ramiro Morales, Unai Zalakain and
 Tim Graham for the reviews.
 Also fixes #16084.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.9df5262dfd22b1d17120b065ecf1896f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2013-11-13 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
-+-
 Reporter:  heylinus |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:   |  Version:  1.4
  Internationalization   |   Resolution:
 Severity:  Normal   | Triage Stage:  Ready for
 Keywords:   |  checkin
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by claudep):

 * stage:  Accepted => Ready for checkin


Comment:

 I plan to commit the patch in the next days.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.e8526b49f98db22ea2bc4fcd7725cc5d%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2013-10-03 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
--+
 Reporter:  heylinus  |Owner:  nobody
 Type:  New feature   |   Status:  new
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
--+

Comment (by claudep):

 I've just updated the patch to current master and created a pull request:
 https://github.com/django/django/pull/1706

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.a242da471a08b88684c3437427964ade%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2013-01-19 Thread Django
#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
--+

Comment (by aaugustin):

 Sounds great!

-- 
Ticket URL: 
Django 
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.




Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2013-01-19 Thread Django
#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
--+

Comment (by claudep):

 I have a patch that allows you to always run `makemessages` at project
 level, and which dispatches strings in various pot files depending on
 their file location.

 For example, strings from `myapp/myfile.txt` will go to
 `myapp/locale/po` if `myapp/locale` exists, else they will go to
 `LOCALE_PATHS[0]`, and if `LOCALE_PATHS` is empty, a `CommandError` is
 raised. Backwards compatibility should be kept, unless I missed a use
 case.

 For Django itself, we could simply remove the line `self.ignore_patterns
 += ['contrib/*']` and all contrib po files would be handled with a single
 `makemessages` call. I'd vote for it.

 https://github.com/claudep/django/compare/16084

-- 
Ticket URL: 
Django 
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.




Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2012-09-17 Thread Django
#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
--+

Comment (by rivolaks@…):

 I'm having the same problem.
 I'm overriding some of Django's builtin date/time formats for different
 locales and at first put the formats.py files under ''locale/XX/''. And
 that of course gave me the gettext import errors described in Emil's 3rd
 point. So I renamed my 'locale' dir to 'locales' and now I have the
 problem number 2.
 I don't want two subdirs for the same thing either ('locale' for
 translations and e.g. 'locales' for the custom formats). So I'm probably
 going to have to duplicate the makemessages cmd and change the hardcoded
 path until the proper fix.

-- 
Ticket URL: 
Django 
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.




Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2012-08-31 Thread Django
#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: 
Django 
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.




Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting

2012-05-02 Thread Django
#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 anonymous):

 * version:  1.3 => 1.4


-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting (was: makemessages command doesn't respect LOCALE_PATHS setting at all)

2011-05-30 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting
-+-
   Reporter:  heylinus   |  Owner:  nobody
   Type:  New| Status:  reopened
  feature|  Component:
  Milestone: |  Internationalization
Version:  1.3|   Severity:  Normal
 Resolution: |   Keywords:
   Triage Stage:  Accepted   |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
-+-
Changes (by ramiro):

 * status:  closed => reopened
 * stage:  Unreviewed => Accepted
 * resolution:  invalid =>


Comment:

 agree this is something that isn't completely eas to use after the changes
 that start deprecation of a locale/ subdir of the ''project dir''. We need
 to give users the ability to specify an output directory when running
 `makemessages`, or similar solution. Reopening.

-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting at all

2011-05-27 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting at all
-+-
   Reporter:  heylinus   |  Owner:  nobody
   Type:  New| Status:  closed
  feature|  Component:
  Milestone: |  Internationalization
Version:  1.3|   Severity:  Normal
 Resolution:  invalid|   Keywords:
   Triage Stage: |  Has patch:  0
  Unreviewed |Needs tests:  0
Needs documentation:  0  |  Easy pickings:  0
Patch needs improvement:  0  |
-+-
Changes (by aaugustin):

 * status:  new => closed
 * type:  Bug => New feature
 * resolution:   => invalid


Comment:

 Currently, `makemessages` doesn't handle multiple `locale` folders at all.
 It is hardcoded to run:

 - from django's source tree: it will gather all translations in
 `./conf/locale`, except those from the contrib apps,
 - from a project's or an app's source tree: it will gather all
 translations in `./locale`, and it requires this directory to exist, so
 you must create it manually before you run `makemessages` for the first
 language.

 The proper way to run `makemessages` is : `cd yourapp; django-admin.py
 makemessages ...`. That raises no warnings

 I agree it's a bit tedious if you maintain one set of translation set per
 app, like I do.

 But it works as documented on
 https://docs.djangoproject.com/en/1.3/howto/i18n/ (search for "To create
 message files..."). So we can't count this as a bug.

 

 Let's imagine an improved `makemessages` that would look for `locale`
 directories in the whole subtree, and for each of them, run the equivalent
 of the current `makemessages` from the containing directory. There are
 some edge cases: what if you have `foo/locale/bar/locale`?. And this still
 doesn't handle `LOCALE_PATHS`, because when django just gets a catalog
 from `LOCALE_PATHS`, it has no way to know where the corresponding source
 files are.

 To sum up, there is no bug, and making `makemessages` smarter would be
 hard, enough to require a discussion on the django-developers mailing
 list. As a consequence, I will close the ticket. If you want to improve
 `makemessages`, could you elaborate your proposal on the mailing list?

-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting at all

2011-05-24 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting at all
-+-
   Reporter:  heylinus   |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:
Version:  1.3|  Internationalization
 Resolution: |   Severity:  Normal
   Triage Stage: |   Keywords:
  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
-+-
Changes (by anonymous):

 * version:  SVN => 1.3


-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #16084: makemessages command doesn't respect LOCALE_PATHS setting at all (was: makemessage command doesn't respect LOCALE_PATHS setting at all)

2011-05-23 Thread Django
#16084: makemessages command doesn't respect LOCALE_PATHS setting at all
-+-
   Reporter:  heylinus   |  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:
Version:  SVN|  Internationalization
 Resolution: |   Severity:  Normal
   Triage Stage: |   Keywords:
  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
-+-
Changes (by anonymous):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0


-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.