Re: more message fixes
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org, pgsql-translators@lists.postgresql.org
Date: 2019-05-15T21:48:01Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> 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 = false and enabled = true are mutually exclusive options")));
+ errmsg("%s and %s are mutually exclusive options",
+ "connect = false", "enabled = true")));
- (errmsg("CREATE_REPLICATION_SLOT ... USE_SNAPSHOT "
- "must not be called in a subtransaction")));
+ (errmsg("%s must not be called in a subtransaction",
+ "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
Commits
-
More message style fixes
- 75445c1515ff 12.0 landed