[gnome-software/wip/ubuntu-3-20: 27/30] Use 'Ubuntu Software' title in Ubuntu



commit 4bc9d49ca7466ab8dcea91c41c03032611666f36
Author: Sebastien Bacher <seb128 ubuntu com>
Date:   Sun Jun 18 13:18:01 2017 +1200

    Use 'Ubuntu Software' title 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 c54d108..05e2f07 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 b268f12..c246424 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -245,8 +245,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"));
 
        /* show the back button if needed */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_back"));


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