summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:27:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:27:44 +0000
commitc683adddb259406e8735959a98d643b3fbb65b3c (patch)
treeaa140e86c894889df2b094e468d4000c8eeab92a
parent25a17711dcea8dc77fc04d075cf426c4f1c2e0e6 (diff)
downloadcontrol-center-c683adddb259406e8735959a98d643b3fbb65b3c.tar
control-center-c683adddb259406e8735959a98d643b3fbb65b3c.tar.gz
control-center-c683adddb259406e8735959a98d643b3fbb65b3c.tar.bz2
control-center-c683adddb259406e8735959a98d643b3fbb65b3c.tar.xz
control-center-c683adddb259406e8735959a98d643b3fbb65b3c.zip
only use one translated string per drive type instead of two (we used to use
one as an internal tag and the other one was displayed in the GUI
-rwxr-xr-xcontrol-center14
1 files changed, 7 insertions, 7 deletions
diff --git a/control-center b/control-center
index 74b48a3a..19ac16b5 100755
--- a/control-center
+++ b/control-center
@@ -620,9 +620,9 @@ my @tree =
[
"Hard Drives",
(map {
- my ($type, $name, $scan, $text) = @$_;
+ my ($type, $scan, $text) = @$_;
map_index {
- my $full_name = $name . ($::i ? $::i + 1 : '');
+ my $full_name = $text . ($::i ? $::i + 1 : '');
$programs{$full_name} =
{
binary => "$sbindir/diskdrake --removable=$_->{device}",
@@ -637,11 +637,11 @@ my @tree =
foreach (detect_devices::cdroms()) {
my $type = detect_devices::isBurner($_) ? 'burner' : detect_devices::isDvdDrive($_) ? 'DVD' : 'cdrom';
push @{$cdroms_by_type{$type}}, $_;
- } ([ 'cdrom', N("CD-ROM"), sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ],
- [ 'dvd', N("DVD"), sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ],
- [ 'cdwriter', N("CD Burner"), sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD") ],
- [ 'floppy', N("Floppy"), \&detect_devices::floppies, N("Floppy drive") ],
- [ 'zip', N("Zip"), \&detect_devices::zips, N("ZIP drive") ],
+ } ([ 'cdrom', sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ],
+ [ 'dvd', sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ],
+ [ 'cdwriter', sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD burner") ],
+ [ 'floppy', \&detect_devices::floppies, N("Floppy drive") ],
+ [ 'zip', \&detect_devices::zips, N("ZIP drive") ],
),
}),
"NFS mount points",,