From e54203646176167271dc50a7b8f7bbe0d3ea6e75 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 2 Jun 2001 18:25:18 +0000 Subject: Native Language Support (NLS) Use --enable-nls to turn it on; see installation instructions for details. See developer's guide how to make use of it in programs and how to add translations. psql sources have been almost fully prepared and an incomplete German translation has been provided. In the backend, only elog() calls are currently translatable, and the provided German translation file is more of a placeholder. --- src/backend/utils/error/elog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/utils/error/elog.c') diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 556fa0da9f..79829ca872 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.84 2001/05/30 14:15:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.85 2001/06/02 18:25:17 petere Exp $ * *------------------------------------------------------------------------- */ @@ -207,6 +207,7 @@ elog(int lev, const char *fmt,...) if (Log_pid) timestamp_size += PID_SIZE; + fmt = gettext(fmt); /* * Set up the expanded format, consisting of the prefix string plus * input format, with any %m replaced by strerror() string (since -- cgit v1.2.1