Re: [PATCH] polish the error message of creating proc

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: [PATCH] polish the error message of creating proc
Дата
Msg-id 20220921144912.widpjlzk27bntu2q@jrouhaud
обсуждение исходный текст
Ответ на Re: [PATCH] polish the error message of creating proc  (Junwang Zhao <zhjwpku@gmail.com>)
Список pgsql-hackers
On Wed, Sep 21, 2022 at 10:35:47PM +0800, Junwang Zhao wrote:
> On Wed, Sep 21, 2022 at 8:17 PM Julien Rouhaud <rjuju123@gmail.com> wrote:
> >
> > You can't put part of the message in parameter, as the resulting string isn't
> > translatable.  You should either use "routine" as a generic term or provide 3
> > different full messages.
>
> I noticed that there are some translations under the backend/po directory,
> can we just change
> msgid "function \"%s\" already exists with same argument types"
> to
> msgid "%s \"%s\" already exists with same argument types" ?

The problem is that the parameters are passed as-is, so the final emitted
translated string will be a mix of both languages, which isn't acceptable.



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

Предыдущее
От: Zhang Mingli
Дата:
Сообщение: Re: Removing unused parameter in SnapBuildGetOrBuildSnapshot
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: ICU for global collation