1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
* vi:set noexpandtab tabstop=8 shiftwidth=8:
*
* Copyright (C) 2015-2016 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <glib/gi18n.h>
#include "gs-desktop-data.h"
static const GsDesktopMap map_create[] = {
{ "all", NC_("Menu of Graphics & Photography", "All"),
{ "Graphics",
"AudioVideo",
NULL } },
{ "featured", NC_("Menu of Graphics & Photography", "Featured"),
{ "Graphics::Featured",
"AudioVideo::Featured",
NULL} },
{ "3d", NC_("Menu of Graphics & Photography", "3D Graphics"),
{ "Graphics::3DGraphics",
NULL} },
{ "photography", NC_("Menu of Graphics & Photography", "Photography"),
{ "Graphics::Photography",
NULL} },
{ "scanning", NC_("Menu of Graphics & Photography", "Scanning"),
{ "Graphics::Scanning",
NULL} },
{ "vector", NC_("Menu of Graphics & Photography", "Vector Graphics"),
{ "Graphics::VectorGraphics",
NULL} },
{ "viewers", NC_("Menu of Graphics & Photography", "Viewers"),
{ "Graphics::Viewer",
NULL} },
{ "creation-editing", NC_("Menu of Audio & Video", "Audio Creation & Editing"),
{ "AudioVideo::AudioVideoEditing",
"AudioVideo::Midi",
"AudioVideo::DiscBurning",
"AudioVideo::Sequencer",
NULL} },
{ "music-players", NC_("Menu of Audio & Video", "Music Players"),
{ "AudioVideo::Music",
"AudioVideo::Player",
NULL} },
{ NULL }
};
static const GsDesktopMap map_work[] = {
{ "all", NC_("Menu of Productivity", "All"),
{ "Office",
"Utility",
"Network::WebBrowser",
NULL } },
{ "featured", NC_("Menu of Productivity", "Featured"),
{ "Office::Featured",
"Utility::Featured",
NULL} },
{ "calendar", NC_("Menu of Productivity", "Calendar"),
{ "Office::Calendar",
"Office::ProjectManagement",
NULL} },
{ "database", NC_("Menu of Productivity", "Database"),
{ "Office::Database",
NULL} },
{ "finance", NC_("Menu of Productivity", "Finance"),
{ "Office::Finance",
"Office::Spreadsheet",
NULL} },
{ "word-processor", NC_("Menu of Productivity", "Word Processor"),
{ "Office::WordProcessor",
"Office::Dictionary",
NULL} },
{ "text-editors", NC_("Menu of Utilities", "Text Editors"),
{ "Utility::TextEditor",
NULL} },
{ "web-browsers", NC_("Menu of Communication & News", "Web Browsers"),
{ "Network::WebBrowser",
NULL} },
{ NULL }
};
static const GsDesktopMap map_play[] = {
{ "all", NC_("Menu of Audio & Video", "All"),
{ "Game",
NULL } },
{ "featured", NC_("Menu of Audio & Video", "Featured"),
{ "Game::Featured",
NULL} },
{ "action", NC_("Menu of Games", "Action"),
{ "Game::ActionGame",
NULL} },
{ "adventure", NC_("Menu of Games", "Adventure"),
{ "Game::AdventureGame",
NULL} },
{ "arcade", NC_("Menu of Games", "Arcade"),
{ "Game::ArcadeGame",
NULL} },
{ "blocks", NC_("Menu of Games", "Blocks"),
{ "Game::BlocksGame",
NULL} },
{ "board", NC_("Menu of Games", "Board"),
{ "Game::BoardGame",
NULL} },
{ "card", NC_("Menu of Games", "Card"),
{ "Game::CardGame",
NULL} },
{ "emulator", NC_("Menu of Games", "Emulators"),
{ "Game::Emulator",
NULL} },
{ "kids", NC_("Menu of Games", "Kids"),
{ "Game::KidsGame",
NULL} },
{ "logic", NC_("Menu of Games", "Logic"),
{ "Game::LogicGame",
"Game::Simulation",
NULL} },
{ "role-playing", NC_("Menu of Games", "Role Playing"),
{ "Game::RolePlaying",
NULL} },
{ "sports", NC_("Menu of Games", "Sports"),
{ "Game::SportsGame",
NULL} },
{ "strategy", NC_("Menu of Games", "Strategy"),
{ "Game::StrategyGame",
NULL} },
{ NULL }
};
static const GsDesktopMap map_socialize[] = {
{ "all", NC_("Menu of Communication & News", "All"),
{ "Network",
NULL } },
{ "featured", NC_("Menu of Communication & News", "Featured"),
{ "Network::Featured",
NULL} },
{ "chat", NC_("Menu of Communication & News", "Chat"),
{ "Network::Chat",
"Network::IRCClient",
"Network::Telephony",
"Network::VideoConference",
"Network::Email",
NULL} },
{ NULL }
};
static const GsDesktopMap map_learn[] = {
{ "all", NC_("Menu of Education & Science", "All"),
{ "Education",
"Science",
"Reference",
"Network::Feed",
"Network::News",
NULL } },
{ "featured", NC_("Menu of Education & Science", "Featured"),
{ "Education::Featured",
"Science::Featured",
"Reference::Featured",
NULL} },
{ "artificial-intelligence", NC_("Menu of Education & Science", "Artificial Intelligence"),
{ "Science::ArtificialIntelligence",
NULL} },
{ "astronomy", NC_("Menu of Education & Science", "Astronomy"),
{ "Education::Astronomy",
"Science::Astronomy",
NULL} },
{ "chemistry", NC_("Menu of Education & Science", "Chemistry"),
{ "Education::Chemistry",
"Science::Chemistry",
NULL} },
{ "languages", NC_("Menu of Education & Science", "Languages"),
{ "Education::Languages",
"Education::Literature",
NULL} },
{ "math", NC_("Menu of Education & Science", "Math"),
{ "Education::Math",
"Education::NumericalAnalysis",
"Science::Math",
"Science::Physics",
"Science::NumericalAnalysis",
NULL} },
{ "news", NC_("Menu of Communication & News", "News"),
{ "Network::Feed",
"Network::News",
NULL} },
{ "robotics", NC_("Menu of Education & Science", "Robotics"),
{ "Science::Robotics",
NULL} },
{ "art", NC_("Menu of Art", "Art"),
{ "Reference::Art",
NULL} },
{ "biography", NC_("Menu of Reference", "Biography"),
{ "Reference::Biography",
NULL} },
{ "comics", NC_("Menu of Reference", "Comics"),
{ "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 }
};
static const GsDesktopMap map_develop[] = {
{ "all", NC_("Menu of Developer Tools", "All"),
{ "Development",
NULL } },
{ "featured", NC_("Menu of Developer Tools", "Featured"),
{ "Development::Featured",
NULL} },
{ "debuggers", NC_("Menu of Developer Tools", "Debuggers"),
{ "Development::Debugger",
NULL} },
{ "ide", NC_("Menu of Developer Tools", "IDEs"),
{ "Development::IDE",
"Development::GUIDesigner",
NULL} },
{ NULL }
};
static const GsDesktopMap map_addon_codecs[] = {
{ "all", NC_("Menu of Add-ons", "Codecs"),
{ "Addon::Codec",
NULL } },
{ NULL }
};
static const GsDesktopMap map_addon_drivers[] = {
{ "all", NC_("Menu of Add-ons", "Hardware Drivers"),
{ "Addon::Driver",
NULL } },
{ NULL }
};
static const GsDesktopMap map_addon_fonts[] = {
{ "all", NC_("Menu of Add-ons", "Fonts"),
{ "Addon::Font",
NULL } },
{ NULL }
};
static const GsDesktopMap map_addon_input_sources[] = {
{ "all", NC_("Menu of Add-ons", "Input Sources"),
{ "Addon::InputSource",
NULL } },
{ NULL }
};
static const GsDesktopMap map_addon_language_packs[] = {
{ "all", NC_("Menu of Add-ons", "Language Packs"),
{ "Addon::LanguagePack",
NULL } },
{ NULL }
};
static const GsDesktopMap map_addon_localization[] = {
{ "all", NC_("Menu of Add-ons", "Localization"),
{ "Addon::Localization",
NULL } },
{ NULL }
};
/* main categories */
/* Please keep category name and subcategory context synchronized!!! */
static const GsDesktopData msdata[] = {
/* Translators: this is a menu category */
{ "create", map_create, N_("Create"), "org.gnome.Software.Create", 100 },
/* Translators: this is a menu category */
{ "work", map_work, N_("Work"), "org.gnome.Software.Work", 90 },
/* Translators: this is a menu category */
{ "play", map_play, N_("Play"), "org.gnome.Software.Play", 80 },
/* Translators: this is a menu category */
{ "socialize", map_socialize, N_("Socialize"), "org.gnome.Software.Socialize", 70 },
/* Translators: this is a menu category */
{ "learn", map_learn, N_("Learn"), "org.gnome.Software.Learn", 60 },
/* Translators: this is a menu category */
{ "develop", map_develop, N_("Develop"), "org.gnome.Software.Develop", 50 },
/* Translators: this is a menu category */
{ "codecs", map_addon_codecs, N_("Codecs"), NULL, 10 },
/* Translators: this is a menu category */
{ "drivers", map_addon_drivers, N_("Hardware Drivers"), NULL, 10 },
/* Translators: this is a menu category */
{ "fonts", map_addon_fonts, N_("Fonts"), NULL, 10 },
/* Translators: this is a menu category */
{ "input-sources", map_addon_input_sources, N_("Input Sources"), NULL, 10 },
/* Translators: this is a menu category */
{ "language-packs", map_addon_language_packs, N_("Language Packs"), NULL, 10 },
/* Translators: this is a menu category */
{ "localization", map_addon_localization, N_("Localization"), NULL, 10 },
{ NULL }
};
/* the -1 is for the NULL terminator */
G_STATIC_ASSERT (G_N_ELEMENTS (msdata) - 1 == GS_DESKTOP_DATA_N_ENTRIES);
const GsDesktopData *
gs_desktop_get_data (void)
{
return msdata;
}
|