Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#2073 closed defect (fixed)

No way to set language if en_US is not installed

Reported by: alsroot Owned by: tomeu
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

kandarpk on #ubuntu-sugarteam has reported that having

locale: en_IN           archive: /usr/lib/locale/locale-archive
-------------------------------------------------------------------------------
    title | English language locale for India
   source | IBM Globalization Center of Competency, Yamato Software Laboratory
  address | 1623-14, Shimotsuruma, Yamato-shi, Kanagawa-ken, 242-8502, Japan
    email | bug-glibc-locales@gnu.org
 language | English
territory | India
 revision | 1.0
     date | 2000,October,27 (XML source:2000,July,20)
  codeset | UTF-8

locale: en_IN.utf8      archive: /usr/lib/locale/locale-archive
-------------------------------------------------------------------------------
    title | English language locale for India
   source | IBM Globalization Center of Competency, Yamato Software Laboratory
  address | 1623-14, Shimotsuruma, Yamato-shi, Kanagawa-ken, 242-8502, Japan
    email | bug-glibc-locales@gnu.org
 language | English
territory | India
 revision | 1.0
     date | 2000,October,27 (XML source:2000,July,20)
  codeset | UTF-8

as locale -av output, sugar fails in Language control panel component with stack

(process:2033): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
1278084172.174861 WARNING root: No gtk.AccelGroup in the top level window.
1278084172.179189 WARNING root: No gtk.AccelGroup in the top level window.
1278084172.183364 WARNING root: No gtk.AccelGroup in the top level window.
1278084172.187559 WARNING root: No gtk.AccelGroup in the top level window.
/usr/lib/python2.6/dist-packages/sugar/graphics/tray.py:179: GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
  self.set_icon_widget(alignment)
/usr/lib/python2.6/dist-packages/sugar/graphics/tray.py:236: GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
  self.pack_start(scroll_left, False)
/usr/lib/python2.6/dist-packages/sugar/graphics/tray.py:243: GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
  self.pack_start(scroll_right, False)
1278084172.293739 ERROR root: Exception while loading extension:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/jarabe/frame/devicestray.py", line 36, in __init__
    mod.setup(self)
  File "/usr/share/sugar/extensions/deviceicon/battery.py", line 247, in setup
    '/org/freedesktop/Hal/Manager')
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 630, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files

/usr/lib/python2.6/dist-packages/sugar/graphics/tray.py:322: GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
  self.pack_start(scroll_up, False)
/usr/lib/python2.6/dist-packages/sugar/graphics/tray.py:329: GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
  self.pack_start(scroll_down, False)

** (sugar-session:1996): WARNING **: Grab failed, another application may already have access to key 'Print'

** (sugar-session:1996): WARNING **: Grab failed, another application may already have access to key '<alt>Escape'

** (sugar-session:1996): WARNING **: Grab failed, another application may already have access to key '<alt><shift>Tab'

** (sugar-session:1996): WARNING **: Grab failed, another application may already have access to key '<alt>Tab'
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/jarabe/controlpanel/gui.py", line 321, in __select_option_cb
    self.show_section_view(option)
  File "/usr/lib/python2.6/dist-packages/jarabe/controlpanel/gui.py", line 218, in show_section_view
    self._options[option]['alerts'])
  File "/usr/share/sugar/extensions/cpsection/language/view.py", line 86, in __init__
    self.setup()
  File "/usr/share/sugar/extensions/cpsection/language/view.py", line 176, in setup
    self._add_row(locale_code=locale)
  File "/usr/share/sugar/extensions/cpsection/language/view.py", line 140, in _add_row
    self._determine_add_remove_visibility()
  File "/usr/share/sugar/extensions/cpsection/language/view.py", line 257, in _determine_add_remove_visibility
    selected_langs = self._get_selected_langs()
  File "/usr/share/sugar/extensions/cpsection/language/view.py", line 246, in _get_selected_langs
    lang_code = model.get(it, 0)[0]
TypeError: iter must be a GtkTreeIter
}}

Attachments (1)

0001-Use-current-default-language-insted-of-hardcoded-en_.patch (920 bytes) - added by alsroot 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by alsroot

  • Keywords r? added

comment:2 Changed 11 years ago by alsroot

Patch was tested in kandarpk's environment (~/.i18n was removed before testing patch).

comment:3 Changed 11 years ago by erikos

  • Milestone changed from Unspecified by Release Team to 0.90

comment:4 Changed 11 years ago by erikos

  • Keywords r+ added; r? removed

I thin we can change the _default_lang in the module level. Otherwise sounds good to me.

comment:6 Changed 8 years ago by dnarvaez

  • Milestone 0.90 deleted

Milestone 0.90 deleted

Note: See TracTickets for help on using tickets.