mirror of https://github.com/postgres/postgres
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.REL8_5_ALPHA1_BRANCH
parent
cbb1358b18
commit
cb05ab81a8
@ -1,5 +1,5 @@ |
||||
# $PostgreSQL $
|
||||
CATALOG_NAME = ecpglib
|
||||
AVAIL_LANGUAGES =
|
||||
GETTEXT_FILES = ../compatlib/informix.c connect.c data.c descriptor.c error.c execute.c misc.c prepare.c
|
||||
GETTEXT_TRIGGERS = _ ecpg_gettext ecpg_log
|
||||
GETTEXT_FILES = connect.c error.c execute.c misc.c
|
||||
GETTEXT_TRIGGERS = ecpg_gettext
|
||||
|
@ -1,14 +1,14 @@ |
||||
[NO_PID]: ECPGdebug: set to 1 |
||||
[NO_PID]: sqlca: code: 0, state: 00000 |
||||
[NO_PID]: raising sqlcode -220 on line 88: no such connection NULL on line 88 |
||||
[NO_PID]: raising sqlcode -220 on line 88: connection "NULL" does not exist on line 88 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
[NO_PID]: raising sqlcode -220 on line 90: no such connection NULL on line 90 |
||||
[NO_PID]: raising sqlcode -220 on line 90: connection "NULL" does not exist on line 90 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
[NO_PID]: raising sqlcode -220 on line 92: no such connection NULL on line 92 |
||||
[NO_PID]: raising sqlcode -220 on line 92: connection "NULL" does not exist on line 92 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
[NO_PID]: raising sqlcode -220 on line 94: no such connection NULL on line 94 |
||||
[NO_PID]: raising sqlcode -220 on line 94: connection "NULL" does not exist on line 94 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
[NO_PID]: raising sqlcode -220 on line 96: no such connection NULL on line 96 |
||||
[NO_PID]: raising sqlcode -220 on line 96: connection "NULL" does not exist on line 96 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
[NO_PID]: raising sqlcode -220 on line 98: no such connection NULL on line 98 |
||||
[NO_PID]: raising sqlcode -220 on line 98: connection "NULL" does not exist on line 98 |
||||
[NO_PID]: sqlca: code: -220, state: 08003 |
||||
|
Loading…
Reference in new issue