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 | d84a7b290f866b3f16cbefb0fca31b69ebace98a (patch) | |
tree | a966b86fd39d18e06d7d1306ef735d50e6f89aa8 /src/backend/commands/user.c | |
parent | 7188b9b0fdbb4dd99915626f171d820a56b98514 (diff) | |
download | postgresql-d84a7b290f866b3f16cbefb0fca31b69ebace98a.tar.gz postgresql-d84a7b290f866b3f16cbefb0fca31b69ebace98a.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/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 265a48af7eb..04a18d4a425 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -576,7 +576,7 @@ AlterRole(ParseState *pstate, AlterRoleStmt *stmt) GrantRoleOptions popt; check_rolespec_name(stmt->role, - "Cannot alter reserved roles."); + _("Cannot alter reserved roles.")); /* Extract options from the statement node tree */ foreach(option, stmt->options) @@ -910,7 +910,7 @@ AlterRoleSet(AlterRoleSetStmt *stmt) if (stmt->role) { check_rolespec_name(stmt->role, - "Cannot alter reserved roles."); + _("Cannot alter reserved roles.")); roletuple = get_rolespec_tuple(stmt->role); roleform = (Form_pg_authid) GETSTRUCT(roletuple); |