Hi

I found the ecpg programs can not output the native language messages which
defined in ecpglib6-9.x.mo.
The reason is a misstake in "src/interfaces/ecpg/ecpglib/misc.c",
and i mad a patch for that.

Chen Huajun

diff --git a/postgresql-9.1.4org/src/interfaces/ecpg/ecpglib/misc.c 
b/postgresql-9.1.4new/src/interfaces/ecpg/ecpglib/misc.c
index c29f933..ef7e634 100644
--- a/postgresql-9.1.4org/src/interfaces/ecpg/ecpglib/misc.c
+++ b/postgresql-9.1.4new/src/interfaces/ecpg/ecpglib/misc.c
@@ -497,7 +497,7 @@ ecpg_gettext(const char *msgid)
 #endif
        }
 
-       return dgettext(PG_TEXTDOMAIN("ecpg"), msgid);
+       return dgettext(PG_TEXTDOMAIN("ecpglib"), msgid);
 }
 #endif   /* ENABLE_NLS */
 
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to