[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use plural form in i18n.
From: |
Petr Pisar |
Subject: |
Re: [PATCH] Use plural form in i18n. |
Date: |
Thu, 28 Apr 2011 09:44:49 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Apr 28, 2011 at 12:32:50AM -0600, Bob Proulx wrote:
>
> That is, translate the English:
> "no memory for %d byte allocation"
>
> To this equivalent in the translations?:
> "not enough memory to allocate %d bytes"
>
This looks good.
> The only singular case would be "1 byte" with all others being plural
> (0 bytes, 1 byte, 12 bytes) and since I don't think "1 byte" is a
> valid case it doesn't need separate singular and plural cases. I
> think.
>
This is exact example of case where ngettext _must_ be used. There are many
languages that have plural form depending on number. See `The problem of
plural forms' section in `info libc "Advanced gettext functions"' command
output.
-- Petr
pgpg2euti7FLW.pgp
Description: PGP signature