From ea530fe0c4c94aa46430b4fbea0fc41967ff7fb2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 20 Jul 2001 13:57:52 +0000 Subject: (translate): basic plural forms handling (not finished) --- perl-install/common.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install') diff --git a/perl-install/common.pm b/perl-install/common.pm index a65f4ddd8..73c1d9adb 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -368,6 +368,9 @@ sub list_skels { sub translate { my ($s) = @_; + if (ref($s) eq 'ARRAY') { + $s = $s->[0] == 1 ? "singular\0$s->[1]" : "plural\0$s->[2]"; + } my ($lang) = $ENV{LANGUAGE} || $ENV{LC_MESSAGES} || $ENV{LC_ALL} || $ENV{LANG} || 'en'; require lang; -- cgit v1.2.1