[gnome-software/wip/ubuntu-zesty: 133/134] Use Ubuntu Software name in Ubuntu
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-zesty: 133/134] Use Ubuntu Software name in Ubuntu
- Date: Sat, 17 Dec 2016 05:17:01 +0000 (UTC)
commit bb7c64a2988f30fc416c76fdc1aa987ecb52f295
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 13210c9..ed3faec 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -385,8 +385,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 1de320a..9c1a526 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -269,8 +269,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]