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)
|
||||
|
||||
standalone_categories = {
|
||||
CATEGORY_TEXT : _("Text Reports"),
|
||||
CATEGORY_DRAW : _("Graphical Reports"),
|
||||
CATEGORY_CODE : _("Code Generators"),
|
||||
CATEGORY_WEB : _("Web Pages"),
|
||||
CATEGORY_BOOK : _("Books"),
|
||||
CATEGORY_GRAPHVIZ : _("Graphs"),
|
||||
CATEGORY_TEXT : ("RepText", _("Text Reports")),
|
||||
CATEGORY_DRAW : ("RepGraph", _("Graphical Reports")),
|
||||
CATEGORY_CODE : ("RepCode", _("Code Generators")),
|
||||
CATEGORY_WEB : ("RepWeb", _("Web Pages")),
|
||||
CATEGORY_BOOK : ("RepBook", _("Books")),
|
||||
CATEGORY_GRAPHVIZ : ("Graphs", _("Graphs")),
|
||||
}
|
||||
|
||||
book_categories = {
|
||||
CATEGORY_TEXT : _("Text"),
|
||||
CATEGORY_DRAW : _("Graphics"),
|
||||
|
@ -55,14 +55,13 @@ from gramps.gen.plug import (TOOL_DEBUG, TOOL_ANAL, TOOL_DBPROC, TOOL_DBFIX,
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
tool_categories = {
|
||||
TOOL_DEBUG : _("Debug"),
|
||||
TOOL_ANAL : _("Analysis and Exploration"),
|
||||
TOOL_DBPROC : _("Family Tree Processing"),
|
||||
TOOL_DBFIX : _("Family Tree Repair"),
|
||||
TOOL_REVCTL : _("Revision Control"),
|
||||
TOOL_UTILS : _("Utilities"),
|
||||
TOOL_DEBUG : ("ToolDebug", _("Debug")),
|
||||
TOOL_ANAL : ("ToolAnExp", _("Analysis and Exploration")),
|
||||
TOOL_DBPROC : ("ToolProc", _("Family Tree Processing")),
|
||||
TOOL_DBFIX : ("ToolRep", _("Family Tree Repair")),
|
||||
TOOL_REVCTL : ("ToolRev", _("Revision Control")),
|
||||
TOOL_UTILS : ("ToolUtil", _("Utilities")),
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Tool
|
||||
|
@ -120,7 +120,7 @@ if is_quartz():
|
||||
else:
|
||||
_GTKOSXAPPLICATION = False
|
||||
|
||||
_UNSUPPORTED = _("Unsupported")
|
||||
_UNSUPPORTED = ("Unsupported", _("Unsupported"))
|
||||
|
||||
UIDEFAULT = '''<ui>
|
||||
<menubar name="MenuBar">
|
||||
@ -1804,9 +1804,9 @@ class ViewManager(CLIManager):
|
||||
if item != _UNSUPPORTED)
|
||||
|
||||
for key in catlist:
|
||||
new_key = key.replace(' ', '-')
|
||||
new_key = key[0].replace(' ', '-')
|
||||
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.sort(key=lambda x: x.name)
|
||||
for pdata in pdatas:
|
||||
|
Loading…
Reference in New Issue
Block a user