Re: gettext, plural form and translation

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Sergey Burladyan <eshkinkot(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: gettext, plural form and translation
Date: 2009-03-18 13:49:27
Message-ID: 20090318134927.GB3798@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sergey Burladyan escribió:
> Hi, all.
>
> gnu gettext have support for correct plural form translation
> (http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html),
> but postgresql does not use it. why not ?
> maybe it have some problem in some supported OS ? if not, can it implemented ?
> maybe someone already doing this ?
>
> ps: i try to translate psql message "(1 row)/(3 rows)" but can't do this
> correctly without plural form support.

You don't need plural forms in this example. We have three separate
messages, one for "(No rows)", another one for the singular "(1 row)"
and a third one for the plural "(N rows)".

We avoid mixing plurals and singulars. Is this still a problem for you
somewhere?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-03-18 14:05:18 Re: gettext, plural form and translation
Previous Message Tom Lane 2009-03-18 12:48:28 Re: DDL+SQL in PL/pgSQL EXECUTE