Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd7YK-0004BX-LB for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Aug 2017 04:16: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 1dd7YJ-0002Hr-T6 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Aug 2017 04:16:03 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dd7YI-0002Gu-SE for pgsql-hackers@postgresql.org; Thu, 03 Aug 2017 04:16:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dd7YF-0006Ak-81 for pgsql-hackers@postgresql.org; Thu, 03 Aug 2017 04:16:02 +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 v734FqM1013949; Thu, 3 Aug 2017 00:15:52 -0400 From: Tom Lane To: Alvaro Herrera cc: Peter Eisentraut , pgsql-hackers@postgresql.org Subject: Re: fixing pg_upgrade strings (was Re: pgsql: Add new files to nls.mk and add translation) In-reply-to: <20170803034708.3neklemptkybqreu@alvherre.pgsql> References: <20170803034708.3neklemptkybqreu@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 02 Aug 2017 23:47:08 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13947.1501733752.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Aug 2017 00:15:52 -0400 Message-ID: <13948.1501733752@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > It does this: > pg_fatal("You must identify the directory where the %s.\n" > "Please use the %s command-line option or the %s env= ironment variable.\n", > description, cmdLineOption, envVarName); > and the callsites are like this: > check_required_directory(&new_cluster.bindir, NULL, "PGBINNEW", "-B", > _("new cluster binaries reside")); > check_required_directory(&old_cluster.pgdata, &old_cluster.pgconfig, > "PGDATAOLD", "-d", _("old cluster data resid= es")); > note the declensions don't match even in the English original. FWIW, I think the English declensions are fine as long as you consider "data" to be a group noun --- "data reside" would read a bit funny IMO. But certainly this is an utter translatability fail. Maybe pass a boolean to indicate one of two first sentences to use? Or actually, might as well consider the entire message string to be one of two translatable options. It's not like we have a need to indicate more than one option or envar name for each case. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers