Skip to content

Commit a3114e5

Browse files
committed
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.
1 parent 1843413 commit a3114e5

File tree

4 files changed

+12
-33
lines changed

4 files changed

+12
-33
lines changed

src/interfaces/ecpg/ecpglib/misc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.46 2008/12/15 19:07:48 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.47 2009/01/02 13:26:54 petere Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -476,7 +476,7 @@ ecpg_gettext(const char *msgid)
476476
ldir = getenv("PGLOCALEDIR");
477477
if (!ldir)
478478
ldir = LOCALEDIR;
479-
bindtextdomain(PG_TEXTDOMAIN("ecpg"), ldir);
479+
bindtextdomain(PG_TEXTDOMAIN("ecpglib"), ldir);
480480
#ifdef WIN32
481481
SetLastError(save_errno);
482482
#else

src/interfaces/ecpg/ecpglib/nls.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# $PostgreSQL $
2+
CATALOG_NAME = ecpglib
3+
AVAIL_LANGUAGES =
4+
GETTEXT_FILES = ../compatlib/informix.c connect.c data.c descriptor.c error.c execute.c misc.c prepare.c
5+
GETTEXT_TRIGGERS = _ ecpg_gettext ecpg_log

src/interfaces/ecpg/nls.mk

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/interfaces/ecpg/preproc/nls.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# $PostgreSQL $
2+
CATALOG_NAME = ecpg
3+
AVAIL_LANGUAGES =
4+
GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c
5+
GETTEXT_TRIGGERS = _ mmerror:3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy