Bug 426424 - firstboot doesn't work in locale sv_SE.UTF-8
Summary: firstboot doesn't work in locale sv_SE.UTF-8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: firstboot
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-20 22:28 UTC by Dennis Björklund
Modified: 2008-01-02 20:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-02 20:34:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dennis Björklund 2007-12-20 22:28:18 UTC
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>
    firstbootWindow(fb)
  File "/usr/share/firstboot/firstbootWindow.py", line 150, in __init__
    self.loadModules()
  File "/usr/share/firstboot/firstbootWindow.py", line 426, in loadModules
    loaded = imputil.imp.load_module(module, found[0], found[1], found[2])
  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__
    self._parse(fp)
  File "/usr/lib/python2.5/gettext.py", line 316, in _parse
    plural = v[1].split('plural=')[1]

Comment 1 Chris Lumens 2008-01-02 20:34:12 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.