diff options
| author | Peter Eisentraut | 2004-11-27 22:44:15 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2004-11-27 22:44:15 +0000 |
| commit | 99b735cc03e51c330c623810af476c1647308b49 (patch) | |
| tree | 0ff7cee856d9bc8e5874eec83191373d3c1900da /src/port/dirmod.c | |
| parent | a420b76ca5ca3bf4bddded0ace5186c371961426 (diff) | |
Work around lack of NLS support in libpgport by making those components
who use it scan the relevant source files for their own catalog. It
creates a bit of duplicate work for translators, but it gets the job done
for now.
Diffstat (limited to 'src/port/dirmod.c')
| -rw-r--r-- | src/port/dirmod.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c index 0443b600e1c..445fd95fa14 100644 --- a/src/port/dirmod.c +++ b/src/port/dirmod.c @@ -10,7 +10,7 @@ * Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.32 2004/10/28 22:09:31 tgl Exp $ + * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.33 2004/11/27 22:44:15 petere Exp $ * *------------------------------------------------------------------------- */ @@ -40,8 +40,6 @@ #endif #endif -#define _(x) gettext((x)) - #ifndef FRONTEND /* @@ -74,7 +72,7 @@ fe_palloc(Size size) if ((res = malloc(size)) == NULL) { - fprintf(stderr, _("out of memory\n")); + fprintf(stderr, gettext("out of memory\n")); exit(1); } return res; @@ -87,7 +85,7 @@ fe_pstrdup(const char *string) if ((res = strdup(string)) == NULL) { - fprintf(stderr, _("out of memory\n")); + fprintf(stderr, gettext("out of memory\n")); exit(1); } return res; @@ -100,7 +98,7 @@ fe_repalloc(void *pointer, Size size) if ((res = realloc(pointer, size)) == NULL) { - fprintf(stderr, _("out of memory\n")); + fprintf(stderr, gettext("out of memory\n")); exit(1); } return res; |
