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 1hR1ku-0005Px-83 for pgsql-translators@arkaria.postgresql.org; Wed, 15 May 2019 21:48:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hR1kt-0000t6-0z for pgsql-translators@arkaria.postgresql.org; Wed, 15 May 2019 21:48:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hR1ks-0000pd-PR; Wed, 15 May 2019 21:48:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hR1kq-0003XD-O1; Wed, 15 May 2019 21:48:06 +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 x4FLm1GJ017814; Wed, 15 May 2019 17:48:01 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@lists.postgresql.org, pgsql-translators@lists.postgresql.org Subject: Re: more message fixes In-reply-to: <20190515183005.GA26486@alvherre.pgsql> References: <20190515183005.GA26486@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 15 May 2019 14:30:05 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17812.1557956881.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 15 May 2019 17:48:01 -0400 Message-ID: <17813.1557956881@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Here's a bunch of message fixes in the postgres.po module. Please > comment if anything seems amiss. These sorts of changes trouble me a bit from a translatability standpoint: - errmsg("connect =3D false and enabled =3D true are m= utually exclusive options"))); + errmsg("%s and %s are mutually exclusive options", + "connect =3D false", "enabled =3D true"))); - (errmsg("CREATE_REPLICATION_SLOT ... USE_SNAPSHOT= " - "must not be called in a subtransaction")= )); + (errmsg("%s must not be called in a subtransactio= n", + "CREATE_REPLICATION_SLOT ... USE_SNAPSHOT= "))); A translator might expect the %s's to represent single words. I think at least you'd want a translator: comment to warn about what the insertion will be. + /* XXX is it okay to use %d for BlockNumber everywhere? */ BlockNumber should be %u, no? regards, tom lane