6258: Error during start of Gramps for certain LANG values
svn: r20908
This commit is contained in:
parent
f1eecb349d
commit
711e25e5bb
@ -43,14 +43,13 @@ from .. import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_CODE, CATEGORY_WEB,
|
|||||||
CATEGORY_BOOK, CATEGORY_GRAPHVIZ)
|
CATEGORY_BOOK, CATEGORY_GRAPHVIZ)
|
||||||
|
|
||||||
standalone_categories = {
|
standalone_categories = {
|
||||||
CATEGORY_TEXT : _("Text Reports"),
|
CATEGORY_TEXT : ("RepText", _("Text Reports")),
|
||||||
CATEGORY_DRAW : _("Graphical Reports"),
|
CATEGORY_DRAW : ("RepGraph", _("Graphical Reports")),
|
||||||
CATEGORY_CODE : _("Code Generators"),
|
CATEGORY_CODE : ("RepCode", _("Code Generators")),
|
||||||
CATEGORY_WEB : _("Web Pages"),
|
CATEGORY_WEB : ("RepWeb", _("Web Pages")),
|
||||||
CATEGORY_BOOK : _("Books"),
|
CATEGORY_BOOK : ("RepBook", _("Books")),
|
||||||
CATEGORY_GRAPHVIZ : _("Graphs"),
|
CATEGORY_GRAPHVIZ : ("Graphs", _("Graphs")),
|
||||||
}
|
}
|
||||||
|
|
||||||
book_categories = {
|
book_categories = {
|
||||||
CATEGORY_TEXT : _("Text"),
|
CATEGORY_TEXT : _("Text"),
|
||||||
CATEGORY_DRAW : _("Graphics"),
|
CATEGORY_DRAW : _("Graphics"),
|
||||||
|
@ -55,14 +55,13 @@ from gramps.gen.plug import (TOOL_DEBUG, TOOL_ANAL, TOOL_DBPROC, TOOL_DBFIX,
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
tool_categories = {
|
tool_categories = {
|
||||||
TOOL_DEBUG : _("Debug"),
|
TOOL_DEBUG : ("ToolDebug", _("Debug")),
|
||||||
TOOL_ANAL : _("Analysis and Exploration"),
|
TOOL_ANAL : ("ToolAnExp", _("Analysis and Exploration")),
|
||||||
TOOL_DBPROC : _("Family Tree Processing"),
|
TOOL_DBPROC : ("ToolProc", _("Family Tree Processing")),
|
||||||
TOOL_DBFIX : _("Family Tree Repair"),
|
TOOL_DBFIX : ("ToolRep", _("Family Tree Repair")),
|
||||||
TOOL_REVCTL : _("Revision Control"),
|
TOOL_REVCTL : ("ToolRev", _("Revision Control")),
|
||||||
TOOL_UTILS : _("Utilities"),
|
TOOL_UTILS : ("ToolUtil", _("Utilities")),
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Tool
|
# Tool
|
||||||
|
@ -120,7 +120,7 @@ if is_quartz():
|
|||||||
else:
|
else:
|
||||||
_GTKOSXAPPLICATION = False
|
_GTKOSXAPPLICATION = False
|
||||||
|
|
||||||
_UNSUPPORTED = _("Unsupported")
|
_UNSUPPORTED = ("Unsupported", _("Unsupported"))
|
||||||
|
|
||||||
UIDEFAULT = '''<ui>
|
UIDEFAULT = '''<ui>
|
||||||
<menubar name="MenuBar">
|
<menubar name="MenuBar">
|
||||||
@ -1804,9 +1804,9 @@ class ViewManager(CLIManager):
|
|||||||
if item != _UNSUPPORTED)
|
if item != _UNSUPPORTED)
|
||||||
|
|
||||||
for key in catlist:
|
for key in catlist:
|
||||||
new_key = key.replace(' ', '-')
|
new_key = key[0].replace(' ', '-')
|
||||||
ofile.write('<menu action="%s">' % new_key)
|
ofile.write('<menu action="%s">' % new_key)
|
||||||
actions.append((new_key, None, key))
|
actions.append((new_key, None, key[1]))
|
||||||
pdatas = hash_data[key]
|
pdatas = hash_data[key]
|
||||||
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