summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-15 14:55:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-15 14:55:26 +0000
commitd44c80132f183fce23bbc1e5d477eef5c0241c96 (patch)
tree886221a1d8154a274d2a6a447d89a2a54eeb49fe /perl-install/lang.pm
parent9524cc24f479d69e9fc25245e892b9f3d257689f (diff)
downloaddrakx-backup-do-not-use-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar
drakx-backup-do-not-use-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.gz
drakx-backup-do-not-use-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.bz2
drakx-backup-do-not-use-d44c80132f183fce23bbc1e5d477eef5c0241c96.tar.xz
drakx-backup-do-not-use-d44c80132f183fce23bbc1e5d477eef5c0241c96.zip
use locale_special when $::prefix is set (so that X test is i18n)
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm5
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');