-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Babel 2.3.2 ignores ungettext_lazy #384
Comments
Note pgettext_lazy strings have the same problem. Just add somewhere:
And it's not extracted with Babel 2.3.2 but is extracted with Babel 2.2.0. |
Would doing
work as a workaround? I.e. passing the keywords in as the space-separated string the command description mentions, instead of passing them as separate arguments. I agree this is a regression though; it definitely makes sense for |
Aarni, yes, that works and we can easily change it. thanks, |
Fixes python-babel#384 (python-babel#384) Thanks to @ajaeger for the bug report.
Note that Babel 2.2.0 does not like the new syntax: File "/home/aj/Software/vcs/OpenStack/openstack/horizon/venv/lib/python2.7/site-packages/babel/messages/frontend.py", line 1241, in parse_keywords No real problem, just wanted to point out that multiple values is a new feature of 2.3. Andreas |
@ajaeger Yeah, that's entirely possible. Thanks for the note though :) Versions < 2.3.0 had duplicate code for two different flavors of CLI utilities (distutils and standalone), and they probably did things in subtly different ways. #311 was the PR that removed the duplication -- and inadvertently also introduced this bug, #385, and #383. |
Fixes python-babel#384 (python-babel#384) Thanks to @ajaeger for the bug report.
Fixes python-babel#384 (python-babel#384) Thanks to @ajaeger for the bug report.
Fixes python-babel#384 (python-babel#384) Thanks to @ajaeger for the bug report.
This is a combination of the test suite improvement fbc1648 and the frontend changes in 414aec5..ee8abd6. * Harmonize extraction keyword parsing between distutils and standalone CLI (python-babel#388, python-babel#384, python-babel#311) * Don't use unicode-variant %r for logging * extract: don't die badly when no input paths are specified in optparse mode * Remind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`) (python-babel#390) * Teach the optparse CLI about the parameter aliases it had forgotten in python-babel#311 (python-babel#390)
This is a combination of the test suite improvement fbc1648 and the frontend changes in 414aec5..ee8abd6. * Harmonize extraction keyword parsing between distutils and standalone CLI (python-babel#388, python-babel#384, python-babel#311) * Don't use unicode-variant %r for logging * extract: don't die badly when no input paths are specified in optparse mode * Remind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`) (python-babel#390) * Teach the optparse CLI about the parameter aliases it had forgotten in python-babel#311 (python-babel#390)
This is a combination of the test suite improvement fbc1648 and the frontend changes in 414aec5..ee8abd6. * Harmonize extraction keyword parsing between distutils and standalone CLI (python-babel#388, python-babel#384, python-babel#311) * Don't use unicode-variant %r for logging * extract: don't die badly when no input paths are specified in optparse mode * Remind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`) (python-babel#390) * Teach the optparse CLI about the parameter aliases it had forgotten in python-babel#311 (python-babel#390)
With OpenStack Horizon, I noticed that the extraction of strings suddenly skips a lot of strings.
Just compare file sizes:
-rw-r--r-- 1 aj users 707 Apr 11 08:01 django232.pot
-rw-r--r-- 1 aj users 911 Apr 11 08:00 django2.pot
to reproduce:
the zip file contains my locally generated pot files using Babel 2.2.0 (django2.pot) and 2.3.2 (django232.pot).
babel232-bug.zip
The text was updated successfully, but these errors were encountered: