From d615013bc0861ee1a78e81063facacd77f5a792e Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Thu, 2 Dec 1999 16:37:49 +0000 Subject: allow use of locale names wider than two char (needed for chinese) --- perl-install/common.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index 11f5f9b97..5a1a722c1 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -244,7 +244,8 @@ sub unmakedev { $_[0] >> 8, $_[0] & 0xff } sub translate { my ($s) = @_; - my ($lang) = substr($ENV{LANGUAGE} || $ENV{LC_MESSAGES} || $ENV{LC_ALL} || $ENV{LANG} || 'en', 0, 2); +#- $ENV{LANG} in first place until load_po can handle multiple locales + my ($lang) = $ENV{LANG} || $ENV{LANGUAGE} || $ENV{LC_MESSAGES} || $ENV{LC_ALL} || $ENV{LANG} || 'en'; 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