From 0eba4a2a3ff3e37bb8a08477f556fe3f97351d7b Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Wed, 17 Nov 1999 16:37:07 +0000 Subject: changed the order of serchaing variables for translate() I'll read some perl books on string manipualtion to perform the missing changes. --- perl-install/common.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1