Bug #107
closedFeature #44: Request for inclusion: Songwrite2
Songwrite2 crashes on untranslated PO files
Description
Currently only English and French are available in Songwrite. Launching it in the Spanish console says:
$ songwrite2 Traceback (most recent call last): File "/usr/bin/songwrite2", line 31, in <module> import songwrite2.model as model File "/usr/share/songwrite2/model.py", line 779, in <module> DRUM_PATCHES = dict([(int(i), patch) for (i, patch) in DRUM_PATCHES]) ValueError: need more than 1 value to unpack
This is likely due to the fact that the Drum instrument table is a PO message and is empty in the Spanish PO file. If we remove the MO file from locale/
(language not in SVN/Transifex), we get:
$ sudo rm /usr/share/locale/es/LC_MESSAGES/songwrite2.mo $ songwrite2 Traceback (most recent call last): File "/usr/bin/songwrite2", line 30, in <module> import songwrite2.globdef File "/usr/share/songwrite2/globdef.py", line 40, in <module> translator = gettext.translation("songwrite2", LOCALEDIR, ("en",)) File "/usr/lib/python2.5/gettext.py", line 469, in translation raise IOError(ENOENT, 'No translation file found for domain', domain) IOError: [Errno 2] No translation file found for domain: 'songwrite2'
It seems it's now looking for the English MO file but it is missing since we're purging locales:
$ ls /usr/share/locale/en/ LC_MESSAGES
Updated by Jean-Michel Philippe over 13 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
Upstream author has been contacted.
Updated by Jean-Michel Philippe over 13 years ago
- Status changed from In Progress to Ready for test
- % Done changed from 10 to 80
Finally I wrote scripts that produce PO files easier to understand for translators and then reuse them into upstream PO files. These PO files must then be recompiled with the application packages right now. However our CD build script may be able to use the script and generate the correct MO files.
Updated by Jean-Michel Philippe over 13 years ago
- Status changed from Ready for test to Resolved
- % Done changed from 80 to 100
Updated by Jean-Michel Philippe over 13 years ago
- Status changed from Resolved to Closed