Re: pgsql-server: Add some strings for translation and remove some

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql-server: Add some strings for translation and remove some
Дата
Msg-id 2670.1091637481@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql-server: Add some strings for translation and remove some  (dennis@svr1.postgresql.org (Dennis Bjorklund))
Ответы Re: pgsql-server: Add some strings for translation and  (Dennis Bjorklund <db@zigo.dhs.org>)
Список pgsql-committers
dennis@svr1.postgresql.org (Dennis Bjorklund) writes:
> Add some strings for translation and remove some cut'n'paste
> that makes it impossible to translate to other languages.

The way you've done this, the string will be passed through gettext
twice at runtime (once in this routine, once inside errmsg()).  That's
at best a waste of cycles and at worst a wrong answer.  (Though
a match on the translated string isn't likely, it's not impossible.)

You should use gettext_noop() not gettext() to mark these strings as
translatable.

            regards, tom lane

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

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql-server: Make use of backup label/history files to control recovery
Следующее
От: dennis@svr1.postgresql.org (Dennis Bjorklund)
Дата:
Сообщение: pgsql-server: Translation updates