Redundant/mis-use of _(x) gettext macro? - Mailing list pgsql-hackers

From Peter Smith
Subject Redundant/mis-use of _(x) gettext macro?
Date
Msg-id CAHut+Pvp7jYcaiZ3pXedXgLcWZWDBLXFUK05JtZpGv3Mj=UOjw@mail.gmail.com
Whole thread
Responses Re: Redundant/mis-use of _(x) gettext macro?
Re: Redundant/mis-use of _(x) gettext macro?
List pgsql-hackers
Hi.

As originally reported [1] in the EXCEPT (TABLE ...) thread, I felt
the _() gettext macro is mis-used when it contains nothing but a
quoted format string.

AFAIK the purpose of using gettext (e.g. the "_(x)" macro) is for
marking the string for i18n translation. But there's nothing even to
translate here.

Only 2 examples were found like this. Granted, this is probably not
very harmful, but IMO it's better to patch the mis-use to prevent it
from propagating.

PSA the patch for more details.

======
[1] https://www.postgresql.org/message-id/CAHut%2BPtVaOYVP1R0TOoNh5G9CUBurrP%3D6i7fJCdfWEZiqVCRvw%40mail.gmail.com

Kind Regards,
Peter Smith.
Fujitsu Australia

Attachment

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: [oauth] Split and extend PGOAUTHDEBUG
Next
From: Peter Smith
Date:
Subject: Re: Skipping schema changes in publication