pgsql: Make libpq error messages consistent for translation

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make libpq error messages consistent for translation
Date: 2023-04-21 08:26:28
Message-ID: E1ppm67-0047oa-0f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make libpq error messages consistent for translation

The errormessage for an incorrect require_auth method wasn't using the
common "invalid %s value" errormessage which lessens the burden on our
translators. Fix by changing to that format to make use of existing
translations and to make error messages consistent in wording.

Reported and fixed by Gurjeet Singh with some tweaking by myself.

Author: Gurjeet Singh <gurjeet(at)singh(dot)im>
Discussion: https://postgr.es/m/CABwTF4Xu3g9zohJ9obu8m7MKbf8g63NgpRDjwqPHQgAtB+Gb8Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/60ce452729239f10ebbd0803a0ecc460f7f9238a

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 4 ++--
src/test/authentication/t/001_password.pl | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-04-21 10:38:35 pgsql: Reorder connection markers in loadbalance tests
Previous Message Fujii Masao 2023-04-21 07:47:40 pgsql: doc: Add documentation for PGLOADBALANCEHOSTS environment variab