From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org, Carlos Chapi <carlos.chapi@2ndquadrant.com>
Subject: Re: [COMMITTERS] pgsql: pg_test_timing: Add NLS
Date: Thu, 6 Jul 2017 14:56:45 -0400
Message-ID: <20170706185645.nfgdq52qlxiexicl@alvherre.pgsql> (raw)
In-Reply-To: <E1c2fhZ-0000gL-2l@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter Eisentraut wrote:
> pg_test_timing: Add NLS
>
> Also straighten out use of time unit abbreviations a bit.
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.
Babel is now complaining:
/home/nlsuser/admin/wwwtools/scm/postgresql-master/src/bin/pg_test_timing/po/es.po:73: format specifications in 'msgid' and 'msgstr' for argument 1 are not the same
where the line is
#: pg_test_timing.c:181
#, c-format
msgid "% of total"
msgstr "% del total"
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@2ndquadrant.com, peter_e@gmx.net, carlos.chapi@2ndquadrant.com
Subject: Re: [COMMITTERS] pgsql: pg_test_timing: Add NLS
In-Reply-To: <20170706185645.nfgdq52qlxiexicl@alvherre.pgsql>
References: <E1c2fhZ-0000gL-2l@gemulon.postgresql.org> <20170706185645.nfgdq52qlxiexicl@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox