0

In Lucid 10.04, while trying to get spell-checking running in OpenOffice, I discovered taht I cannot open my Language Support dialog.

  • System -> Administration -> Language Support

It flashes up on the screen, shows a progress bar, and immediately disappears as the progress bar gets to the end...

I've uninstalled and re-insatalled language-selector-common language-selector ubuntu-standard, but it hasn't made any difference.

Here is the stderr output, from running /usr/bin/gnome-language-selector in the terminal. I can't figure it out, but maybe someone can work out what the problem is.

/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py:803: GtkWarning: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed
  cell = combo.get_child().get_cell_renderers()[0]
Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 32, in <module>
    options=options)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 191, in __init__
    self.updateLocaleChooserCombo()
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 63, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 818, in updateLocaleChooserCombo
    defaultLangName = self._localeinfo.translate(defaultLangCode, native=True)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/LocaleInfo.py", line 169, in translate
    l = filter(lambda k: k.startswith(macr['LCODE']), self.generated_locales())
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/LocaleInfo.py", line 110, in generated_locales
    macr = macros.LangpackMacros(self._datadir, tmp)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/macros.py", line 87, in __init__
    (self['LCODE'], self['CCODE']) = locale.split('_')
ValueError: too many values to unpack
Peter.O
  • 25,251

1 Answers1

1

First of all: it sounds like a bug, report it as such.

Some insight: the error itself Python itself is described here, basically what it's saying is that the locale string that is to be parsed should be split on "_" and broken up in two parts (one called LCODE and the other CCODE)... but there are more than two parts, so Python complains. Locales tend to look like en_US.UTF-8, so that's why splitting them up on "_" is a good idea: one says it's English, the other part says it's specifically US English.

Perhaps you have locales that don't follow this format installed (unlikely, but possible?)?

Lakritsbollar
  • 951
  • 4
  • 7