diff options
| author | Peter Eisentraut | 2009-03-26 22:26:08 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2009-03-26 22:26:08 +0000 |
| commit | 8032d76b5bcb037e6bcb4b5615432d4f3842c523 (patch) | |
| tree | aec09ebeb02b20d8f0b9833f819fcd60ae315d07 /src/pl | |
| parent | 845693f70f9c49ada509187b153848c47a32b530 (diff) | |
Gettext plural support
In the backend, I changed only a handful of exemplary or important-looking
instances to make use of the plural support; there is probably more work
there. For the rest of the source, this should cover all relevant cases.
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 5 | ||||
| -rw-r--r-- | src/pl/plpython/plpython.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index cff12961ebd..573d293f4cc 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.235 2009/02/23 10:03:22 petere Exp $ + * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.236 2009/03/26 22:26:08 petere Exp $ * *------------------------------------------------------------------------- */ @@ -4088,7 +4088,8 @@ exec_eval_expr(PLpgSQL_execstate *estate, if (estate->eval_tuptable->tupdesc->natts != 1) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("query \"%s\" returned %d columns", expr->query, + errmsg(dngettext(TEXTDOMAIN, "query \"%s\" returned %d column", "query \"%s\" returned %d columns", estate->eval_tuptable->tupdesc->natts), + expr->query, estate->eval_tuptable->tupdesc->natts))); /* diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 27324b3ff35..4914899a899 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,7 +1,7 @@ /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.118 2009/01/15 13:49:56 petere Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.119 2009/03/26 22:26:08 petere Exp $ * ********************************************************************* */ @@ -2523,7 +2523,7 @@ PLy_spi_execute_plan(PyObject * ob, PyObject * list, long limit) PLy_procedure_name(PLy_curr_procedure)); sv = PyString_AsString(so); PLy_exception_set(PLy_exc_spi_error, - "Expected sequence of %d arguments, got %d: %s", + dngettext(TEXTDOMAIN, "Expected sequence of %d argument, got %d: %s", "Expected sequence of %d arguments, got %d: %s", plan->nargs), plan->nargs, nargs, sv); Py_DECREF(so); |
