Re: String changes - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: String changes
Date
Msg-id 200303101545.h2AFjZM26379@candle.pha.pa.us
Whole thread Raw
In response to String changes  (Dennis Björklund <db@zigo.dhs.org>)
List pgsql-patches
I have applied your space change to \connect help, and cleaned up the
pager setting display.  Patch attached.

---------------------------------------------------------------------------

Dennis Bj�rklund wrote:
> Here are some small string changes for psql.
>
> --
> /Dennis

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: src/bin/psql/command.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/command.c,v
retrieving revision 1.90
diff -c -c -r1.90 command.c
*** src/bin/psql/command.c    19 Feb 2003 04:04:04 -0000    1.90
--- src/bin/psql/command.c    10 Mar 2003 15:30:08 -0000
***************
*** 1899,1909 ****
          if (!quiet)
          {
              if (popt->topt.pager == 1)
!                 puts(gettext("Using pager is on."));
              else if (popt->topt.pager == 2)
!                 puts(gettext("Using pager is always."));
              else
!                 puts(gettext("Using pager is off."));
          }
      }

--- 1899,1909 ----
          if (!quiet)
          {
              if (popt->topt.pager == 1)
!                 puts(gettext("Pager is on (for long output)."));
              else if (popt->topt.pager == 2)
!                 puts(gettext("Pager is always (used)."));
              else
!                 puts(gettext("Pager is off."));
          }
      }

Index: src/bin/psql/help.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/help.c,v
retrieving revision 1.69
diff -c -c -r1.69 help.c
*** src/bin/psql/help.c    7 Jan 2003 20:56:07 -0000    1.69
--- src/bin/psql/help.c    10 Mar 2003 15:30:12 -0000
***************
*** 173,179 ****
       */
      fprintf(output, _("General\n"));
      fprintf(output, _("  \\c[onnect] [DBNAME|- [USER]]\n"
!                       "                connect to new database (currently \"%s\")\n"),
              PQdb(pset.db));
      fprintf(output, _("  \\cd [DIR]      change the current working directory\n"));
      fprintf(output, _("  \\copyright     show PostgreSQL usage and distribution terms\n"));
--- 173,179 ----
       */
      fprintf(output, _("General\n"));
      fprintf(output, _("  \\c[onnect] [DBNAME|- [USER]]\n"
!                       "                 connect to new database (currently \"%s\")\n"),
              PQdb(pset.db));
      fprintf(output, _("  \\cd [DIR]      change the current working directory\n"));
      fprintf(output, _("  \\copyright     show PostgreSQL usage and distribution terms\n"));

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: new typeconv example (was [HACKERS] More outdated documentation)
Next
From: Neil Conway
Date:
Subject: spelling corrections