NLS cleanup in ecpglib
commitcee75bf340d79d635c03158fa9141a5fb5b6cd0c
authorpetere <petere>
Thu, 15 Jan 2009 11:52:55 +0000 (15 11:52 +0000)
committerpetere <petere>
Thu, 15 Jan 2009 11:52:55 +0000 (15 11:52 +0000)
tree4e2d1c6dcec0de0460ef6d4990d077e70a702ed5
parent99da4453386eac20f411310bf794febbd8d4a1ed
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.
16 files changed:
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/data.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/error.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/nls.mk
src/interfaces/ecpg/test/expected/connect-test2.stderr
src/interfaces/ecpg/test/expected/connect-test3.stderr
src/interfaces/ecpg/test/expected/connect-test4.stderr
src/interfaces/ecpg/test/expected/connect-test5.stderr
src/interfaces/ecpg/test/expected/preproc-init.stderr
src/interfaces/ecpg/test/expected/preproc-whenever.stderr
src/interfaces/ecpg/test/expected/sql-fetch.stderr
src/interfaces/ecpg/test/expected/sql-quote.stderr