From 28c0638c38e82bc7a2d2783d4d3c236bfad999a5 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 27 Jun 2017 09:06:11 -0700 Subject: [PATCH] don't print a 'Distribution' line in Windows' Help=>About --- gramps/gui/aboutdialog.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gramps/gui/aboutdialog.py b/gramps/gui/aboutdialog.py index c650087cf..6120df7d3 100644 --- a/gramps/gui/aboutdialog.py +++ b/gramps/gui/aboutdialog.py @@ -127,10 +127,10 @@ class GrampsAboutDialog(Gtk.AboutDialog): """ if hasattr(os, "uname"): operatingsystem = os.uname()[0] - distribution = os.uname()[2] - else: + distro = "\n" + _("Distribution: %s") % ellipses(os.uname()[2]) + else: # probably Windows operatingsystem = sys.platform - distribution = " " + distro = "" # print nothing if there's nothing to print sqlite = '' if __debug__: @@ -143,14 +143,13 @@ class GrampsAboutDialog(Gtk.AboutDialog): "BSDDB: %s \n" + sqlite + "LANG: %s\n" + - "OS: %s\n" + - "Distribution: %s") + "OS: %s" + + distro) % (ellipses(str(VERSION)), ellipses(str(sys.version).replace('\n','')), BSDDB_STR, ellipses(get_env_var('LANG','')), - ellipses(operatingsystem), - ellipses(distribution))) + ellipses(operatingsystem))) #------------------------------------------------------------------------- #