pgsql: psql: Fix translation marking

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Fix translation marking
Date: 2022-04-08 13:16:50
Message-ID: E1ncoTp-000tdS-SJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Fix translation marking

Commit 5a2832465fd8984d089e8c44c094e6900d987fcd added
addFooterToPublicationDesc() as a wrapper around
printTableAddFooter(). The translation marker _() was moved to the
body of addFooterToPublicationDesc(), but addFooterToPublicationDesc()
was not added to GETTEXT_TRIGGERS, so those strings were lost for
translation. To fix, add the translation markers to the call sites of
addFooterToPublicationDesc() and remove the translation marker from
the body of the function. This seems easiest since there were only
two callers and it keeps the API consistent with
printTableAddFooter(). While we're here, add some const decorations
to the prototype of addFooterToPublicationDesc() for consistency with
printTableAddFooter().

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/891624f0ec3b3d353269b0bfc7bc545333d6b4d5

Modified Files
--------------
src/bin/psql/describe.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-04-08 13:36:27 Re: [COMMITTERS] pgsql: Allow time delayed standbys and recovery
Previous Message Robert Haas 2022-04-08 12:38:41 pgsql: Apply PGDLLIMPORT markings broadly.