Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6YFw-0002Bm-Sk for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 10:15:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6YFv-0004ld-IN for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 10:15:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6YFv-0004lN-6z for pgsql-hackers@lists.postgresql.org; Wed, 20 Mar 2019 10:15:31 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6YFs-0000pz-E5 for pgsql-hackers@lists.postgresql.org; Wed, 20 Mar 2019 10:15:30 +0000 Received: from Davids-MacBook.local (unknown [41.136.236.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id B88255468B; Wed, 20 Mar 2019 10:15:24 +0000 (UTC) Subject: Re: Re: Reporting script runtimes in pg_regress To: Christoph Berg Cc: Alvaro Herrera , Peter Eisentraut , Tom Lane , Daniel Gustafsson , pgsql-hackers@lists.postgresql.org References: <20190308131217.GA13043@alvherre.pgsql> From: David Steele Message-ID: <8a85bece-b18f-0433-acf3-d106b31f0271@pgmasters.net> Date: Wed, 20 Mar 2019 14:15:15 +0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190308131217.GA13043@alvherre.pgsql> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Christophe, On 3/8/19 5:12 PM, Alvaro Herrera wrote: > On 2019-Mar-08, Christoph Berg wrote: > >> Re: Peter Eisentraut 2019-03-08 <3eb194cf-b878-1f63-8623-6d6add0ed0b7@2ndquadrant.com> >>> On 2019-02-21 10:37, Christoph Berg wrote: >>>> diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c >>>> index a18a6f6c45..8080626e94 100644 >>>> --- a/src/test/regress/pg_regress.c >>>> +++ b/src/test/regress/pg_regress.c >>>> @@ -1794,12 +1794,14 @@ run_schedule(const char *schedule, test_function tfunc) >>>> else >>>> { >>>> status(_("FAILED")); >>>> + status(" "); /* align with failed (ignored) */ >>>> fail_count++; >>>> } >>> >>> So an issue here is that in theory "FAILED" etc. are marked for >>> translation but your spacers do not take that into account. Personally, >>> I have no ambition to translate pg_regress, so we could remove all that. >>> But it should be done consistently in either case. >> >> Oh, right. So the way to go would be to use _("FAILED "), and >> ask translators to use the same length. > > Note there's no translation for pg_regress. All these _() markers are > currently dead code. It seems hard to become motivated to translate > that kind of program. I don't think it has much value, myself. This patch has been "Waiting on Author" since March 8th. Do you know when you'll have a new version ready? Regards, -- -David david@pgmasters.net