From 1ec1ca957c0f17036cbcf87396194adb159fab57 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 3 Feb 2004 12:01:52 +0000 Subject: convert some gurpmi dialogs to UTF8 as they should --- urpmi | 12 ++++++------ urpmi.spec | 6 +++++- 2 files changed, 11 insertions(+), 7 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); diff --git a/urpmi.spec b/urpmi.spec index 2786d71f..e43715f6 100644 --- a/urpmi.spec +++ b/urpmi.spec @@ -8,7 +8,7 @@ %define name urpmi %define version 4.4.5 -%define release 1mdk +%define release 2mdk %define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /mandrake/i ? "System/Configuration/Packaging" : "System Environment/Base"') @@ -236,6 +236,10 @@ $urpm->update_media(nolock => 1, nopubkey => 1); %{compat_perl_vendorlib}/urpm/parallel_ssh.pm %changelog +* Tue Feb 3 2004 Guillaume Cottenceau 4.4.5-2mdk +- convert some gurpmi dialogs to UTF8 as they should (part of + #7156, needs latest change in perl-Locale-gettext as well) + * Fri Jan 30 2004 Olivier Blin 4.4.5-1mdk - add --resume and --no-resume options in urpmi (to resume transfer of partially-downloaded files) -- cgit v1.2.1