cannot edit gnome menus (alacarte)

Bug #422899 reported by muyiwa
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
alacarte (Ubuntu)
New
Low
jorge rodriguez

Bug Description

I run an Ubuntu 9.04 32bit system. since version 8.10, i have not been able to edit my gnome menus. whenever i right click on the gnome panel and click on "Edit Menus", nothing comes up. running alacarte on the command line, i get this message

Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/python2.6/dist-packages/Alacarte/MainWindow.py", line 50, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/python2.6/dist-packages/Alacarte/MenuEditor.py", line 35, in __init__
    self.locale = locale.getdefaultlocale()[0]
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_NG

Revision history for this message
Noel J. Bergman (noeljb) wrote :

The problem is here: unknown locale: en_NG

I checked with Google. and apparently this is a long standing issue effecting many packages. The documented workaround is to change from English (Nigeria) to English (United States) for the system language.

Revision history for this message
muyiwa (muyiwa-iyowu) wrote :

thanks. i just changed to English United Kingdom and it now works. i guess this is still a bug though and should be fixed especially if it affects other languages that are not English.

affects: ubuntu → alacarte (Ubuntu)
Changed in alacarte (Ubuntu):
importance: Undecided → Low
Revision history for this message
nemanja radeta (nemanjaradeta-deactivatedaccount) wrote :

Same with sr_RS.
x86_64 GNU/Linux Ubuntu 10.04

There was same problem with software-center but it's solved in Lucid Lynx.

Revision history for this message
Ladislav Urošević (urosldp) wrote :

Confirmed with sr_RS. Solution is to open alacarte with LANG=en_US alacarte. Output is

LANG=en_US alacarte

(process:1638): Gtk-WARNING **: Locale not supported by C library.

 Using the fallback 'C' locale.

description: updated
Changed in alacarte (Ubuntu):
assignee: nobody → jorge rodriguez (jorgenarcea14)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.