summaryrefslogtreecommitdiffstats
path: root/perl-install/modules/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-03 18:53:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-03 18:53:35 +0000
commit17c86a5829a81d228c0106ee86f637548b945d5f (patch)
treecaa548987aee46616e8e414c0946a07a8d743048 /perl-install/modules/interactive.pm
parent5924cab0393c4133126cf8f63656729616085840 (diff)
downloaddrakx-backup-do-not-use-17c86a5829a81d228c0106ee86f637548b945d5f.tar
drakx-backup-do-not-use-17c86a5829a81d228c0106ee86f637548b945d5f.tar.gz
drakx-backup-do-not-use-17c86a5829a81d228c0106ee86f637548b945d5f.tar.bz2
drakx-backup-do-not-use-17c86a5829a81d228c0106ee86f637548b945d5f.tar.xz
drakx-backup-do-not-use-17c86a5829a81d228c0106ee86f637548b945d5f.zip
a somewhat nicer message when loading a module
Diffstat (limited to 'perl-install/modules/interactive.pm')
-rw-r--r--perl-install/modules/interactive.pm23
1 files changed, 17 insertions, 6 deletions
diff --git a/perl-install/modules/interactive.pm b/perl-install/modules/interactive.pm
index 0788bb83c..3c103266f 100644
--- a/perl-install/modules/interactive.pm
+++ b/perl-install/modules/interactive.pm
@@ -78,14 +78,25 @@ sub load_category__prompt_for_more {
}
}
+my %category2text = (
+ 'bus/usb' => N_("Installing driver for USB controller"),
+ 'bus/firewire' => N_("Installing driver for firewire controller %s"),
+ 'disk/ide|scsi|hardware_raid|firewire' => N_("Installing driver for hard drive controller %s"),
+ list_modules::ethernet_categories() => N_("Installing driver for ethernet controller %s"),
+);
+
sub wait_load_module {
my ($in, $category, $text, $module) = @_;
- $in->wait_message('',
- [
- #-PO: the first %s is the card type (scsi, network, sound,...)
- #-PO: the second is the vendor+model name
- N("Installing driver for %s card %s", $category, $text), if_($::expert, N("(module %s)", $module))
- ]);
+ my $msg = do {
+ if (my $t = $category2text{$category}) {
+ sprintf(translate($t), $text);
+ } else {
+ #-PO: the first %s is the card type (scsi, network, sound,...)
+ #-PO: the second is the vendor+model name
+ N("Installing driver for %s card %s", $category, $text);
+ }
+ };
+ $in->wait_message('', [ $msg, if_($::expert, N("(module %s)", $module)) ]);
}
sub load_module__ask_options {