6258: Error during start of Gramps for certain LANG values
svn: r20949
This commit is contained in:
parent
d6214118e2
commit
cc878faf8f
@ -216,7 +216,7 @@ class PluginDialog(ManagedWindow):
|
|||||||
for key in key_list:
|
for key in key_list:
|
||||||
data = item_hash[key]
|
data = item_hash[key]
|
||||||
node = self.store.insert_after(None, prev)
|
node = self.store.insert_after(None, prev)
|
||||||
self.store.set(node, 0, key)
|
self.store.set(node, 0, key[1])
|
||||||
next = None
|
next = None
|
||||||
data.sort(key=lambda k:k.name)
|
data.sort(key=lambda k:k.name)
|
||||||
for item in data:
|
for item in data:
|
||||||
|
@ -205,7 +205,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
def get_title(self):
|
def get_title(self):
|
||||||
"""The window title for this dialog"""
|
"""The window title for this dialog"""
|
||||||
name = self.report_name
|
name = self.report_name
|
||||||
category = standalone_categories[self.category]
|
category = standalone_categories[self.category][1]
|
||||||
return "%s - %s - Gramps" % (name, category)
|
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
|
task be in the format of task that takes a database and a person as
|
||||||
its arguments.
|
its arguments.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if require_active and not person:
|
if require_active and not person:
|
||||||
ErrorDialog(
|
ErrorDialog(
|
||||||
_('Active person has not been set'),
|
_('Active person has not been set'),
|
||||||
|
@ -1821,8 +1821,8 @@ class ViewManager(CLIManager):
|
|||||||
# and the unsupported category at the end of the menu
|
# and the unsupported category at the end of the menu
|
||||||
if _UNSUPPORTED in hash_data:
|
if _UNSUPPORTED in hash_data:
|
||||||
ofile.write('<separator/>')
|
ofile.write('<separator/>')
|
||||||
ofile.write('<menu action="%s">' % _UNSUPPORTED)
|
ofile.write('<menu action="%s">' % _UNSUPPORTED[0])
|
||||||
actions.append((_UNSUPPORTED, None, _UNSUPPORTED))
|
actions.append((_UNSUPPORTED[0], None, _UNSUPPORTED[1]))
|
||||||
pdatas = hash_data[_UNSUPPORTED]
|
pdatas = hash_data[_UNSUPPORTED]
|
||||||
pdatas.sort(key=lambda x: x.name)
|
pdatas.sort(key=lambda x: x.name)
|
||||||
for pdata in pdatas:
|
for pdata in pdatas:
|
||||||
|
Loading…
Reference in New Issue
Block a user