Red Hat Bugzilla – Bug 426424
firstboot doesn't work in locale sv_SE.UTF-8
Last modified: 2008-01-02 15:34:12 EST
firstboot did not show up after a fresh install of F8.
When I tried to run it by hand I got the traceback below. When I tried that
command again using LANG=C it worked but it doesn't work in the swedish locale
(sv_SE.UTF-8) that is the default for this system.
# firstboot --reconfig
starting reconfig mode
no image found
File "/usr/sbin/firstboot", line 101, in <module>
File "/usr/share/firstboot/firstbootWindow.py", line 150, in __init__
File "/usr/share/firstboot/firstbootWindow.py", line 426, in loadModules
loaded = imputil.imp.load_module(module, found, found, found)
File "/usr/share/firstboot/modules/smolt.py", line 22, in <module>
t = gettext.translation('smolt', '/usr/share/locale', fallback = True)
File "/usr/lib/python2.5/gettext.py", line 480, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
File "/usr/lib/python2.5/gettext.py", line 180, in __init__
File "/usr/lib/python2.5/gettext.py", line 316, in _parse
plural = v.split('plural=')
This is because the Swedish translation file does not include a definition for
plural forms, and Python doesn't like that much. This will be fixed in the next
build of firstboot and in an update release should I make one.