Re: missing translation marker

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: missing translation marker
Date: 2009-04-15 17:39:52
Message-ID: 13613.1239817192@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> It seems there's a missing gettext() call in new code in hba.c, per the
> patch below. I don't actually like this, but it seems the alternative
> would be to create a variadic function which I believe to be
> overengineering ...

Hmm ... if the second %s here is meant to be a list of auth method
names:

> ereport(LOG, \
> (errcode(ERRCODE_CONFIG_FILE_ERROR), \
> errmsg("authentication option \"%s\" is only valid for authentication methods \"%s\"", \
> - optname, validmethods), \
> + optname, _(validmethods)), \
> errcontext("line %d of configuration file \"%s\"", \
> line_num, HbaFileName))); \

then I argue that putting double quotes around it is wrong, too.

It might be technically correct to quote the individual method names
within the list that's being passed in, but I wouldn't bother.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2009-04-15 17:52:52 Re: Unicode string literals versus the world
Previous Message Tom Lane 2009-04-15 17:23:35 Re: Unicode string literals versus the world