Re: [PATCHES] libpq events patch (with sgml docs)

From: Andrew Chernow <ac(at)esilo(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Merlin Moncure <mmoncure(at)gmail(dot)com>
Subject: Re: [PATCHES] libpq events patch (with sgml docs)
Date: 2008-09-05 19:40:56
Message-ID: 48C18B48.509@esilo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Alvaro Herrera wrote:
> Andrew Chernow escribió:
>
>> ! printfPQExpBuffer(&conn->errorMessage,
>> ! libpq_gettext("PGEventProc \"%s\" failed during PGEVT_CONNRESET event\n"),
>> ! conn->events[i].name);
>> ! else
>> ! printfPQExpBuffer(&conn->errorMessage,
>> ! libpq_gettext("PGEventProc \"addr:%p\" failed during PGEVT_CONNRESET event\n"),
>> ! conn->events[i].proc);
>> ! break;
>
> Please don't do this. It creates extra unnecessary work for
> translators. Better create a local var, assign either "name" or
> "addr:<value>" to it, and then use that in the message.
>
> (For the record, I'd prefer that the name is made mandatory.)
>

The name is now mandatory, no need to toggle the format string anymore.

--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

Attachment Content-Type Size
libpq-events.patch text/plain 50.3 KB
libpq-events.tgz application/x-compressed 13.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-09-05 19:48:53 Re: [PATCHES] libpq events patch (with sgml docs)
Previous Message Joshua Drake 2008-09-05 19:27:08 Re: reducing statistics write overhead

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2008-09-05 19:48:53 Re: [PATCHES] libpq events patch (with sgml docs)
Previous Message Alvaro Herrera 2008-09-05 19:22:15 Re: libpq events patch (with sgml docs)