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.
REL7_2_STABLE
Peter Eisentraut 25 years ago
parent 201aa35d2f
commit 2ab0f11a79
  1. 745
      src/bin/psql/describe.c
  2. 5
      src/bin/psql/nls.mk
  3. 4
      src/bin/psql/startup.c

File diff suppressed because it is too large Load Diff

@ -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

@ -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);
}

Loading…
Cancel
Save