[gnome-software: 1/2] ui: Add translation contexts to the string ‘Updates’
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] ui: Add translation contexts to the string ‘Updates’
- Date: Mon, 23 May 2022 07:04:13 +0000 (UTC)
commit 6e087e2319b73424bcd55f15985163ca2a2e03e8
Author: Philip Withnall <pwithnall endlessos org>
Date: Sun May 22 15:46:47 2022 +0100
ui: Add translation contexts to the string ‘Updates’
Disambiguate it between referring to a collection of apps and packages
to be updated in general, and a collection of packages to be updated as
part of an OS upgrade.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Fixes: #1772
src/gs-os-update-page.c | 2 +-
src/gs-shell.ui | 2 +-
src/gs-updates-page.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-os-update-page.c b/src/gs-os-update-page.c
index 99bc62081..3b5b979c6 100644
--- a/src/gs-os-update-page.c
+++ b/src/gs-os-update-page.c
@@ -255,7 +255,7 @@ get_section_header (GsOsUpdatePage *page, GsOsUpdatePageSection section)
} else if (section == GS_OS_UPDATE_PAGE_SECTION_UPDATES) {
/* TRANSLATORS: This is the header for package updates during
* a system update */
- label = gtk_label_new (_("Updates"));
+ label = gtk_label_new (C_("Packages to be updated during a system upgrade", "Updates"));
} else if (section == GS_OS_UPDATE_PAGE_SECTION_DOWNGRADES) {
/* TRANSLATORS: This is the header for package downgrades during
* a system update */
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index 6f37dcdd8..cf5a941f8 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -325,7 +325,7 @@
<child>
<object class="AdwViewStackPage">
<property name="name">updates</property>
- <property name="title" translatable="yes" comments="Translators:
A label for a button to show only updates which are available to install.">Updates</property>
+ <property name="title" translatable="yes" comments="Translators:
A label for a button to show only updates which are available to install." context="Header bar button for
list of apps to be updated">Updates</property>
<property
name="icon-name">emblem-synchronizing-symbolic</property>
<property name="badge-number" bind-source="updates_page"
bind-property="counter" bind-flags="sync-create"/>
<property name="child">
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index ca5b0a1da..22ecbf7b2 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -1295,7 +1295,7 @@ gs_updates_page_get_property (GObject *object,
g_value_set_object (value, gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW
(self->scrolledwindow_updates)));
break;
case PROP_TITLE:
- g_value_set_string (value, _("Updates"));
+ g_value_set_string (value, C_("Apps to be updated", "Updates"));
break;
case PROP_COUNTER:
g_value_set_uint (value, self->updates_counter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]