[gnome-tweak-tool] about: Don't show (user mode) next to GNOME Shell version



commit 7d118189c5720cae71456b2cfa911287878c50e0
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun May 28 14:12:22 2017 -0400

    about: Don't show (user mode) next to GNOME Shell version
    
    Because it is the default mode and not useful information.
    Still show other modes like (classic mode).
    
    And adjust strings to help translators.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783149

 gtweak/app.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/app.py b/gtweak/app.py
index 87c551f..d5796ef 100644
--- a/gtweak/app.py
+++ b/gtweak/app.py
@@ -95,9 +95,14 @@ class GnomeTweakTool(Gtk.Application):
 
         _shell = GnomeShellFactory().get_shell()
         if _shell is not None:
-            aboutdialog.set_comments(_("GNOME Shell v%s (%s mode)") % (_shell.version, _shell.mode))
+            if _shell.mode == "user":
+                about_comment = _("GNOME Shell") + " %s" % _shell.version
+            else:
+                about_comment = (_("GNOME Shell") + " %s " + _("(%s mode)")) % (_shell.version, _shell.mode)
         else:
-            aboutdialog.set_comments(_("GNOME Shell not running"))
+            about_comment = _("GNOME Shell is not running")
+
+        aboutdialog.set_comments(about_comment)
 
         aboutdialog.set_copyright("Copyright \xc2\xa9 2011 - 2013 John Stowers.")
         aboutdialog.set_logo_icon_name("gnome-tweak-tool")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]