[gnome-software/wip/jrocha/reference-category] Add the Reference top-level category
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/jrocha/reference-category] Add the Reference top-level category
- Date: Tue, 12 Jul 2016 11:51:24 +0000 (UTC)
commit f2a5d1a588d4a99d0693104e5e1e2a48a7f4ae4b
Author: Joaquim Rocha <jrocha endlessm com>
Date: Tue Jul 12 12:47:33 2016 +0100
Add the Reference top-level category
This category is an extension to the freedesktop.org ones in order to
properly categorize applications that offer information but do not fit
in any of the official categories.
src/plugins/gs-desktop-common.c | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-desktop-common.c b/src/plugins/gs-desktop-common.c
index cc95857..f66d0fb 100644
--- a/src/plugins/gs-desktop-common.c
+++ b/src/plugins/gs-desktop-common.c
@@ -279,6 +279,41 @@ static const GsDesktopMap map_utilities[] = {
{ NULL }
};
+/* Reference */
+static const GsDesktopMap map_reference[] = {
+ { "all", NC_("Menu of Reference", "All"),
+ { "X-GnomeSoftware-Reference",
+ NULL } },
+ { "featured", NC_("Menu of Reference", "Featured"),
+ { "X-GnomeSoftware-Reference::Featured",
+ NULL} },
+ { "art", NC_("Menu of Art", "Art"),
+ { "X-GnomeSoftware-Reference::Art",
+ NULL} },
+ { "biography", NC_("Menu of Reference", "Biography"),
+ { "X-GnomeSoftware-Reference::Biography",
+ NULL} },
+ { "comics", NC_("Menu of Reference", "Fiction"),
+ { "X-GnomeSoftware-Reference::Comics",
+ NULL} },
+ { "fiction", NC_("Menu of Reference", "Fiction"),
+ { "X-GnomeSoftware-Reference::Fiction",
+ NULL} },
+ { "health", NC_("Menu of Reference", "Health"),
+ { "X-GnomeSoftware-Reference::Health",
+ NULL} },
+ { "history", NC_("Menu of Reference", "History"),
+ { "X-GnomeSoftware-Reference::History",
+ NULL} },
+ { "lifestyle", NC_("Menu of Reference", "Lifestyle"),
+ { "X-GnomeSoftware-Reference::Lifestyle",
+ NULL} },
+ { "politics", NC_("Menu of Reference", "Politics"),
+ { "X-GnomeSoftware-Reference::Politics",
+ NULL} },
+ { NULL }
+};
+
/* main categories */
static const GsDesktopData msdata[] = {
/* TRANSLATORS: this is the menu spec main category for Audio & Video */
@@ -308,6 +343,9 @@ static const GsDesktopData msdata[] = {
/* TRANSLATORS: this is the menu spec main category for Communication */
{ "communication", map_communication, N_("Communication & News"),
"user-available-symbolic", "#729fcf", TRUE },
+ /* TRANSLATORS: this is the menu spec main category for Reference */
+ { "reference", map_reference, N_("Reference"),
+ "view-dual-symbolic", "#ac5500" },
/* TRANSLATORS: this is the menu spec main category for Utilities */
{ "utilities", map_utilities, N_("Utilities"),
"applications-utilities-symbolic", "#2944cc" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]