NLS for the psql \d family of commands. (E.g., the column headers will

have localized strings.)  Also, modernize the system catalog queries where
appropriate, e.g., with outer joins.
This commit is contained in:
Peter Eisentraut 2001-06-30 17:26:12 +00:00
parent 201aa35d2f
commit 2ab0f11a79
3 changed files with 269 additions and 487 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,6 @@
# $Header: /cvsroot/pgsql/src/bin/psql/nls.mk,v 1.3 2001/06/20 18:25:26 petere Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/nls.mk,v 1.4 2001/06/30 17:26:12 petere Exp $
CATALOG_NAME := psql
AVAIL_LANGUAGES := de fr sv
GETTEXT_FILES := command.c common.c copy.c help.c input.c large_obj.c \
mainloop.c print.c startup.c
# describe.c needs work
mainloop.c print.c startup.c describe.c
GETTEXT_TRIGGERS:= _ psql_error simple_prompt

View File

@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.50 2001/06/02 18:25:18 petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.51 2001/06/30 17:26:12 petere Exp $
*/
#include "postgres_fe.h"
@ -174,7 +174,7 @@ main(int argc, char *argv[])
* by the name on the command line.
*/
if (strcmp(options.username, "\001") == 0)
username = simple_prompt("Username: ", 100, true);
username = simple_prompt("User name: ", 100, true);
else
username = strdup(options.username);
}