diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-09-28 17:14:53 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-09-28 17:14:53 +0200 |
commit | 1dd468c348095010e07eeb844e2e344ad63a52ef (patch) | |
tree | 3007cdd8df2dcf51a7166a7b97b37375a5a90222 /src/common/jsonapi.c | |
parent | 8c17c86154704a89c46c6a9575cf7d792f357c9c (diff) | |
download | postgresql-1dd468c348095010e07eeb844e2e344ad63a52ef.tar.gz postgresql-1dd468c348095010e07eeb844e2e344ad63a52ef.zip |
Change some errdetail() to errdetail_internal()
This prevents marking the argument string for translation for gettext,
and it also prevents the given string (which is already translated) from
being translated at runtime.
Also, mark the strings used as arguments to check_rolespec_name for
translation.
Backpatch all the way back as appropriate. None of this is caught by
any tests (necessarily so), so I verified it manually.
Diffstat (limited to 'src/common/jsonapi.c')
-rw-r--r-- | src/common/jsonapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c index 6fe17a3d378..b296ba7d67b 100644 --- a/src/common/jsonapi.c +++ b/src/common/jsonapi.c @@ -1050,7 +1050,7 @@ report_parse_error(JsonParseContext ctx, JsonLexContext *lex) } /* - * Construct a detail message for a JSON error. + * Construct an (already translated) detail message for a JSON error. */ char * json_errdetail(JsonParseErrorType error, JsonLexContext *lex) |