pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: fixing pg_upgrade strings (was Re: pgsql: Add new files to nls.mk and add translation)
Date: Thu, 03 Aug 2017 00:15:52 -0400
Message-ID: <13948.1501733752@sss.pgh.pa.us> (raw)
In-Reply-To: <20170803034708.3neklemptkybqreu@alvherre.pgsql>
References: <20170803034708.3neklemptkybqreu@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Alvaro Herrera <alvherre@2ndquadrant.com> 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 environment 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 resides"));

> 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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (2+ messages)

Message-ID: <13948.1501733752@sss.pgh.pa.us>
Permalink:  ../13948.1501733752@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13948.1501733752@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, peter_e@gmx.net, 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: <13948.1501733752@sss.pgh.pa.us>
  References: <20170803034708.3neklemptkybqreu@alvherre.pgsql> <13948.1501733752@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox