Re: add more NLS to bin

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: add more NLS to bin
Дата
Msg-id CAB7nPqQtQ8VVnjXGSFdtckcLfwFChnYYfXDkaQLJ_2d7tDTBSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: add more NLS to bin  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: add more NLS to bin  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Re: add more NLS to bin  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
On Sat, Nov 5, 2016 at 9:17 AM, Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
> On 11/3/16 7:17 PM, Michael Paquier wrote:
>> This patch not being complicated, so I would vote for those being
>> addressed now so as they are not forgotten even if there is a FIXME
>> flag added. Perhaps you don't think so, and as that's a minor issue
>> I'll be fine with your judgement as well.
>
> OK, I just wrapped it in translation markers as is, which should work
> well enough.

Agreed. I don't see anything wrong with that.

>>>> In util.c, doesn't pg_log_v() need to handle strings used in fprintf?
>>>
>>> Which specific lines do you have in mind?
>>
>> The verbose logs at the top. In pg_rewind for example those logs are
>> getting translated via the pg_log() calls used with PG_DEBUG.
>
> Yeah that was wrong anyway.  The previously existing translation markers
> were wrong.  We want to translate the fmt, not the formatted message.

Does using one way or the other actually change something? Because
pg_rewind/logging.c is not marking fmt but the message, the opposite
of your v2 patch. One way or the other, having consistency for both
would be nice.

The patch looks good to me, the instructions for the script could be
changed... But you are right let's not mess up with non-ASCII
characters in it, like from some Asian language translation.
-- 
Michael



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: MinSizeOfXactInvals defined twice
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Re: [sqlsmith] FailedAssertion("!(XLogCtl->Insert.exclusiveBackup)", File: "xlog.c", Line: 10200)