summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
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');