Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-07 Thread David Johnston
On Thu, Aug 7, 2014 at 5:53 PM, Tom Lane wrote: > David G Johnston writes: > > Tom Lane-2 wrote > >> Surely that was meant to read "invalid number OF arguments". The > errhint > >> is only charitably described as English, as well. I'd suggest something > >> like "Arguments of json_build_object

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-07 Thread Tom Lane
David G Johnston writes: > Tom Lane-2 wrote >> Surely that was meant to read "invalid number OF arguments". The errhint >> is only charitably described as English, as well. I'd suggest something >> like "Arguments of json_build_object() must be pairs of keys and values." >> --- but maybe someone

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-07 Thread David G Johnston
Tom Lane-2 wrote > Robert Haas < > robertmhaas@ > > writes: >> On Sat, Aug 2, 2014 at 9:15 AM, Daniele Varrazzo >> < > daniele.varrazzo@ > > wrote: >>> I'd definitely replace /arg/argument/. Furthermore I'd avoid the form >>> "argument 1: something is wrong": the string is likely to end up in >

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-07 Thread Tom Lane
Robert Haas writes: > On Sat, Aug 2, 2014 at 9:15 AM, Daniele Varrazzo > wrote: >> I'd definitely replace /arg/argument/. Furthermore I'd avoid the form >> "argument 1: something is wrong": the string is likely to end up in >> sentences with other colons so I'd rather use "something is wrong at >

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-07 Thread Robert Haas
On Wed, Aug 6, 2014 at 7:20 PM, Jeff Janes wrote: > On Wed, Aug 6, 2014 at 8:35 AM, Robert Haas wrote: >> >> On Tue, Aug 5, 2014 at 6:05 PM, Jeff Janes wrote: >> > I think you missed one of the regression tests, see attached >> >> Woops. Thanks, committed. > > Thanks. > > It needs to go into 9_

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-06 Thread Michael Paquier
On Thu, Aug 7, 2014 at 8:20 AM, Jeff Janes wrote: > It needs to go into 9_4_STABLE as well. It is worth noticing that the buildfarm is completely in red because this patch was not backpatched to REL9_4_STABLE: http://buildfarm.postgresql.org/cgi-bin/show_status.pl Regards, -- Michael -- Sent v

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-06 Thread Jeff Janes
On Wed, Aug 6, 2014 at 8:35 AM, Robert Haas wrote: > On Tue, Aug 5, 2014 at 6:05 PM, Jeff Janes wrote: > > I think you missed one of the regression tests, see attached > > Woops. Thanks, committed. > Thanks. It needs to go into 9_4_STABLE as well. Cheers, Jeff

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-06 Thread Robert Haas
On Tue, Aug 5, 2014 at 6:05 PM, Jeff Janes wrote: > I think you missed one of the regression tests, see attached Woops. Thanks, committed. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgre

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-05 Thread Jeff Janes
On Tue, Aug 5, 2014 at 9:35 AM, Robert Haas wrote: > On Sat, Aug 2, 2014 at 9:15 AM, Daniele Varrazzo > wrote: > > I'd definitely replace /arg/argument/. Furthermore I'd avoid the form > > "argument 1: something is wrong": the string is likely to end up in > > sentences with other colons so I'd

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-05 Thread Robert Haas
On Sat, Aug 2, 2014 at 9:15 AM, Daniele Varrazzo wrote: > I'd definitely replace /arg/argument/. Furthermore I'd avoid the form > "argument 1: something is wrong": the string is likely to end up in > sentences with other colons so I'd rather use "something is wrong at > argument 1". > > Is the pat

Re: [HACKERS] Fixed redundant i18n strings in json

2014-08-02 Thread Daniele Varrazzo
I'd definitely replace /arg/argument/. Furthermore I'd avoid the form "argument 1: something is wrong": the string is likely to end up in sentences with other colons so I'd rather use "something is wrong at argument 1". Is the patch attached better? Cheers, -- Daniele On Thu, Jul 31, 2014 at 1:

Re: [HACKERS] Fixed redundant i18n strings in json

2014-07-31 Thread Robert Haas
On Wed, Jul 30, 2014 at 2:59 PM, Daniele Varrazzo wrote: > Please find attached a small tweak to a couple of strings found while > updating translations. The %d version is already used elsewhere in the > same file. Probably not a bad idea, but aren't these strings pretty awful anyway? At a minim

[HACKERS] Fixed redundant i18n strings in json

2014-07-30 Thread Daniele Varrazzo
Please find attached a small tweak to a couple of strings found while updating translations. The %d version is already used elsewhere in the same file. -- Daniele diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c index 2f99908..2aa27cc 100644 --- a/src/backend/utils/adt/json