From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | pgtranslation-translators(at)pgfoundry(dot)org |
Subject: | Re: [pgtranslation-translators] on gettext plural support |
Date: | 2009-04-12 01:17:44 |
Message-ID: | 20090412011744.GC7351@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alvaro Herrera wrote:
> #: pg_dump.c:5011
> #, c-format
> msgid "expected %d check constraint on table \"%s\" but found %d\n"
> msgid_plural "expected %d check constraints on table \"%s\" but found %d\n"
Sorry, I'm an idiot -- the one I wanted to paste was
#: pg_dump.c:6344 pg_dump.c:6543 pg_dump.c:7194
#, fuzzy, c-format
msgid "query returned %d row instead of one: %s\n"
msgid_plural "query returned %d rows instead of one: %s\n"
which actually matches the code fragment I pasted:
> ntups = PQntuples(res);
> if (ntups != 1)
> {
> write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
> "query returned %d rows instead of one: %s\n",
> ntups),
> ntups, query->data);
> exit_nicely();
> }
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-04-12 04:00:36 | HashJoin w/option to unique-ify inner rel |
Previous Message | Alvaro Herrera | 2009-04-12 01:10:07 | on gettext plural support |