diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-10-16 15:06:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-10-16 15:06:44 +0000 |
commit | 419e04582ba827eda8d7435f0c9e510a2ffabde8 (patch) | |
tree | 90b3127987cc42b1833f4ab6f44249b322f021d6 /perl-install/harddrake | |
parent | 95bc5d3fcf3469226122364caf96029cdeed16bc (diff) | |
download | drakx-419e04582ba827eda8d7435f0c9e510a2ffabde8.tar drakx-419e04582ba827eda8d7435f0c9e510a2ffabde8.tar.gz drakx-419e04582ba827eda8d7435f0c9e510a2ffabde8.tar.bz2 drakx-419e04582ba827eda8d7435f0c9e510a2ffabde8.tar.xz drakx-419e04582ba827eda8d7435f0c9e510a2ffabde8.zip |
don't print empty help for fields without any help
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/ui.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/harddrake/ui.pm b/perl-install/harddrake/ui.pm index 39f409d91..7268542bb 100644 --- a/perl-install/harddrake/ui.pm +++ b/perl-install/harddrake/ui.pm @@ -21,16 +21,16 @@ my %fields = [ _("Bus identification"), _("- PCI and USB devices: this list the vendor, device, subvendor and subdevice PCI/USB ids")], "bus_location" => + [ _("Location on the bus"), + _("- pci devices: this gives the PCI slot, device and function of this card +- eide devices: the device is either a slave or a master device +- scsi devices: the scsi bus and the scsi device ids")], "description" => [ _("Description"), _("this field describe the device")], "device" => [ _("Old device file"), _("old static device name used in dev package")], "devfs_device" => [ _("New devfs device"), _("new dinamic device name generated by incore kernel devfs")], "driver" => [ _("Module"), _("the module of the GNU/Linux kernel that handle that device")], - [ _("Location on the bus"), - _("- pci devices: this gives the PCI slot, device and function of this card -- eide devices: the device is either a slave or a master device -- scsi devices: the scsi bus and the scsi device ids")], "media_type" => [ _("Media class"), _("class of hardware device")], "Model" => [_("Model"), _("hard disk model")], "nbuttons" => [ _("Number of buttons"), "the number of buttons the mouse have"], @@ -76,7 +76,7 @@ my @menu_items = ( { path => _("/_File"), type => '<Branch>' }, { path => _("/_Help")._("/_Help..."), callback => sub { $in->ask_warn(_("Harddrake help"), _("Description of the fields:\n\n") - . join("\n\n", map { "$fields{$_}[0]: $fields{$_}[1]"} keys %fields)); + . join("\n\n", map { if_($fields{$_}[0], "$fields{$_}[0]: $fields{$_}[1]")} keys %fields)); } }, { path => _("/_Help")._("/_Report Bug"), |