-
Notifications
You must be signed in to change notification settings - Fork 444
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
"ValueError: expected only letters, got u'ko-kr'" #489
Comments
Hi! The default separator for The location you linked, https://github.com/python-babel/babel/blob/v2.4.0/tests/test_core.py#L100, explicitly passes The behavior of |
Ahhh, right you are! Didn't think about that. |
I'll wait for a while before cutting 2.4.1, in case there are other bug reports. |
Thanks a lot @akx ! |
Project: openstack/requirements 2c3104a70cbfeb1f754ce8e123bb5985e5d1bda9 Blacklist Babel 2.4.0 Babel 2.4.0 does not handle "-" in locale po files like "ko-KR". This is fixed now for the upcoming Babel 2.4.1 release. To be able to publish translated content, blacklist Babel 2.4.0. For details, see python-babel/babel#489 Change-Id: I3bd63b3c4798270890c7cabe1d4e7aedf1aaa1ed
Babel 2.4.0 does not handle "-" in locale po files like "ko-KR". This is fixed now for the upcoming Babel 2.4.1 release. To be able to publish translated content, blacklist Babel 2.4.0. For details, see python-babel/babel#489 Change-Id: I3bd63b3c4798270890c7cabe1d4e7aedf1aaa1ed
Project: openstack/requirements 2c3104a70cbfeb1f754ce8e123bb5985e5d1bda9 Blacklist Babel 2.4.0 Babel 2.4.0 does not handle "-" in locale po files like "ko-KR". This is fixed now for the upcoming Babel 2.4.1 release. To be able to publish translated content, blacklist Babel 2.4.0. For details, see python-babel/babel#489 Change-Id: I3bd63b3c4798270890c7cabe1d4e7aedf1aaa1ed
Babel 2.4.0 does not handle "-" in locale po files like "ko-KR". This is fixed now for the upcoming Babel 2.4.1 release. To be able to publish translated content, blacklist Babel 2.4.0. For details, see python-babel/babel#489 Change-Id: I3bd63b3c4798270890c7cabe1d4e7aedf1aaa1ed (cherry picked from commit a6f7497)
With Babel 2.4.0 we get:
File "/home/jenkins/workspace/openstack-manuals-tox-doc-publishlang/.tox/venv/local/lib/python2.7/site-packages/babel/core.py", line 1093, in parse_locale
"ValueError: expected only letters, got u'ko-kr'"
This comes from using "ko-kr" as locale in http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/locale/ko_KR/LC_MESSAGES/install-guide.po#n42
We didn't have this problem with earlier Babel releases.
Other places in Babel accept the '-' like https://github.com/python-babel/babel/blob/v2.4.0/tests/test_core.py#L100 - why not here as well and break existing files this way?
The text was updated successfully, but these errors were encountered: