Re: [pgtranslation-translators] on gettext plural support

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [pgtranslation-translators] on gettext plural support
Дата
Msg-id 20090412011744.GC7351@alvh.no-ip.org
обсуждение исходный текст
Ответ на on gettext plural support  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: on gettext plural support
Следующее
От: Robert Haas
Дата:
Сообщение: HashJoin w/option to unique-ify inner rel