summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-28 16:24:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-28 16:24:31 +0000
commitcb61e5b23dfe4902188e6bc59bfd25d3f440090b (patch)
tree38492adfe2548e8bbe4986d07ea2c3218126b26c /perl-install/common.pm
parent3113bb4d5fc9277e762015794b25a8895c7c118a (diff)
downloaddrakx-cb61e5b23dfe4902188e6bc59bfd25d3f440090b.tar
drakx-cb61e5b23dfe4902188e6bc59bfd25d3f440090b.tar.gz
drakx-cb61e5b23dfe4902188e6bc59bfd25d3f440090b.tar.bz2
drakx-cb61e5b23dfe4902188e6bc59bfd25d3f440090b.tar.xz
drakx-cb61e5b23dfe4902188e6bc59bfd25d3f440090b.zip
(translate_real) in english 1 is singular whereas 0 is plural (pixel)
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index ecc85c2ff..be5e2fa18 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -56,7 +56,9 @@ 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;
}
- $o_nb ? $o_plural : $s;
+ # didn't lookup anything or locale is "C";
+ # in english 1 is singular whereas 0 is plural:
+ defined $o_nb && $o_nb != 1 ? $o_plural : $s;
}
sub remove_translate_context {