[issue17898] gettext bug while parsing plural-forms metadata
Steve Strassmann
report at bugs.python.org
Fri May 10 22:07:10 CEST 2013
Steve Strassmann added the comment:
Sorry, I haven't installed python 3.*, I just have default Mac OS python 2.7.
Here's a minimal test case. Tar expands to
file structure:
./test.py
./en/LC_MESSAGES/messages.po
$ ./test.py
Traceback (most recent call last):
File "./test.py", line 28, in <module>
test()
File "./test.py", line 23, in test
gettext.install('messages', localedir=LOCALEDIR)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 494, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 479, in translat\
ion
t = _translations.setdefault(key, class_(fp))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 180, in __init__
self._parse(fp)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 314, in _parse
v = v.split(';')
AttributeError: 'list' object has no attribute 'split'
----------
Added file: http://bugs.python.org/file30206/pybug.tar.gz
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17898>
_______________________________________
More information about the Python-bugs-list
mailing list