[gnome-software] use context to translate subcategory titles
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] use context to translate subcategory titles
- Date: Mon, 7 Apr 2014 16:36:17 +0000 (UTC)
commit 9dba158e8b285f04b859179c40b05a56cc33cb7c
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Mar 22 17:35:52 2014 +0100
use context to translate subcategory titles
https://bugzilla.gnome.org/show_bug.cgi?id=726890
src/plugins/gs-plugin-menu-spec-categories.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-menu-spec-categories.c b/src/plugins/gs-plugin-menu-spec-categories.c
index 780059e..8cfce35 100644
--- a/src/plugins/gs-plugin-menu-spec-categories.c
+++ b/src/plugins/gs-plugin-menu-spec-categories.c
@@ -48,6 +48,7 @@ gs_plugin_add_categories (GsPlugin *plugin,
GsCategory *sub;
const MenuSpecData *msdata;
gchar *tmp;
+ gchar msgctxt[100];
guint i;
msdata = menu_spec_get_data ();
@@ -58,10 +59,11 @@ gs_plugin_add_categories (GsPlugin *plugin,
msdata[i].path,
gettext(msdata[i].text));
*list = g_list_prepend (*list, category);
+ g_snprintf(msgctxt, 100, "Menu subcategory of %s", msdata[i].text);
} else {
sub = gs_category_new (category,
tmp + 2,
- gettext(msdata[i].text));
+ g_dpgettext2(GETTEXT_PACKAGE, msgctxt, msdata[i].text));
gs_category_add_subcategory (category, sub);
g_object_unref (sub);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]