diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-03-26 22:26:08 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-03-26 22:26:08 +0000 |
commit | 8032d76b5bcb037e6bcb4b5615432d4f3842c523 (patch) | |
tree | aec09ebeb02b20d8f0b9833f819fcd60ae315d07 /src/interfaces/ecpg/preproc/variable.c | |
parent | 845693f70f9c49ada509187b153848c47a32b530 (diff) | |
download | postgresql-8032d76b5bcb037e6bcb4b5615432d4f3842c523.tar.gz postgresql-8032d76b5bcb037e6bcb4b5615432d4f3842c523.zip |
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/interfaces/ecpg/preproc/variable.c')
-rw-r--r-- | src/interfaces/ecpg/preproc/variable.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c index 9dbe589b920..55ff8d23c8c 100644 --- a/src/interfaces/ecpg/preproc/variable.c +++ b/src/interfaces/ecpg/preproc/variable.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/variable.c,v 1.47 2009/01/26 10:19:44 petere Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/variable.c,v 1.48 2009/03/26 22:26:08 petere Exp $ */ #include "postgres_fe.h" @@ -496,7 +496,9 @@ adjust_array(enum ECPGttype type_enum, char **dimension, char **length, char *ty } if (pointer_len > 2) - mmerror(PARSE_ERROR, ET_FATAL, "multilevel pointers (more than 2 levels) are not supported; found %d levels", pointer_len); + mmerror(PARSE_ERROR, ET_FATAL, ngettext("multilevel pointers (more than 2 levels) are not supported; found %d level", + "multilevel pointers (more than 2 levels) are not supported; found %d levels", pointer_len), + pointer_len); if (pointer_len > 1 && type_enum != ECPGt_char && type_enum != ECPGt_unsigned_char) mmerror(PARSE_ERROR, ET_FATAL, "pointer to pointer is not supported for this data type"); |