Mark 3rd argument of validate_tupdesc_compat() for translation, instead of
authorPeter Eisentraut <[email protected]>
Tue, 17 Feb 2009 12:51:59 +0000 (12:51 +0000)
committerPeter Eisentraut <[email protected]>
Tue, 17 Feb 2009 12:51:59 +0000 (12:51 +0000)
marking up each instance separately.

src/pl/plpgsql/src/nls.mk
src/pl/plpgsql/src/pl_exec.c

index 4b84416e68df40f5c4ba5a54093c69648a07b946..7651be285b921c1419db7b2a5696c9896c66c711 100644 (file)
@@ -2,7 +2,7 @@
 CATALOG_NAME   := plpgsql
 AVAIL_LANGUAGES        := es
 GETTEXT_FILES  := pl_comp.c pl_exec.c pl_gram.c pl_funcs.c pl_handler.c pl_scan.c
-GETTEXT_TRIGGERS:= _ errmsg errdetail errdetail_log errhint errcontext yyerror
+GETTEXT_TRIGGERS:= _ errmsg errdetail errdetail_log errhint errcontext validate_tupdesc_compat:3 yyerror
 
 .PHONY: gettext-files
 gettext-files: distprep
index 5e6dd5f08b54d4eda6c5a639cd65d25212f9ea0d..21e76020cca19e1a5a71fcd1b4d4e221db5941a7 100644 (file)
@@ -387,8 +387,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo)
                                case TYPEFUNC_COMPOSITE:
                                        /* got the expected result rowtype, now check it */
                                        validate_tupdesc_compat(tupdesc, estate.rettupdesc,
-                                                                                       gettext_noop("returned record type does "
-                                                                                                                "not match expected record type"));
+                                                                                       "returned record type does not match expected record type");
                                        break;
                                case TYPEFUNC_RECORD:
 
@@ -707,8 +706,7 @@ plpgsql_exec_trigger(PLpgSQL_function *func,
        {
                validate_tupdesc_compat(trigdata->tg_relation->rd_att,
                                                                estate.rettupdesc,
-                                                               gettext_noop("returned tuple structure does "
-                                                                                        "not match table of trigger event"));
+                                                               "returned tuple structure does not match table of trigger event");
                /* Copy tuple to upper executor memory */
                rettup = SPI_copytuple((HeapTuple) DatumGetPointer(estate.retval));
        }
@@ -2201,8 +2199,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
                                                   errdetail("The tuple structure of a not-yet-assigned"
                                                                         " record is indeterminate.")));
                                        validate_tupdesc_compat(tupdesc, rec->tupdesc,
-                                                                   gettext_noop("wrong record type supplied "
-                                                                                                                "in RETURN NEXT"));
+                                                                   "wrong record type supplied in RETURN NEXT");
                                        tuple = rec->tup;
                                }
                                break;
@@ -2310,8 +2307,7 @@ exec_stmt_return_query(PLpgSQL_execstate *estate,
        }
 
        validate_tupdesc_compat(estate->rettupdesc, portal->tupDesc,
-                                                       gettext_noop("structure of query does not match "
-                                                                                "function result type"));
+                                                       "structure of query does not match function result type");
 
        while (true)
        {