6258: Error during start of Gramps for certain LANG values

svn: r20948
This commit is contained in:
Benny Malengier 2013-01-03 09:50:36 +00:00
parent 715ddbbab3
commit ab6342af70
3 changed files with 4 additions and 5 deletions

View File

@ -216,7 +216,7 @@ class PluginDialog(ManagedWindow):
for key in key_list:
data = item_hash[key]
node = self.store.insert_after(None, prev)
self.store.set(node, 0, key)
self.store.set(node, 0, key[1])
next = None
data.sort(key=lambda k:k.name)
for item in data:

View File

@ -205,7 +205,7 @@ class ReportDialog(ManagedWindow):
def get_title(self):
"""The window title for this dialog"""
name = self.report_name
category = standalone_categories[self.category]
category = standalone_categories[self.category][1]
return "%s - %s - Gramps" % (name, category)
#------------------------------------------------------------------------
@ -644,7 +644,6 @@ def report(dbstate, uistate, person, report_class, options_class,
task be in the format of task that takes a database and a person as
its arguments.
"""
if require_active and not person:
ErrorDialog(
_('Active person has not been set'),

View File

@ -1821,8 +1821,8 @@ class ViewManager(CLIManager):
# and the unsupported category at the end of the menu
if _UNSUPPORTED in hash_data:
ofile.write('<separator/>')
ofile.write('<menu action="%s">' % _UNSUPPORTED)
actions.append((_UNSUPPORTED, None, _UNSUPPORTED))
ofile.write('<menu action="%s">' % _UNSUPPORTED[0])
actions.append((_UNSUPPORTED[0], None, _UNSUPPORTED[1]))
pdatas = hash_data[_UNSUPPORTED]
pdatas.sort(key=lambda x: x.name)
for pdata in pdatas: