pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Fix translation marking
Date: Fri, 08 Apr 2022 13:16:50 +0000
Message-ID: <E1ncoTp-000tdS-SJ@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1ncoTp-000tdS-SJ@gemulon.postgresql.org>
Permalink:  ../E1ncoTp-000tdS-SJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ncoTp-000tdS-SJ@gemulon.postgresql.org

 · 

reply

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: peter@eisentraut.org
  Subject: Re: pgsql: psql: Fix translation marking
  In-Reply-To: <E1ncoTp-000tdS-SJ@gemulon.postgresql.org>
  References: <E1ncoTp-000tdS-SJ@gemulon.postgresql.org>

* 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