summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-22 11:57:03 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-22 11:57:03 +0000
commit1d922c8c7778f4fd5f0b7d592d102109e20835c1 (patch)
tree7439fc759ca1428e7ba4d4eec919e5d58d7e13d4 /perl-install/common.pm
parent0b2abe1abda411d0333a53bab0bcec18eccb2042 (diff)
downloaddrakx-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar
drakx-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.gz
drakx-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.bz2
drakx-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.xz
drakx-1d922c8c7778f4fd5f0b7d592d102109e20835c1.zip
fix accents characters displaying in console mode during install:
- convert translations into utf8 only during install && if using gtk - explicitely bind the codeset to the specified locale's encoding because during install they are reported as utf8
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 3948cf7f9..f486660d4 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -55,7 +55,7 @@ sub translate {
my ($s) = @_;
$s or return '';
foreach ('libDrakX', @::textdomains) {
- my $s2 = c::dgettext($_, $s);
+ my $s2 = $::isInstall && UNIVERSAL::isa($::o, 'interactive::gtk') ? c::dgettext_utf8($_, $s) : c::dgettext($_, $s);
return $s2 if $s ne $s2;
}
$s;