diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-03-28 14:12:00 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-03-28 14:24:37 -0300 |
commit | 59a2111b23f6ceec4c777d68e20c1027d3c57c6f (patch) | |
tree | 505bf5080d373619fc60ea658aaef3dc06aef095 /src/backend/commands/trigger.c | |
parent | 559e7a0a6d4450c09825055e3d255d30ee869c67 (diff) | |
download | postgresql-59a2111b23f6ceec4c777d68e20c1027d3c57c6f.tar.gz postgresql-59a2111b23f6ceec4c777d68e20c1027d3c57c6f.zip |
Improve internationalization of messages involving type names
Change the slightly different variations of the message
function FOO must return type BAR
to a single wording, removing the variability in type name so that they
all create a single translation entry; since the type name is not to be
translated, there's no point in it being part of the message anyway.
Also, change them all to use the same quoting convention, namely that
the function name is not to be quoted but the type name is. (I'm not
quite sure why this is so, but it's the clear majority.)
Some similar messages such as "encoding conversion function FOO must ..."
are also changed.
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r-- | src/backend/commands/trigger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 28260e86600..5429aab1c15 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -438,8 +438,8 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString, else ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), - errmsg("function %s must return type \"trigger\"", - NameListToString(stmt->funcname)))); + errmsg("function %s must return type \"%s\"", + NameListToString(stmt->funcname), "trigger"))); } /* |