summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-04-01 13:17:36 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-04-01 13:17:36 +0000
commit390d0a1d332cd190d217047619dd970191048340 (patch)
tree2b7ac2e4c1f802bf086eed48e30d5e97b60fd123
parent33431ad9a921d8f2fd04d66a4a36175a1816ffb9 (diff)
downloaddrakx-backup-do-not-use-390d0a1d332cd190d217047619dd970191048340.tar
drakx-backup-do-not-use-390d0a1d332cd190d217047619dd970191048340.tar.gz
drakx-backup-do-not-use-390d0a1d332cd190d217047619dd970191048340.tar.bz2
drakx-backup-do-not-use-390d0a1d332cd190d217047619dd970191048340.tar.xz
drakx-backup-do-not-use-390d0a1d332cd190d217047619dd970191048340.zip
simplify
-rw-r--r--perl-install/standalone/drakhelp2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp
index 4b041c876..592ed097e 100644
--- a/perl-install/standalone/drakhelp
+++ b/perl-install/standalone/drakhelp
@@ -16,7 +16,7 @@ die "Usage: drakhelp <help_path>" if @ARGV != 1;
my $in = interactive->vnew;
my $locale = lang::read('', $>);
-if (!member($locale->{lang}, qw(de en es fr it ru))) { $locale->{lang} = 'en' };
+$locale->{lang} = 'en' unless member($locale->{lang}, qw(de en es fr it ru));
my $path2help = "/usr/share/doc/mandrake/" . $locale->{lang} . "/";
my $path = $ARGV[0] =~ /^http|^www/ ? $ARGV[0] : $path2help . $ARGV[0];