[gnome-software] Add the Reference top-level category



commit 539ebdb3f84e3f45c15c6cfb2cb4f42f86dfa83c
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 |   41 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-desktop-common.c b/src/plugins/gs-desktop-common.c
index cc95857..c388a10 100644
--- a/src/plugins/gs-desktop-common.c
+++ b/src/plugins/gs-desktop-common.c
@@ -279,6 +279,44 @@ static const GsDesktopMap map_utilities[] = {
        { NULL }
 };
 
+/* Reference */
+static const GsDesktopMap map_reference[] = {
+       { "all",                NC_("Menu of Reference", "All"),
+                                       { "Reference",
+                                         NULL } },
+       { "featured",           NC_("Menu of Reference", "Featured"),
+                                       { "Reference::Featured",
+                                         NULL} },
+       { "art",                NC_("Menu of Art", "Art"),
+                                       { "Reference::Art",
+                                         NULL} },
+       { "biography",          NC_("Menu of Reference", "Biography"),
+                                       { "Reference::Biography",
+                                         NULL} },
+       { "comics",             NC_("Menu of Reference", "Fiction"),
+                                       { "Reference::Comics",
+                                         NULL} },
+       { "fiction",            NC_("Menu of Reference", "Fiction"),
+                                       { "Reference::Fiction",
+                                         NULL} },
+       { "health",             NC_("Menu of Reference", "Health"),
+                                       { "Reference::Health",
+                                         NULL} },
+       { "history",            NC_("Menu of Reference", "History"),
+                                       { "Reference::History",
+                                         NULL} },
+       { "lifestyle",          NC_("Menu of Reference", "Lifestyle"),
+                                       { "Reference::Lifestyle",
+                                         NULL} },
+       { "politics",           NC_("Menu of Reference", "Politics"),
+                                       { "Reference::Politics",
+                                         NULL} },
+       { "sports",             NC_("Menu of Reference", "Sports"),
+                                       { "Reference::Sports",
+                                         NULL} },
+       { NULL }
+};
+
 /* main categories */
 static const GsDesktopData msdata[] = {
        /* TRANSLATORS: this is the menu spec main category for Audio & Video */
@@ -308,6 +346,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]