From 4b817d717eea15143ab8ae4a51f262a795e75528 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 14 Mar 2005 03:50:38 +0000 Subject: [PATCH] * src/DisplayTrace.py (__init__): Mark debian distros. svn: r4177 --- gramps2/ChangeLog | 2 ++ gramps2/src/DisplayTrace.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 017d7c7d5..6d6ab87eb 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -12,6 +12,8 @@ * src/EventEdit.py (get_place): Typo. + * src/DisplayTrace.py (__init__): Mark debian distros. + 2005-03-12 Martin Hawlisch * src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and reset(), that are called before/after a filter is applied, to properly diff --git a/gramps2/src/DisplayTrace.py b/gramps2/src/DisplayTrace.py index ef1fdeda4..8291228cb 100644 --- a/gramps2/src/DisplayTrace.py +++ b/gramps2/src/DisplayTrace.py @@ -80,6 +80,8 @@ class DisplayTrace: msg.write("GRAMPS : %s\n" % const.version) if os.environ.has_key('LANG'): msg.write("LANG : %s\n" % os.environ['LANG']) + if os.environ.has_key('LANGUAGE'): + msg.write("LANGUAGE : %s\n" % os.environ['LANGUAGE']) msg.write("Python : %s.%s.%s %s\n" % (ver[0],ver[1],ver[2],ver[3])) msg.write("GTK : %s.%s.%s\n" % gtk.gtk_version) msg.write('PyGTK : %d.%d.%d\n' % gtk.pygtk_version) @@ -88,6 +90,8 @@ class DisplayTrace: try: f = open(n) text = f.readline() + if n.find('debian') != -1: + text = "Debian %s" % text msg.write("OS : %s\n" % text) f.close() break