diff options
author | Peter Eisentraut | 2009-03-26 22:26:08 +0000 |
---|---|---|
committer | Peter Eisentraut | 2009-03-26 22:26:08 +0000 |
commit | 8032d76b5bcb037e6bcb4b5615432d4f3842c523 (patch) | |
tree | aec09ebeb02b20d8f0b9833f819fcd60ae315d07 /src/include/c.h | |
parent | 845693f70f9c49ada509187b153848c47a32b530 (diff) |
Gettext plural support
In the backend, I changed only a handful of exemplary or important-looking
instances to make use of the plural support; there is probably more work
there. For the rest of the source, this should cover all relevant cases.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 9a6ba3cf2a4..8443c51e780 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.234 2009/01/01 17:23:55 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.235 2009/03/26 22:26:07 petere Exp $ * *------------------------------------------------------------------------- */ @@ -97,6 +97,8 @@ #else #define gettext(x) (x) #define dgettext(d,x) (x) +#define ngettext(s,p,n) ((n) == 1 ? (s) : (p)) +#define dngettext(d,s,p,n) ((n) == 1 ? (s) : (p)) #endif /* |