aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:16:20 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:16:20 +0000
commit2722640efbd4333193fa6f42af9fdf2abcc73bce (patch)
tree823a4af530756fd9d0a37993786aae0c11fb937e
parentc150390fc4e454042007c34e21a199149412114d (diff)
downloadrpmdrake-2722640efbd4333193fa6f42af9fdf2abcc73bce.tar
rpmdrake-2722640efbd4333193fa6f42af9fdf2abcc73bce.tar.gz
rpmdrake-2722640efbd4333193fa6f42af9fdf2abcc73bce.tar.bz2
rpmdrake-2722640efbd4333193fa6f42af9fdf2abcc73bce.tar.xz
rpmdrake-2722640efbd4333193fa6f42af9fdf2abcc73bce.zip
define icons for each package group
-rwxr-xr-xrpmdrake203
1 files changed, 108 insertions, 95 deletions
diff --git a/rpmdrake b/rpmdrake
index 40eb1481..d379bfe4 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -193,102 +193,115 @@ but you may still browse the existing database."), yesno => 1, text => { no => N
my $dont_show_selections = $> ? 1 : 0;
#- /usr/share/rpmlint/MenuCheck.py (duplicates are normal, so that we are not too far away from .py)
-if (0) {
- my @valid_groups = (
- N_("Accessibility"),
- N_("Archiving"), N_("Backup"),
- N_("Archiving"), N_("Cd burning"),
- N_("Archiving"), N_("Compression"),
- N_("Archiving"), N_("Other"),
- N_("Books"), N_("Computer books"),
- N_("Books"), N_("Faqs"),
- N_("Books"), N_("Howtos"),
- N_("Books"), N_("Literature"),
- N_("Books"), N_("Other"),
- N_("Cluster"), N_("Message Passing"),
- N_("Cluster"), N_("Queueing Services"),
- N_("Communications"),
- N_("Databases"),
- N_("Development"), N_("C"),
- N_("Development"), N_("C++"),
- N_("Development"), N_("Databases"),
- N_("Development"), N_("GNOME and GTK+"),
- N_("Development"), N_("Java"),
- N_("Development"), N_("KDE and Qt"),
- N_("Development"), N_("Kernel"),
- N_("Development"), N_("Other"),
- N_("Development"), N_("Perl"),
- N_("Development"), N_("PHP"),
- N_("Development"), N_("Python"),
- N_("Editors"),
- N_("Education"),
- N_("Emulators"),
- N_("File tools"),
- N_("Games"), N_("Adventure"),
- N_("Games"), N_("Arcade"),
- N_("Games"), N_("Boards"),
- N_("Games"), N_("Cards"),
- N_("Games"), N_("Other"),
- N_("Games"), N_("Puzzles"),
- N_("Games"), N_("Sports"),
- N_("Games"), N_("Strategy"),
- N_("Graphical desktop"), N_("Enlightenment"),
- N_("Graphical desktop"), N_("FVWM based"),
- N_("Graphical desktop"), N_("GNOME"),
- N_("Graphical desktop"), N_("Icewm"),
- N_("Graphical desktop"), N_("KDE"),
- N_("Graphical desktop"), N_("Other"),
- N_("Graphical desktop"), N_("Sawfish"),
- N_("Graphical desktop"), N_("WindowMaker"),
- N_("Graphics"),
- N_("Monitoring"),
- N_("Multimedia"),
- N_("Networking"), N_("Chat"),
- N_("Networking"), N_("File transfer"),
- N_("Networking"), N_("IRC"),
- N_("Networking"), N_("Instant messaging"),
- N_("Networking"), N_("Mail"),
- N_("Networking"), N_("News"),
- N_("Networking"), N_("Other"),
- N_("Networking"), N_("Remote access"),
- N_("Networking"), N_("WWW"),
- N_("Office"),
- N_("Public Keys"),
- N_("Publishing"),
- N_("Sciences"), N_("Astronomy"),
- N_("Sciences"), N_("Biology"),
- N_("Sciences"), N_("Chemistry"),
- N_("Sciences"), N_("Computer science"),
- N_("Sciences"), N_("Geosciences"),
- N_("Sciences"), N_("Mathematics"),
- N_("Sciences"), N_("Other"),
- N_("Sciences"), N_("Physics"),
- N_("Shells"),
- N_("Sound"),
- N_("System"), N_("Base"),
- N_("System"), N_("Configuration"), N_("Boot and Init"),
- N_("System"), N_("Configuration"), N_("Hardware"),
- N_("System"), N_("Configuration"), N_("Networking"),
- N_("System"), N_("Configuration"), N_("Other"),
- N_("System"), N_("Configuration"), N_("Packaging"),
- N_("System"), N_("Configuration"), N_("Printing"),
- N_("System"), N_("Deploiement"),
- N_("System"), N_("Deployment"),
- N_("System"), N_("Fonts"), N_("Console"),
- N_("System"), N_("Fonts"), N_("True type"),
- N_("System"), N_("Fonts"), N_("Type1"),
- N_("System"), N_("Fonts"), N_("X11 bitmap"),
- N_("System"), N_("Internationalization"),
- N_("System"), N_("Kernel and hardware"),
- N_("System"), N_("Libraries"),
- N_("System"), N_("Servers"),
- N_("System"), N_("XFree86"),
- N_("Terminals"),
- N_("Text tools"),
- N_("Toys"),
- N_("Video"),
+my %group_icons = (
+ N("Accessibility") => 'accessibility_section',
+ N("Archiving") => 'archiving_section',
+ join('|', N("Archiving"), N("Backup")) => 'backup_section',
+ join('|', N("Archiving"), N("Cd burning")) => 'cd_burning_section',
+ join('|', N("Archiving"), N("Compression")) => 'compression_section',
+ join('|', N("Archiving"), N("Other")) => 'other_archiving',
+ N("Books") => 'documentation_section',
+ join('|', N("Books"), N("Computer books")) => 'documentation_section',
+ join('|', N("Books"), N("Faqs")) => 'documentation_section',
+ join('|', N("Books"), N("Howtos")) => 'documentation_section',
+ join('|', N("Books"), N("Literature")) => 'documentation_section',
+ join('|', N("Books"), N("Other")) => 'education_other_section',
+ N("Cluster") => 'parallel_computing_section',
+ join('|', N("Cluster"), N("Message Passing")) => '',
+ join('|', N("Cluster"), N("Queueing Services")) => '',
+ N("Communications") => 'communications_section',
+ N("Databases") => 'databases_section',
+ N("Development") => 'development_section',
+ join('|', N("Development"), N("C")) => '',
+ join('|', N("Development"), N("C++")) => '',
+ join('|', N("Development"), N("Databases")) => 'databases_section',
+ join('|', N("Development"), N("GNOME and GTK+")) => 'gnome_section',
+ join('|', N("Development"), N("Java")) => '',
+ join('|', N("Development"), N("KDE and Qt")) => 'kde_section',
+ join('|', N("Development"), N("Kernel")) => 'hardware_configuration_section',
+ join('|', N("Development"), N("Other")) => 'development_tools_section',
+ join('|', N("Development"), N("Perl")) => '',
+ join('|', N("Development"), N("PHP")) => '',
+ join('|', N("Development"), N("Python")) => '',
+ N("Editors") => 'emulators_section',
+ N("Education") => 'education_section',
+ N("Emulators") => 'emulators_section',
+ N("File tools") => 'file_tools_section',
+ N("Games") => 'amusement_section',
+ join('|', N("Games"), N("Adventure")) => 'adventure_section',
+ join('|', N("Games"), N("Arcade")) => 'arcade_section',
+ join('|', N("Games"), N("Boards")) => 'boards_section',
+ join('|', N("Games"), N("Cards")) => 'cards_section',
+ join('|', N("Games"), N("Other")) => 'other_amusement',
+ join('|', N("Games"), N("Puzzles")) => 'puzzle_section',
+ join('|', N("Games"), N("Sports")) => 'sport_section',
+ join('|', N("Games"), N("Strategy")) => 'strategy_section',
+ N("Graphical desktop") => 'office_section',
+ join('|', N("Graphical desktop"), N("Enlightenment")) => '',
+ join('|', N("Graphical desktop"), N("FVWM based")) => '',
+ join('|', N("Graphical desktop"), N("GNOME")) => 'gnome_section',
+ join('|', N("Graphical desktop"), N("Icewm")) => '',
+ join('|', N("Graphical desktop"), N("KDE")) => 'kde_section',
+ join('|', N("Graphical desktop"), N("Other")) => 'more_applications_other_section',
+ join('|', N("Graphical desktop"), N("Sawfish")) => '',
+ join('|', N("Graphical desktop"), N("WindowMaker")) => '',
+ join('|', N("Graphics")) => 'graphics_section',
+ N("Monitoring") => 'monitoring_section',
+ N("Multimedia") => 'multimedia_section',
+ join('|', N("Multimedia"), N("Video")) => 'video_section',
+ N("Networking") => 'networking_section',
+ join('|', N("Networking"), N("Chat")) => 'chat_section',
+ join('|', N("Networking"), N("File transfer")) => 'file_transfer_section',
+ join('|', N("Networking"), N("IRC")) => 'irc_section',
+ join('|', N("Networking"), N("Instant Messaging")) => 'instant_messaging_section',
+ join('|', N("Networking"), N("Instant messaging")) => 'instant_messaging_section',
+ join('|', N("Networking"), N("Mail")) => 'mail_section',
+ join('|', N("Networking"), N("News")) => 'news_section',
+ join('|', N("Networking"), N("Other")) => 'other_networking',
+ join('|', N("Networking"), N("Remote access")) => 'remote_access_section',
+ join('|', N("Networking"), N("WWW")) => 'networking_www_section',
+ N("Office") => 'office_section',
+ N("Public Keys") => 'packaging_section',
+ N("Publishing") => 'publishing_section',
+ N("Sciences") => 'sciences_section',
+ join('|', N("Sciences"), N("Astronomy")) => 'astronomy_section',
+ join('|', N("Sciences"), N("Biology")) => 'biology_section',
+ join('|', N("Sciences"), N("Chemistry")) => 'chemistry_section',
+ join('|', N("Sciences"), N("Computer science")) => 'computer_science_section',
+ join('|', N("Sciences"), N("Geosciences")) => 'geosciences_section',
+ join('|', N("Sciences"), N("Mathematics")) => 'mathematics_section',
+ join('|', N("Sciences"), N("Other")) => 'other_sciences',
+ join('|', N("Sciences"), N("Physics")) => 'physics_section',
+ N("Shells") => 'shells_section',
+ N("Sound") => 'sound_section',
+ N("System") => 'system_section',
+ join('|', N("System"), N("Base")) => 'system_section',
+ join('|', N("System"), N("Configuration")) => 'configuration_section',
+ join('|', N("System"), N("Configuration"), N("Boot and Init")) => 'boot_init_section',
+ join('|', N("System"), N("Configuration"), N("Hardware")) => 'hardware_configuration_section',
+ join('|', N("System"), N("Configuration"), N("Networking")) => 'networking_configuration_section',
+ join('|', N("System"), N("Configuration"), N("Other")) => 'system_other_section',
+ join('|', N("System"), N("Configuration"), N("Packaging")) => 'packaging_section',
+ join('|', N("System"), N("Configuration"), N("Printing")) => 'printing_section',
+ join('|', N("System"), N("Deploiement")) => '',
+ join('|', N("System"), N("Deployment")) => '',
+ join('|', N("System"), N("Fonts")) => 'chinese_section',
+ join('|', N("System"), N("Fonts"), N("Console")) => 'interpreters_section',
+ join('|', N("System"), N("Fonts"), N("True type")) => '',
+ join('|', N("System"), N("Fonts"), N("Type1")) => '',
+ join('|', N("System"), N("Fonts"), N("X11 bitmap")) => '',
+ join('|', N("System"), N("Internationalization")) => 'chinese_section',
+ join('|', N("System"), N("Kernel and hardware")) => 'hardware_configuration_section',
+ join('|', N("System"), N("Libraries")) => '',
+ join('|', N("System"), N("Servers")) => '',
+ join('|', N("System"), N("Others")) => 'system_other_section',
+ join('|', N("System"), N("XFree86")) => '',
+ N("Terminals") => 'terminals_section',
+ N("Text tools") => 'text_tools_section',
+ N("Toys") => 'toys_section',
+ N("Video") => 'video_section',
);
-}
+
sub ctreefy {
join('|', map { translate($_) } split m|/|, $_[0]);