[gnome-software/wip/jrocha/reference-category] Add the Reference top-level category



commit 947bff82ef4fea1918585b5dc7e9d33449cc2fbf
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..766349b 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-Reference",
+                                         NULL } },
+       { "featured",           NC_("Menu of Reference", "Featured"),
+                                       { "X-Reference::Featured",
+                                         NULL} },
+       { "art",                NC_("Menu of Art", "Art"),
+                                       { "X-Reference::Art",
+                                         NULL} },
+       { "biography",          NC_("Menu of Reference", "Biography"),
+                                       { "X-Reference::Biography",
+                                         NULL} },
+       { "comics",             NC_("Menu of Reference", "Fiction"),
+                                       { "X-Reference::Comics",
+                                         NULL} },
+       { "fiction",            NC_("Menu of Reference", "Fiction"),
+                                       { "X-Reference::Fiction",
+                                         NULL} },
+       { "health",             NC_("Menu of Reference", "Health"),
+                                       { "X-Reference::Health",
+                                         NULL} },
+       { "history",            NC_("Menu of Reference", "History"),
+                                       { "X-Reference::History",
+                                         NULL} },
+       { "lifestyle",          NC_("Menu of Reference", "Lifestyle"),
+                                       { "X-Reference::Lifestyle",
+                                         NULL} },
+       { "politics",           NC_("Menu of Reference", "Politics"),
+                                       { "X-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]