bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hu.po ngettext fixes


From: Koblinger Egmont
Subject: Re: hu.po ngettext fixes
Date: Wed, 16 Aug 2006 14:21:00 +0200
User-agent: Mutt/1.5.8i

On Tue, Aug 15, 2006 at 01:59:40PM -0700, Paul Eggert wrote:

Hi,

> Can you please forward that patch to the Translation Project?

Done.

> This is apparently an error in general, since Hungarian has two plural
> forms when there is no numeral involved; please see the discussion at
> <http://lists.gnu.org/archive/html/bug-gnu-utils/2006-08/msg00040.html>

Yes, Bíró Árpád is absolutely right there. The perfect approach is what he
writes, though I haven't faced a situation where the plural form of a noun
is needed in an ngettext context. His example doesn't use ngettext either,
it uses some weird QT magic.

What is the correct approach if the number isn't presented in the string, as
in his "This item" vs. "These items" case? Should ngettext be used in this
case? Or this piece of code a good programming approach:
if (n == 1) printf(_("This item...")); else printf(_("These items..."));  ?

In other words: is there any language where the plural form depends on the
exact value of the number, even if the number itself is not present in the
sentence?


Thanks,

Egmont




reply via email to

[Prev in Thread] Current Thread [Next in Thread]