summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-12-15 08:48:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-12-15 08:48:51 +0000
commit226bc14e18ffe6c106d28680ea935cad227a9e05 (patch)
tree170f4b1a3214a90592075fd3e42ff07e21134d31 /perl-install/common.pm
parentd78b368c177b069dc2a157f6a094df272a385eab (diff)
downloaddrakx-226bc14e18ffe6c106d28680ea935cad227a9e05.tar
drakx-226bc14e18ffe6c106d28680ea935cad227a9e05.tar.gz
drakx-226bc14e18ffe6c106d28680ea935cad227a9e05.tar.bz2
drakx-226bc14e18ffe6c106d28680ea935cad227a9e05.tar.xz
drakx-226bc14e18ffe6c106d28680ea935cad227a9e05.zip
use Locale::gettext for dgettext, bindtextdomain and bind_textdomain_codeset instead of module c
(that way we can also use dngettext, and it's more modular)
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 36628d900..fedf68926 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -1,6 +1,7 @@
package common; # $Id$
use MDK::Common;
+use Locale::gettext();
use diagnostics;
use strict;
@@ -59,7 +60,7 @@ sub translate_real {
my ($s) = @_;
$s or return '';
foreach (@::textdomains, 'libDrakX') {
- my $s2 = c::dgettext($_, $s);
+ my $s2 = Locale::gettext::dgettext($_, $s);
return $s2 if $s ne $s2;
}
$s;