]> granicus.if.org Git - postgresql/commit
NLS cleanup in ecpglib
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 11:52:55 +0000 (11:52 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 11:52:55 +0000 (11:52 +0000)
commitcb05ab81a857582161dd74cbfa91d4468e496cd1
treed9808e4df13a70e2cb6f68fd09a059fa54170a7d
parentcbb1358b18c88216a56de8847428d1bbcc51f280
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