summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-09 03:20:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-09 03:20:47 +0000
commit2808f751a28cf02e71a3ef28ad4f59d026a35311 (patch)
tree64e8ccd8209a01aad36db7574d6b013e7ff4e2c3 /perl-install
parent6eb86c4cee760c9e7d22d01ec024a2d97a9fef74 (diff)
downloaddrakx-backup-do-not-use-2808f751a28cf02e71a3ef28ad4f59d026a35311.tar
drakx-backup-do-not-use-2808f751a28cf02e71a3ef28ad4f59d026a35311.tar.gz
drakx-backup-do-not-use-2808f751a28cf02e71a3ef28ad4f59d026a35311.tar.bz2
drakx-backup-do-not-use-2808f751a28cf02e71a3ef28ad4f59d026a35311.tar.xz
drakx-backup-do-not-use-2808f751a28cf02e71a3ef28ad4f59d026a35311.zip
prototype compliance with perl_checker
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lang.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 11e0efaa0..d4861bf42 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1124,14 +1124,14 @@ sub bindtextdomain() {
}
sub load_mo {
- my ($lang) = @_;
+ my ($o_lang) = @_;
my $localedir = bindtextdomain();
my $suffix = 'LC_MESSAGES/libDrakX.mo';
- $lang ||= $ENV{LANGUAGE} || $ENV{LC_ALL} || $ENV{LC_MESSAGES} || $ENV{LANG};
+ $o_lang ||= $ENV{LANGUAGE} || $ENV{LC_ALL} || $ENV{LC_MESSAGES} || $ENV{LANG};
- my @possible_langs = map { { name => $_, mofile => "$localedir/$_/$suffix" } } split ':', $lang;
+ my @possible_langs = map { { name => $_, mofile => "$localedir/$_/$suffix" } } split ':', $o_lang;
-s $_->{mofile} and return $_->{name} foreach @possible_langs;