]> git.ipfire.org Git - thirdparty/postgresql.git/commit
libpq: Align oauth_json_set_error() with other NLS patterns
authorJacob Champion <jchampion@postgresql.org>
Mon, 15 Dec 2025 21:22:04 +0000 (13:22 -0800)
committerJacob Champion <jchampion@postgresql.org>
Mon, 15 Dec 2025 21:22:04 +0000 (13:22 -0800)
commitf7fbd02d32c46ee1cada6c3faf94414657b7a19a
tree0dcc1c78f8a32a79ab0efc07d17800353240803e
parent301a1dcf00c82350aad642b872d263730cd87f8f
libpq: Align oauth_json_set_error() with other NLS patterns

Now that the prior commits have fixed missing OAuth translations, pull
the bespoke usage of libpq_gettext() for OAUTHBEARER parsing into
oauth_json_set_error() itself, and make that a gettext trigger as well,
to better match what the other sites are doing. Add an _internal()
variant to handle the existing untranslated case.

Suggested-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/0EEBCAA8-A5AC-4E3B-BABA-0BA7A08C361B%40yesql.se
Backpatch-through: 18
src/interfaces/libpq/fe-auth-oauth.c
src/interfaces/libpq/nls.mk