diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-09-15 14:55:26 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-09-15 14:55:26 +0000 |
commit | d44c80132f183fce23bbc1e5d477eef5c0241c96 (patch) | |
tree | 886221a1d8154a274d2a6a447d89a2a54eeb49fe /perl-install | |
parent | 9524cc24f479d69e9fc25245e892b9f3d257689f (diff) | |
download | drakx-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar drakx-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.gz drakx-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.bz2 drakx-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.xz drakx-d44c80132f183fce23bbc1e5d477eef5c0241c96.zip |
use locale_special when $::prefix is set (so that X test is i18n)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/lang.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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'); |