From d44c80132f183fce23bbc1e5d477eef5c0241c96 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 15 Sep 2003 14:55:26 +0000 Subject: use locale_special when $::prefix is set (so that X test is i18n) --- perl-install/lang.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 6db784b5e..defa956bb 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -986,8 +986,9 @@ sub write { } sub bindtextdomain() { - my $localedir = "$ENV{SHARE_PATH}/locale"; - $localedir .= "_special" if $::isInstall; + #- if $::prefix is set, search for libDrakX.mo in locale_special + #- NB: not using $::isInstall to make it work more easily at install and standalone + my $localedir = "$ENV{SHARE_PATH}/locale" . ($::prefix ? "_special" : ''); c::setlocale(); c::bind_textdomain_codeset('libDrakX', 'UTF-8'); -- cgit v1.2.1