From 1f49b0fead1d8c61668c6f5eedf81cb5748886ab Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 28 Aug 2007 15:40:59 +0000 Subject: (translate_real) fix plural translating for C locale --- perl-install/NEWS | 1 + perl-install/common.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index d502de4b7..20dcc1f47 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,4 @@ +- fix plural translating for C locale - diskdrake: o fix displaying umount error message (#32273) o write mdadm.conf when it is modified (#32360) diff --git a/perl-install/common.pm b/perl-install/common.pm index 3be4dfb39..ecc85c2ff 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -56,7 +56,7 @@ sub translate_real { c::set_tagged_utf8($s2) if !utf8::is_utf8($s2) && utf8::is_utf8($s); return $s2 if $s ne $s2 && $s2 ne $o_plural; } - $s; + $o_nb ? $o_plural : $s; } sub remove_translate_context { -- cgit v1.2.1