Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnOal-0002GC-UH for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Aug 2017 12:29:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dnOal-0002Fb-H4 for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Aug 2017 12:29:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnOa3-0007p7-9W for pgsql-bugs@postgresql.org; Thu, 31 Aug 2017 12:28:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnOa0-0005tB-Sd for pgsql-bugs@postgresql.org; Thu, 31 Aug 2017 12:28:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7VCSFTm025167; Thu, 31 Aug 2017 08:28:15 -0400 From: Tom Lane To: Michael Paquier cc: Daniele Varrazzo , pgsql-bugs Subject: Re: macro concatenation fools gettext In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 31 Aug 2017 18:01:05 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25165.1504182495.1@sss.pgh.pa.us> Date: Thu, 31 Aug 2017 08:28:15 -0400 Message-ID: <25166.1504182495@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > On Thu, Aug 31, 2017 at 9:41 AM, Daniele Varrazzo > wrote: >> the part after the macro is lost and I'm not sure if it will "work" by >> returning an half-translated sentence, or not work at all and return >> an English sentence, or return only the first part of the sentence, or >> explode... > This has been already reported a couple of days ago. I have produced a > patch here: Yeah, but this is just fixing the one occurrence. It'd be nice if we could have some guarantee that the same thing hasn't been done elsewhere. No idea whether gettext itself could be taught to complain. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs