diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 1999-11-17 16:37:07 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 1999-11-17 16:37:07 +0000 |
commit | 0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b (patch) | |
tree | b97232b9616a60d638abf04b5747a3477c4cb8c8 /perl-install | |
parent | be88bdb7e026d1463294c830f1b91a4abd3857bb (diff) | |
download | drakx-backup-do-not-use-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar drakx-backup-do-not-use-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.gz drakx-backup-do-not-use-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.bz2 drakx-backup-do-not-use-0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b.tar.xz drakx-backup-do-not-use-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')
-rw-r--r-- | perl-install/common.pm | 2 |
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) |