pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Italian translation update and double single quote
Date: Mon, 22 May 2006 02:16:36 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net> (raw)
In-Reply-To: <1144164445.2848.35.camel@localhost>
References: <1144164445.2848.35.camel@localhost>



On Tue, 4 Apr 2006, Giuseppe Sacco wrote:

> I found that messages often display with two single quote ('') instead
> of a single quote. This happens in messages that do not have arguments
> ({0}, {1}, ...).
> I know that if the message include arguments, than all single quotes
> should be doubled. I didn't know what to do when arguments aren't
> present.
>

The translation code did something like this:

if (args != null && message != null) {
     message = MessageFormat.format(message, args);
}
return message;

So if it didn't have arguments it didn't get run through the message 
formatter.  I've adjusted the code to format all messages whether they 
have arguments or not in 8.0, 8.1, and HEAD.

Kris Jurka



view thread (2+ messages)

Message-ID: <Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net

 · 

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-jdbc@postgresql.org
  Cc: books@ejurka.com, giuseppe@eppesuigoccas.homedns.org
  Subject: Re: Italian translation update and double single quote
  In-Reply-To: <Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net>
  References: <1144164445.2848.35.camel@localhost> <Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net>

* 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