1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Append major version number and for libraries soname major version number

to the gettext domain name, to simplify parallel installations.

Also, rename set_text_domain() to pg_bindtextdomain(), because that is what
it does.
This commit is contained in:
Peter Eisentraut
2008-12-11 07:34:09 +00:00
parent 55368223cd
commit 218b4e8dd8
39 changed files with 125 additions and 78 deletions

View File

@ -23,7 +23,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.136 2008/10/27 09:42:31 mha Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.137 2008/12/11 07:34:09 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -1166,7 +1166,7 @@ libpq_gettext(const char *msgid)
ldir = getenv("PGLOCALEDIR");
if (!ldir)
ldir = LOCALEDIR;
bindtextdomain("libpq", ldir);
bindtextdomain(PG_TEXTDOMAIN("libpq"), ldir);
#ifdef WIN32
SetLastError(save_errno);
#else
@ -1174,7 +1174,7 @@ libpq_gettext(const char *msgid)
#endif
}
return dgettext("libpq", msgid);
return dgettext(PG_TEXTDOMAIN("libpq"), msgid);
}
#endif /* ENABLE_NLS */