summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-03 12:01:52 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-03 12:01:52 +0000
commit1ec1ca957c0f17036cbcf87396194adb159fab57 (patch)
tree26f068b729fa5a5d27618b19f00ef2eff49f6e5c /urpmi
parent60cff2d095c023c0770170c916855d8206b364a7 (diff)
downloadurpmi-1ec1ca957c0f17036cbcf87396194adb159fab57.tar
urpmi-1ec1ca957c0f17036cbcf87396194adb159fab57.tar.gz
urpmi-1ec1ca957c0f17036cbcf87396194adb159fab57.tar.bz2
urpmi-1ec1ca957c0f17036cbcf87396194adb159fab57.tar.xz
urpmi-1ec1ca957c0f17036cbcf87396194adb159fab57.zip
convert some gurpmi dialogs to UTF8 as they should
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi12
1 files changed, 6 insertions, 6 deletions
diff --git a/urpmi b/urpmi
index e85a2baa..a0ac6ce8 100755
--- a/urpmi
+++ b/urpmi
@@ -421,8 +421,8 @@ sub ask_choice {
if ($parallel && $X) { #- do it early, we'll have ui outputs while resolving deps
require gurpm;
- gurpm::init(N("Package installation..."), N("Initializing..."));
- $urpm->{ui} = { msg => sub { gurpm::label($_[0]) }, progress => sub { gurpm::progress($_[0]) } };
+ gurpm::init(to_utf8(N("Package installation...")), to_utf8(N("Initializing...")));
+ $urpm->{ui} = { msg => sub { gurpm::label(to_utf8($_[0])) }, progress => sub { gurpm::progress($_[0]) } };
}
#- do the resolution of dependencies between requested package (and auto selection if any).
@@ -538,7 +538,7 @@ unless ($local_sources || $list) {
if ($X && !$parallel) { #- for $parallel, already done
require gurpm;
- gurpm::init(N("Package installation..."), N("Initializing..."));
+ gurpm::init(to_utf8(N("Package installation...")), to_utf8(N("Initializing...")));
}
my %sources = %$local_sources;
@@ -590,7 +590,7 @@ foreach my $set (@{$state->{transaction} || []}) {
if ($X) {
if ($mode eq 'start') {
$file =~ s|/*\s*$||; $file =~ s|.*/||;
- gurpm::label(N("Downloading package `%s'...", $file));
+ gurpm::label(to_utf8(N("Downloading package `%s'...", $file)));
} elsif ($mode eq 'progress') {
gurpm::progress($percent/100);
} elsif ($mode eq 'end') {
@@ -691,9 +691,9 @@ foreach my $set (@{$state->{transaction} || []}) {
if ($subtype eq 'start') {
if ($type eq 'trans') {
- gurpm::label(N("Preparing..."));
+ gurpm::label(to_utf8(N("Preparing...")));
} else {
- gurpm::label(N("Installing package `%s' (%s/%s)...", $pkg->name, ++$progress_nb, $total_nb));
+ gurpm::label(to_utf8(N("Installing package `%s' (%s/%s)...", $pkg->name, ++$progress_nb, $total_nb)));
}
} elsif ($subtype eq 'progress') {
gurpm::progress($amount/$total);