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 1h2FIY-0006zh-OQ for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 13:12:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h2FIX-0007bq-9V for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 13:12:25 +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 1h2FIW-0007XD-RB for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 13:12:25 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2FIT-0002zx-LY for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 13:12:23 +0000 Received: by mail-qt1-x843.google.com with SMTP id d2so21051464qti.11 for ; Fri, 08 Mar 2019 05:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=YKdlQbydeg5Tel6yZT/WMW+LjRqhyhqSyoGHh6Kd8y8=; b=ifuKFCDp0OeAkv0HsVM/ltbH14ls37t0l4B/lSp5y8JHYOuKY6moXd9KeTjVVkSCJO NThHqkQLNq6MuAstB1lEePvhnNUyzBZLtrHHlYxQ44tut+6fbDOiFAKjt9Dh7MQO1qto A8zMrckcziiYBGMtrSBqT3Sg7phnw9BOkyQjycFkH2rqmNN1bfMWyX/bAupSb8c85QrD UJdrn3deWmyEEF/W9g0RgA2r8Gx3KEa++PMQdXCOrBicFsdrXf3y5dpXUC5AEJ/PrV2h VbZmwmhJuNNIq5dYEDBtCCmyClJTPVcdYgS6ceE2zCEZsw8OwGljpkYBDtjpYChwL/zm kkzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=YKdlQbydeg5Tel6yZT/WMW+LjRqhyhqSyoGHh6Kd8y8=; b=iDkKi6idqpzNNQLtE66NHp6z7tBTmpX2fkBktNXYDGOM1RrCK3Dh/+Ei2yW6+ZS+sg qR+W1M1y9NNUDhIoLAa7a697EqbUGQx2T6pDyK+3wfNd8520smTKz+nTfOZozOjLAG98 qzq4ijL4nDupcu7lURzSSzsJw2TMCEmjdjuEBfevit2/xtKSEggsJdUXRc1ameeQ2bYh /PPMmVM5/gCNTQ0c2dkfZLqMcH2SsD4R4PHnmrX7q9JW4HKX6moOfyvtkPTkj8ZmLy10 1fqzzoejzJ2UImJ8ftK/XNC1Y3G24f1HL92NFHDSdaRutqg+b2NGIwcBKUiIfPNUn30k YtCg== X-Gm-Message-State: APjAAAVEe+fHen0EwHsdHsqDfFfROc0m2TXXK444bACoHEt8MN6039sf uGhulk50vSz6ELb0CR/Bt7q2cg== X-Google-Smtp-Source: APXvYqwwUyrT0FOkbRTwoN6vwsz2EVFri3/ogFdjmTVeuAiBGXVglaGa9/sB/ile0uHHLVhvmZ+7lw== X-Received: by 2002:ac8:191b:: with SMTP id t27mr15047780qtj.163.1552050740520; Fri, 08 Mar 2019 05:12:20 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id q46sm5442303qtf.16.2019.03.08.05.12.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 05:12:19 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B24AB1208DD; Fri, 8 Mar 2019 10:12:17 -0300 (-03) Date: Fri, 8 Mar 2019 10:12:17 -0300 From: Alvaro Herrera To: Christoph Berg Cc: Peter Eisentraut , Tom Lane , Daniel Gustafsson , pgsql-hackers@lists.postgresql.org Subject: Re: Reporting script runtimes in pg_regress Message-ID: <20190308131217.GA13043@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190308130234.GD11419@msg.df7cb.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services