Re: Italian translation update and double single quote - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Italian translation update and double single quote
Date
Msg-id Pine.BSO.4.63.0605212322580.21575@leary2.csoft.net
Whole thread Raw
In response to Italian translation update and double single quote  (Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>)
Responses Italian translation update
List pgsql-jdbc

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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Updated German translation
Next
From: Kris Jurka
Date:
Subject: Re: how to handle data containing '\0'