aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-02-22 04:43:23 +0000
committerBruce Momjian <bruce@momjian.us>2005-02-22 04:43:23 +0000
commit0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e (patch)
treeeb42bea6234c92d377cb52257855b4b882120e78 /src/bin/scripts
parent64011b4dce7db05bd7bb1911fe81fcc8f2da75e1 (diff)
downloadpostgresql-0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e.tar.gz
postgresql-0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e.zip
Use _() macro consistently rather than gettext(). Add translation
macros around strings that were missing them.
Diffstat (limited to 'src/bin/scripts')
-rw-r--r--src/bin/scripts/common.c6
-rw-r--r--src/bin/scripts/common.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c
index c84617b3edf..4bffa5003f8 100644
--- a/src/bin/scripts/common.c
+++ b/src/bin/scripts/common.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.16 2005/01/08 22:51:14 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.17 2005/02/22 04:41:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -168,9 +168,9 @@ executeQuery(PGconn *conn, const char *query, const char *progname, bool echo)
int
check_yesno_response(const char *string)
{
- if (strcmp(string, gettext(PG_YESLETTER)) == 0)
+ if (strcmp(string, _(PG_YESLETTER)) == 0)
return 1;
- else if (strcmp(string, gettext(PG_NOLETTER)) == 0)
+ else if (strcmp(string, _(PG_NOLETTER)) == 0)
return 0;
else
return -1;
diff --git a/src/bin/scripts/common.h b/src/bin/scripts/common.h
index 04f8af4f0c2..46e2a610aaa 100644
--- a/src/bin/scripts/common.h
+++ b/src/bin/scripts/common.h
@@ -10,8 +10,6 @@ int optreset;
const char *get_user_name(const char *progname);
-#define _(x) gettext((x))
-
typedef void (*help_handler) (const char *);
void handle_help_version_opts(int argc, char *argv[], const char *fixed_progname, help_handler hlp);