Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: jd(at)commandprompt(dot)com, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)
Date: 2009-01-07 01:51:05
Message-ID: 200901070151.n071p5205489@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > Alvaro Herrera wrote:
> > > Bruce Momjian wrote:
> > >
> > > > Informational
> > > > Modifiers: S = show system objects + = Additional detail
> > > > \l[+] list all databases
> > > > \d[S+] list tables, views, and sequences
> > > > \d[S+] NAME describe table, view, sequence, or index
> > > > \da[S] [PATTERN] list aggregate functions
> > >
> > > If we do this, is there a way to abstract the translation marker _()
> > > from the alignment whitespace?
> >
> > So they don't have to re-translate?
>
> No, so that the translators don't have to worry about getting alignment
> right; and also so that they don't have to translate \\d[S+] etc which
> obviously doesn't need any translation.

I am thinking we can do:

fprintf(output, " \\da[S] %.9s %s\n", _("[PATTERN]"),
_("list aggregate"));

What do you think?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2009-01-07 02:13:17 Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)
Previous Message Alvaro Herrera 2009-01-07 01:36:13 Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)

Browse pgsql-hackers by date

  From Date Subject
Next Message ITAGAKI Takahiro 2009-01-07 02:08:27 Re: SQL/MED dummy vs postgresql wrapper
Previous Message Alvaro Herrera 2009-01-07 01:36:13 Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)