Opened 9 years ago

Closed 9 years ago

#4868 closed defect (fixed)

Broken .i18n file don't allow change language in My Settings

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


Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/jarabe/controlpanel/", line 372, in select_option_cb


File "/usr/lib/python2.7/site-packages/jarabe/controlpanel/", line 264, in show_section_view


File "/usr/share/sugar/extensions/cpsection/language/", line 63, in init

self._selected_locales = self._model.get_languages()

File "/usr/share/sugar/extensions/cpsection/language/", line 127, in get_languages

return [lang]

UnboundLocalError: local variable 'lang' referenced before assignment
1435676014.848136 WARNING root: icon_size is deprecated. Use pixel_size instead.

Change History (2)

comment:2 Changed 9 years ago by Gonzalo Odiard

  • Resolution set to fixed
  • Status changed from new to closed

Set default language when read .i18n file - Fixes #4868

If the file is empty or corrupted, use the default language.

Changeset: cd1bbe8209264ea82e0167d0ce633be52107fec2

Note: See TracTickets for help on using tickets.