Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS
Date
Msg-id 025d3ec6-ffa4-916b-f944-4a6acd90523e@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Variable substitution in psql backtick expansion
Next
From: Tom Lane
Date:
Subject: [HACKERS] Back-branch release notes up for review