[gnome-software/wip/ubuntu-zesty: 12/13] Use Ubuntu Software name in Ubuntu



commit a58dfc7d12f4a3266112a2381095f13a26c4d0c4
Author: Sebastien Bacher <seb128 ubuntu com>
Date:   Tue Nov 8 13:39:47 2016 +1300

    Use Ubuntu Software name in Ubuntu

 src/gs-application.c |    8 ++++++--
 src/gs-shell.c       |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index be64e1f..7991df5 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -374,8 +374,12 @@ about_activated (GSimpleAction *action,
        /* TRANSLATORS: this is the title of the about window */
        gtk_window_set_title (GTK_WINDOW (dialog), _("About Software"));
 
-       /* TRANSLATORS: this is the application name */
-       gtk_about_dialog_set_program_name (dialog, _("Software"));
+       if (gs_utils_is_current_desktop ("Unity"))
+               /* TRANSLATORS: this is the application name */
+               gtk_about_dialog_set_program_name (dialog, _("Ubuntu Software"));
+       else
+               /* TRANSLATORS: this is the application name */
+               gtk_about_dialog_set_program_name (dialog, _("Software"));
 
        /* TRANSLATORS: well, we seem to think so, anyway */
        gtk_about_dialog_set_comments (dialog, _("A nice way to manage the "
diff --git a/src/gs-shell.c b/src/gs-shell.c
index cfd23b7..5228ee2 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -262,8 +262,12 @@ gs_shell_change_mode (GsShell *shell,
        context = gtk_widget_get_style_context (GTK_WIDGET (gtk_builder_get_object (priv->builder, 
"header")));
        gtk_style_context_remove_class (context, "selection-mode");
        /* set the window title back to default */
-       /* TRANSLATORS: this is the main window title */
-       gtk_window_set_title (priv->main_window, _("Software"));
+       if (gs_utils_is_current_desktop ("Unity"))
+               /* TRANSLATORS: this is the main window title */
+               gtk_window_set_title (priv->main_window, _("Ubuntu Software"));
+       else
+               /* TRANSLATORS: this is the main window title */
+               gtk_window_set_title (priv->main_window, _("Software"));
 
        /* update main buttons according to mode */
        priv->ignore_primary_buttons = TRUE;


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