use non-localized descriptions for cli help

svn: r3944
This commit is contained in:
Eero Tamminen 2005-01-21 21:46:11 +00:00
parent 5daaef4675
commit da4184f1f8
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2005-01-21 Eero Tamminen <eerot@sf>
* src/plugins/GraphViz.py: Change CLI help to use non-localized
option descriptions
2005-01-19 Don Allingham <dallingham@users.sourceforge.net> 2005-01-19 Don Allingham <dallingham@users.sourceforge.net>
* src/ReportUtils.py: added estimate_age and sanitize_person * src/ReportUtils.py: added estimate_age and sanitize_person
* src/BaseDoc.py: Add checks attempting to add styles after initializing * src/BaseDoc.py: Add checks attempting to add styles after initializing

View File

@ -446,13 +446,13 @@ class GraphVizOptions(ReportOptions.ReportOptions):
self.options_help = { self.options_help = {
'font' : ("=str","Font to use in the report.", 'font' : ("=str","Font to use in the report.",
[ "%s\t%s" % (item[0],item[2]) for item in _options.fonts ], [ "%s\t%s" % (item[0],item[1]) for item in _options.fonts ],
False), False),
'latin' : ("=0/1","Needs to be set if font doesn't support unicode.", 'latin' : ("=0/1","Needs to be set if font doesn't support unicode.",
["Supports unicode","Supports only Latin1"], ["Supports unicode","Supports only Latin1"],
True), True),
'arrow' : ("=str","Arrow styles for heads and tails.", 'arrow' : ("=str","Arrow styles for heads and tails.",
[ "%s\t%s" % (item[0],item[2]) for item in _options.arrowstyles ], [ "%s\t%s" % (item[0],item[1]) for item in _options.arrowstyles ],
False), False),
'showfamily': ("=0/1","Whether to show family nodes.", 'showfamily': ("=0/1","Whether to show family nodes.",
["Do not show family nodes","Show family nodes"], ["Do not show family nodes","Show family nodes"],
@ -473,10 +473,10 @@ class GraphVizOptions(ReportOptions.ReportOptions):
["Do not include URLs","Include URLs"], ["Do not include URLs","Include URLs"],
True), True),
'rankdir' : ("=str","Graph direction.", 'rankdir' : ("=str","Graph direction.",
[ "%s\t%s" % (item[0],item[2]) for item in _options.rankdir ], [ "%s\t%s" % (item[0],item[1]) for item in _options.rankdir ],
False), False),
'color' : ("=str","Whether and how to colorize graph.", 'color' : ("=str","Whether and how to colorize graph.",
[ "%s\t%s" % (item[0],item[2]) for item in _options.colors ], [ "%s\t%s" % (item[0],item[1]) for item in _options.colors ],
False), False),
'dashedl' : ("=0/1","Whether to use dotted lines for non-birth relationships.", 'dashedl' : ("=0/1","Whether to use dotted lines for non-birth relationships.",
["Do not use dotted lines","Use dotted lines"], ["Do not use dotted lines","Use dotted lines"],
@ -490,7 +490,7 @@ class GraphVizOptions(ReportOptions.ReportOptions):
'pagesv' : ("=num","Number of pages in vertical direction.", 'pagesv' : ("=num","Number of pages in vertical direction.",
"Integer values"), "Integer values"),
'gvof' : ("=str","Output format to convert dot file into.", 'gvof' : ("=str","Output format to convert dot file into.",
[ "%s\t%s" % (item[0],item[2]) for item in _options.formats ], [ "%s\t%s" % (item[0],item[1]) for item in _options.formats ],
False), False),
} }