From 20aaf64252ab9ec52341aab26578fc540929152c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 14 Sep 2003 22:37:13 +0000 Subject: Allow translation of SQL help in psql. --- src/bin/psql/help.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/bin/psql/help.c') diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index f6e0f3961b0..fd13e199dcb 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.79 2003/09/11 16:22:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.80 2003/09/14 22:37:13 petere Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -338,9 +338,11 @@ helpSQL(const char *topic, unsigned short int pager) { help_found = true; fprintf(output, _("Command: %s\n" - "Description: %s\n" - "Syntax:\n%s\n\n"), - QL_HELP[i].cmd, QL_HELP[i].help, QL_HELP[i].syntax); + "Description: %s\n" + "Syntax:\n%s\n\n"), + QL_HELP[i].cmd, + gettext(QL_HELP[i].help), + gettext(QL_HELP[i].syntax)); /* If we have an exact match, exit. Fixes \h SELECT */ if (strcasecmp(topic, QL_HELP[i].cmd) == 0) break; -- cgit v1.2.3