From 419e04582ba827eda8d7435f0c9e510a2ffabde8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 16 Oct 2002 15:06:44 +0000 Subject: don't print empty help for fields without any help --- perl-install/harddrake/ui.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'perl-install/harddrake') 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 => '' }, { 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"), -- cgit v1.2.1