summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>1999-11-17 16:37:07 +0000
committerPablo Saratxaga <pablo@mandriva.com>1999-11-17 16:37:07 +0000
commit0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b (patch)
treeb97232b9616a60d638abf04b5747a3477c4cb8c8 /perl-install/common.pm
parentbe88bdb7e026d1463294c830f1b91a4abd3857bb (diff)
downloaddrakx-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar
drakx-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.gz
drakx-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.bz2
drakx-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.xz
drakx-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.zip
changed the order of serchaing variables for translate()
I'll read some perl books on string manipualtion to perform the missing changes.
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 2067b624c..668c5cd22 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -244,7 +244,7 @@ sub unmakedev { $_[0] >> 8, $_[0] & 0xff }
sub translate {
my ($s) = @_;
- my ($lang) = substr($ENV{LC_ALL} || $ENV{LANGUAGE} || $ENV{LC_MESSAGES} || $ENV{LANG} || 'us', 0, 2);
+ my ($lang) = substr($ENV{LANGUAGE} || $ENV{LC_MESSAGES} || $ENV{LC_ALL} || $ENV{LANG} || 'us', 0, 2);
require 'lang.pm';
lang::load_po ($lang) unless defined $po::I18N::{$lang}; #- the space if needed to mislead perl2fcalls (as lang is not included here)