pgsql: pg_test_timing: Some NLS fixes

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_test_timing: Some NLS fixes
Date: 2017-08-26 13:27:15
Message-ID: E1dlb7L-0001k5-Mg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_test_timing: Some NLS fixes

The string "% of total" was marked by xgettext to be a c-format, but it
is actually not, so mark up the source to prevent that.

Compute the column widths of the final display dynamically based on the
translated strings, so that translations don't mess up the display
accidentally.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2073c641b43e1310784dc40aef32f71119313bdc

Modified Files
--------------
src/bin/pg_test_timing/pg_test_timing.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-26 15:33:51 pgsql: pg_test_timing: Some NLS fixes
Previous Message Michael Meskes 2017-08-26 11:02:15 pgsql: Make setlocale in ECPG test cases thread aware on Windows.