Re: pgsql/src/backend/postmaster postmaster.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql/src/backend/postmaster postmaster.c
Дата
Msg-id 3370.1005108098@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql/src/backend/postmaster postmaster.c  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-committers
Peter Eisentraut <peter_e@gmx.net> writes:
> Sorry, this sort of thing doesn't work with message internationalization.

Why not?  Certainly the messages are in two parts, but I doubt there is
any language with grammar so irregular that it can't be made to work.

> I suggest you revert this and fix the one remaining message in the style
> the other ones are in.

If it were only the one erroneous message, I wouldn't have troubled.
But there were four (soon to be five) places that all had the same
problem, ie failure to cover the "can't happen" case.  Repeating that
logic five times, producing fifteen somewhat-redundant error messages
to translate, didn't seem like a win.  Especially not when I fully
expect there to be some #ifdefs in there soon to cover platforms that
don't have WIFEXITED and friends.  The code as committed has one place
to fix such problems, not five.

I thought about alternative strategies like passing the noun phrase into
the formatExitStatus subroutine, but that didn't seem materially better.
Can you give a concrete example of a language where this really doesn't
work, keeping in mind that the original isn't exactly the Queen's
English either?

            regards, tom lane

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

Предыдущее
От: momjian@postgresql.org
Дата:
Сообщение: pgsql/. HISTORY
Следующее
От: momjian@postgresql.org
Дата:
Сообщение: pgsql/doc TODO