don't print a 'Distribution' line in Windows' Help=>About
This commit is contained in:
parent
dc645c813b
commit
28c0638c38
@ -127,10 +127,10 @@ class GrampsAboutDialog(Gtk.AboutDialog):
|
|||||||
"""
|
"""
|
||||||
if hasattr(os, "uname"):
|
if hasattr(os, "uname"):
|
||||||
operatingsystem = os.uname()[0]
|
operatingsystem = os.uname()[0]
|
||||||
distribution = os.uname()[2]
|
distro = "\n" + _("Distribution: %s") % ellipses(os.uname()[2])
|
||||||
else:
|
else: # probably Windows
|
||||||
operatingsystem = sys.platform
|
operatingsystem = sys.platform
|
||||||
distribution = " "
|
distro = "" # print nothing if there's nothing to print
|
||||||
|
|
||||||
sqlite = ''
|
sqlite = ''
|
||||||
if __debug__:
|
if __debug__:
|
||||||
@ -143,14 +143,13 @@ class GrampsAboutDialog(Gtk.AboutDialog):
|
|||||||
"BSDDB: %s \n" +
|
"BSDDB: %s \n" +
|
||||||
sqlite +
|
sqlite +
|
||||||
"LANG: %s\n" +
|
"LANG: %s\n" +
|
||||||
"OS: %s\n" +
|
"OS: %s" +
|
||||||
"Distribution: %s")
|
distro)
|
||||||
% (ellipses(str(VERSION)),
|
% (ellipses(str(VERSION)),
|
||||||
ellipses(str(sys.version).replace('\n','')),
|
ellipses(str(sys.version).replace('\n','')),
|
||||||
BSDDB_STR,
|
BSDDB_STR,
|
||||||
ellipses(get_env_var('LANG','')),
|
ellipses(get_env_var('LANG','')),
|
||||||
ellipses(operatingsystem),
|
ellipses(operatingsystem)))
|
||||||
ellipses(distribution)))
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user