Our current use of gettext() calls is inconsistent. We use:
#define _(x) gettext((x))
in various C files to abreviate the use of gettext() around all string.
This patch makes that consistent by moving the define to include/c.h.
It also adds some missing gettext usage, particularly in src/port and
I found that perl also defines _(x) so I undefined this in plperl. I
don't see c.h is externally used so it seems safe to just use it
consistently in our code.
The attached patch makes these adjustments.
Also, what is gettext_noop(x) used for? It seems it is just used to
mark strings that should not be translated, but why are certain strings
not to be translated?
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
pgsql-patches by date
|Next:||From: Bruce Momjian||Date: 2005-02-14 23:25:04|
|Subject: Re: WAL: O_DIRECT and multipage-writer|
|Previous:||From: Bruce Momjian||Date: 2005-02-14 00:06:34|
|Subject: Re: [pgsql-hackers-win32] Repleacement for src/port/snprintf.c|