Re: [COMMITTERS] pgsql: Fix some translator comments so that

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [COMMITTERS] pgsql: Fix some translator comments so that
Дата
Msg-id 200611282151.kASLpPU21015@momjian.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Fix some translator comments so that xgettext finds them and  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > I looked at the first URL diff.  How is the pgindent output poor?
> 
> xgettext extracts comments if the first token of the comment is the tag 
> we choose ("translator").  But if the comment is formatted like
> 
> /*
>  * translator: first %s is name of a SQL
>  * construct, eg ORDER BY
>  */
> 
> then the first token of the comment is actually the second "*", so 
> xgettext doesn't take it.
> 
> So we'd need a way for those comments to not be formatted that way.

OK, next question.  Why does xgettext pull comments?  For the assistance
of the translator?

Looking at the diff, your new version uses "/*------" to mark the
comments --- that will prevent pgindent from modifying the comment, so
perhaps that is the right solution.  One thing we could do is look for
"/* translator" comments and manually change them.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Double entries in log for page slots in beta3
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Double entries in log for page slots in beta3