summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-11 16:41:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-11 16:41:30 +0000
commit45c4d258d7f7d88a44387f614ef0cf401208ed69 (patch)
treed98749f9703194b5307121c56f1a553c0ad611da /perl-install/common.pm
parentdd95fb3e4da2db04cfd190f4ac913a0d7ead0024 (diff)
downloaddrakx-45c4d258d7f7d88a44387f614ef0cf401208ed69.tar
drakx-45c4d258d7f7d88a44387f614ef0cf401208ed69.tar.gz
drakx-45c4d258d7f7d88a44387f614ef0cf401208ed69.tar.bz2
drakx-45c4d258d7f7d88a44387f614ef0cf401208ed69.tar.xz
drakx-45c4d258d7f7d88a44387f614ef0cf401208ed69.zip
allow various textdomains for i18n
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index a18eb41af..6104b0b34 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -46,7 +46,12 @@ sub unmakedev { $_[0] >> 8, $_[0] & 0xff }
sub translate {
my ($s) = @_;
- $s ? c::dgettext('libDrakX', $s) : '';
+ $s or return '';
+ foreach ('libDrakX', @::textdomains) {
+ my $s2 = c::dgettext($_, $s);
+ return $s2 if $s ne $s2;
+ }
+ $s;
}
sub untranslate {