}
my $h;
-unless ($lang ne 'en') {
+if ($lang ne 'en') {
$h = new IO::File;
unless ($h->open("$main::localcmd/Commands_$lang.hlp")) {
unless($h->open("$main::cmd/Commands_$lang.hlp")) {
foreach $in (<$defh>) {
next if $in =~ /^\#/;
chomp $in;
+ $in =~ s/\r$//;
if ($in =~ /^===/) {
$cmd{$cmd} = "$cmd $desc" if $include;
$include = 0;
$include = 1;
next;
}
- $include =~ 1 if $cmd =~ /$line/i;
+ $include = 1 if $cmd =~ /$line/i;
}
$cmd{$cmd} = "$cmd $desc" if $include;
$defh->close;
foreach $in (<$h>) {
next if $in =~ /^\#/;
chomp $in;
+ $in =~ s/\r$//;
if ($in =~ /^===/) {
$cmd{$cmd} = "$cmd $desc" if $include;
$include = 0;
$include = 1;
next;
}
- $include =~ 1 if $cmd =~ /$line/i;
+ $include = 1 if $cmd =~ /$line/i;
}
$cmd{$cmd} = "$cmd $desc" if $include;
$h->close;