diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-01-02 13:26:54 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-01-02 13:26:54 +0000 |
commit | a3114e52f6e2ba80ad2236d9f381910d95061e6a (patch) | |
tree | b2e0b0cbed403352cd30c90344819d3f3aa796eb /src | |
parent | 184341309ef08523290e18586485d395be0f9893 (diff) | |
download | postgresql-a3114e52f6e2ba80ad2236d9f381910d95061e6a.tar.gz postgresql-a3114e52f6e2ba80ad2236d9f381910d95061e6a.zip |
Split the ecpg translation support into a separate catalog for the ecpg
preprocessor and the library. This is useful for a number of reasons:
* The preprocessor and the library are in some cases installed in separate
packages and used by different classes of users.
* The library MO files need a different versioning scheme to account for the
soname.
* The makefiles are simpler, more robust, and easier to maintain this way.
(NLS web site was prone to break everytime a build rule changes.)
* Translators might choose to focus on the ecpglib, because that is more
user-facing.
* There was virtually no overlap, so nothing is lost.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/misc.c | 4 | ||||
-rw-r--r-- | src/interfaces/ecpg/ecpglib/nls.mk | 5 | ||||
-rw-r--r-- | src/interfaces/ecpg/nls.mk | 31 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/nls.mk | 5 |
4 files changed, 12 insertions, 33 deletions
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c index 914ebe7a47d..242ab0a7d65 100644 --- a/src/interfaces/ecpg/ecpglib/misc.c +++ b/src/interfaces/ecpg/ecpglib/misc.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.46 2008/12/15 19:07:48 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.47 2009/01/02 13:26:54 petere Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -476,7 +476,7 @@ ecpg_gettext(const char *msgid) ldir = getenv("PGLOCALEDIR"); if (!ldir) ldir = LOCALEDIR; - bindtextdomain(PG_TEXTDOMAIN("ecpg"), ldir); + bindtextdomain(PG_TEXTDOMAIN("ecpglib"), ldir); #ifdef WIN32 SetLastError(save_errno); #else diff --git a/src/interfaces/ecpg/ecpglib/nls.mk b/src/interfaces/ecpg/ecpglib/nls.mk new file mode 100644 index 00000000000..ebe2082d8bc --- /dev/null +++ b/src/interfaces/ecpg/ecpglib/nls.mk @@ -0,0 +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 diff --git a/src/interfaces/ecpg/nls.mk b/src/interfaces/ecpg/nls.mk deleted file mode 100644 index 99957fde7b3..00000000000 --- a/src/interfaces/ecpg/nls.mk +++ /dev/null @@ -1,31 +0,0 @@ -# $PostgreSQL $ -CATALOG_NAME = ecpg -AVAIL_LANGUAGES = -GETTEXT_FILES = \ - compatlib/informix.c \ - ecpglib/connect.c \ - ecpglib/data.c \ - ecpglib/descriptor.c \ - ecpglib/error.c \ - ecpglib/execute.c \ - ecpglib/misc.c \ - ecpglib/prepare.c \ - include/ecpglib.h \ - preproc/descriptor.c \ - preproc/ecpg.c \ - preproc/pgc.c \ - preproc/preproc.c \ - preproc/type.c \ - preproc/variable.c -GETTEXT_TRIGGERS = _ mmerror:3 ecpg_gettext ecpg_log:1 - - -# Without these rules, make will invoke predefined implicit rules using "lex" -# and "yacc", which we don't want. The prerequisites should be exactly the -# same as in preproc/Makefile. - -$(srcdir)/preproc/preproc.c: preproc/preproc.y - $(MAKE) -C preproc preproc.c - -$(srcdir)/preproc/pgc.c: preproc/pgc.l - $(MAKE) -C preproc pgc.c diff --git a/src/interfaces/ecpg/preproc/nls.mk b/src/interfaces/ecpg/preproc/nls.mk new file mode 100644 index 00000000000..25a62774f6a --- /dev/null +++ b/src/interfaces/ecpg/preproc/nls.mk @@ -0,0 +1,5 @@ +# $PostgreSQL $ +CATALOG_NAME = ecpg +AVAIL_LANGUAGES = +GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c +GETTEXT_TRIGGERS = _ mmerror:3 |