From 1a27987ce885b7979d316ef59f2f819eca152880 Mon Sep 17 00:00:00 2001
From: Jacob Champion <jacob.champion@enterprisedb.com>
Date: Thu, 13 Nov 2025 14:02:04 -0800
Subject: [PATCH v2 4/4] DO NOT MERGE: squash! libpq: Add missing OAuth
 translations

Similarly to the first commit in this set, jsonapi.c wasn't being
considered for the libpq translation files. Follow the lead of 3ddbac368
and pull it in.

Unfortunately this doesn't work in practice, because jsonapi.c doesn't
use the libpq-specific text domain. More fixes required.
---
 src/interfaces/libpq/nls.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/interfaces/libpq/nls.mk b/src/interfaces/libpq/nls.mk
index 3fa87a0aaac..dfbbdc88046 100644
--- a/src/interfaces/libpq/nls.mk
+++ b/src/interfaces/libpq/nls.mk
@@ -15,9 +15,11 @@ GETTEXT_FILES    = fe-auth.c \
                    fe-secure-gssapi.c \
                    fe-secure-openssl.c \
                    win32.c \
+                   ../../common/jsonapi.c \
                    ../libpq-oauth/oauth-curl.c \
                    ../libpq-oauth/oauth-utils.c
 GETTEXT_TRIGGERS = actx_error:2 \
+                   json_token_error:2 \
                    libpq_append_conn_error:2 \
                    libpq_append_error:2 \
                    libpq_gettext \
@@ -26,6 +28,7 @@ GETTEXT_TRIGGERS = actx_error:2 \
                    oauth_parse_set_error:2 \
                    pqInternalNotice:2
 GETTEXT_FLAGS    = actx_error:2:c-format \
+                   json_token_error:2:c-format \
                    libpq_append_conn_error:2:c-format \
                    libpq_append_error:2:c-format \
                    libpq_gettext:1:pass-c-format \
-- 
2.34.1

