pgsql: NLS cleanup in ecpglib Replace leftover instances of _() by

From: petere(at)postgresql(dot)org (Peter Eisentraut)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: NLS cleanup in ecpglib Replace leftover instances of _() by
Date: 2009-01-15 11:52:55
Message-ID: 20090115115255.72EA2754877@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
NLS cleanup in ecpglib

Replace leftover instances of _() by ecpg_gettext(), the latter being the
correct way to refer to the library's message catalog, instead of the one of
the program using the library.

Drop NLS support for ecpg_log(), which is a debugging instrument similar to
elog() in the backend.

We cannot support NLS in the ecpg compatlib, because that requires
ecpg_gettext, which is in ecpglib, which is not a dependency of compatlib. It
doesn't seem worthwhile to worry about this, since the only translatable
string is "out of memory", and gettext probably won't be able to do much
without memory either.

Adjust messages to project style.

Modified Files:
--------------
pgsql/src/interfaces/ecpg/compatlib:
informix.c (r1.56 -> r1.57)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/compatlib/informix.c?r1=1.56&r2=1.57)
pgsql/src/interfaces/ecpg/ecpglib:
connect.c (r1.52 -> r1.53)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/connect.c?r1=1.52&r2=1.53)
data.c (r1.41 -> r1.42)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/data.c?r1=1.41&r2=1.42)
descriptor.c (r1.30 -> r1.31)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/descriptor.c?r1=1.30&r2=1.31)
error.c (r1.20 -> r1.21)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/error.c?r1=1.20&r2=1.21)
execute.c (r1.78 -> r1.79)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/execute.c?r1=1.78&r2=1.79)
misc.c (r1.47 -> r1.48)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/misc.c?r1=1.47&r2=1.48)
nls.mk (r1.1 -> r1.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/nls.mk?r1=1.1&r2=1.2)
pgsql/src/interfaces/ecpg/test/expected:
connect-test2.stderr (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/connect-test2.stderr?r1=1.9&r2=1.10)
connect-test3.stderr (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/connect-test3.stderr?r1=1.9&r2=1.10)
connect-test4.stderr (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/connect-test4.stderr?r1=1.3&r2=1.4)
connect-test5.stderr (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/connect-test5.stderr?r1=1.9&r2=1.10)
preproc-init.stderr (r1.2 -> r1.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/preproc-init.stderr?r1=1.2&r2=1.3)
preproc-whenever.stderr (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/preproc-whenever.stderr?r1=1.9&r2=1.10)
sql-fetch.stderr (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/sql-fetch.stderr?r1=1.9&r2=1.10)
sql-quote.stderr (r1.10 -> r1.11)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/test/expected/sql-quote.stderr?r1=1.10&r2=1.11)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2009-01-15 12:59:12 pgsql: Remove unneeded GETTEXT_TRIGGERS.
Previous Message Peter Eisentraut 2009-01-15 09:30:20 pgsql: Build needed things in src/test/regress/ first.