Re: [Django] #29151: Aliasing pgettext_lazy makes it work unexpected

2018-02-23 Thread Django
#29151: Aliasing pgettext_lazy makes it work unexpected
-+-
 Reporter:  shutterfire  |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:   |  Version:  2.0
  Internationalization   |
 Severity:  Normal   |   Resolution:  invalid
 Keywords:  i18n | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

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


Comment:

 This is a [https://docs.djangoproject.com/en/dev/topics/i18n/translation
 /#standard-translation limitation of xgettext],

 > Because of how xgettext (used by makemessages) works, only functions
 that take a single string argument can be imported as _``:
 > * `gettext()`
 > * `gettext_lazy()`

-- 
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/069.520025a43402ac0b4bc32856af8eb9ea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #29151: Aliasing pgettext_lazy makes it work unexpected

2018-02-23 Thread Django
#29151: Aliasing pgettext_lazy makes it work unexpected
-+-
 Reporter:  shutterfire  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  2.0
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:  i18n | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham):

 I'm not sure how aliasing a function could change its behavior. Are you
 sure you haven't made a mistake in your project? Can you provide a failing
 test (tests/i18n/tests.py) or a sample project that demonstrates the
 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/069.889889d321260b83e17e5d935fd2d510%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #29151: Aliasing pgettext_lazy makes it work unexpected

2018-02-22 Thread Django
#29151: Aliasing pgettext_lazy makes it work unexpected
+
   Reporter:  shutterfire   |  Owner:  nobody
   Type:  Bug   | Status:  new
  Component:  Internationalization  |Version:  2.0
   Severity:  Normal|   Keywords:  i18n
   Triage Stage:  Unreviewed|  Has patch:  0
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  0
  UI/UX:  0 |
+
 Aliasing pgettext_lazy, e.g. to "_" or "p_" makes it "forget" to create
 the msgctxt or to work at all

-- 
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/054.61fa69921bacf6c1d805e57084870688%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.