Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS
Дата
Msg-id 025d3ec6-ffa4-916b-f944-4a6acd90523e@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 7/6/17 14:56, Alvaro Herrera wrote:
> We (well, Carlos Chapi, who's doing the translation work now) just
> noticed that this has a bug in this line
> 
> +   printf("%6s   %10s %10s\n", _("< us"), _("% of total"), _("count"));
> 
> _() marks the strings with the c-string flag, which means that the
> %-specifiers are checked by gettext, but the % in the third literal is
> not a printf specifier.  So there's no correct way to write the
> translation.  We need to use a different xgettext trigger there, one
> that doesn't set c-format, but I don't know what.

I have fixed this.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Variable substitution in psql backtick expansion
Следующее
От: Tom Lane
Дата:
Сообщение: [HACKERS] Back-branch release notes up for review