Обсуждение: pgsql-server: Add some strings for translation and remove some

Поиск
Список
Период
Сортировка

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

От
dennis@svr1.postgresql.org (Dennis Bjorklund)
Дата:
Log Message:
-----------
Add some strings for translation and remove some cut'n'paste
that makes it impossible to translate to other languages.

Modified Files:
--------------
    pgsql-server/src/backend/libpq:
        auth.c (r1.114 -> r1.115)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/libpq/auth.c.diff?r1=1.114&r2=1.115)

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

От
Tom Lane
Дата:
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

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

От
Dennis Bjorklund
Дата:
On Wed, 4 Aug 2004, Tom Lane wrote:

> The way you've done this, the string will be passed through gettext
> twice at runtime (once in this routine, once inside errmsg()).
>
> You should use gettext_noop() not gettext() to mark these strings as
> translatable.

Ops. I'll take a look and fix that tonight.

--
/Dennis Björklund