Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3114e5

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 separatepackages and used by different classes of users.* The library MO files need a different versioning scheme to account for thesoname.* 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 moreuser-facing.* There was virtually no overlap, so nothing is lost.
1 parent1843413 commita3114e5

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
#definePOSTGRES_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
#ifdefWIN32
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)

[8]ページ先頭

©2009-2025 Movatter.jp