From 59a2111b23f6ceec4c777d68e20c1027d3c57c6f Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 28 Mar 2016 14:12:00 -0300 Subject: 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. --- src/backend/commands/foreigncmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/foreigncmds.c') diff --git a/src/backend/commands/foreigncmds.c b/src/backend/commands/foreigncmds.c index 7036eb12469..72c819317e0 100644 --- a/src/backend/commands/foreigncmds.c +++ b/src/backend/commands/foreigncmds.c @@ -486,8 +486,8 @@ lookup_fdw_handler_func(DefElem *handler) if (get_func_rettype(handlerOid) != FDW_HANDLEROID) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), - errmsg("function %s must return type \"fdw_handler\"", - NameListToString((List *) handler->arg)))); + errmsg("function %s must return type \"%s\"", + NameListToString((List *) handler->arg), "fdw_handler"))); return handlerOid; } -- cgit v1.2.3