Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
20aaf642
Commit
20aaf642
authored
Sep 14, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow translation of SQL help in psql.
parent
241cea18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
src/bin/psql/create_help.pl
src/bin/psql/create_help.pl
+4
-2
src/bin/psql/help.c
src/bin/psql/help.c
+6
-4
src/bin/psql/nls.mk
src/bin/psql/nls.mk
+3
-3
No files found.
src/bin/psql/create_help.pl
View file @
20aaf642
...
...
@@ -5,7 +5,7 @@
#
# Copyright (c) 2000-2003, PostgreSQL Global Development Group
#
# $Header: /cvsroot/pgsql/src/bin/psql/create_help.pl,v 1.
8 2003/08/04 23:59:40 tgl
Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/create_help.pl,v 1.
9 2003/09/14 22:37:12 petere
Exp $
#################################################################
#
...
...
@@ -51,6 +51,8 @@ print OUT
#ifndef
$define
#define
$define
#define N_(x) (x) /* gettext noop */
struct _helpStruct
{
char *cmd; /* the command name */
...
...
@@ -110,7 +112,7 @@ foreach $file (sort readdir DIR) {
$cmdsynopsis
=~
s/\n/\\n/g
;
$cmdsynopsis
=~
s/\"/\\"/g
;
print
OUT
"
{
\"
$cmdname
\"
,
\n
\"
$cmddesc
\"
,
\n
\"
$cmdsynopsis
\"
},
\n\n
";
print
OUT
"
{
\"
$cmdname
\"
,
\n
N_(
\"
$cmddesc
\"
),
\n
N_(
\"
$cmdsynopsis
\"
)
},
\n\n
";
$count
++
;
}
else
{
...
...
src/bin/psql/help.c
View file @
20aaf642
...
...
@@ -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
;
...
...
src/bin/psql/nls.mk
View file @
20aaf642
# $Header: /cvsroot/pgsql/src/bin/psql/nls.mk,v 1.
9 2003/08/24 21:18:52
petere Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/nls.mk,v 1.
10 2003/09/14 22:37:13
petere Exp $
CATALOG_NAME
:=
psql
AVAIL_LANGUAGES
:=
cs de es fr hu ru sv zh_CN zh_TW
GETTEXT_FILES
:=
command.c common.c copy.c help.c input.c large_obj.c
\
mainloop.c print.c startup.c describe.c
GETTEXT_TRIGGERS
:=
_ psql_error simple_prompt
mainloop.c print.c startup.c describe.c
sql_help.h
GETTEXT_TRIGGERS
:=
_
N_
psql_error simple_prompt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment