Re: XADataSource implementation

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-jdbc(at)postgresql(dot)org, Michael Allman <msa(at)allman(dot)ms>
Subject: Re: XADataSource implementation
Date: 2005-08-28 10:39:23
Message-ID: 4311945B.8090700@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Heikki Linnakangas wrote:

> BTW: How does the translation work? What strings need to be translated?

Usually the only user-visible strings are exception messages. For simple
cases, just wrap the string in a call to org.postgresql.util.GT.tr(). If
there are variable parts to the string, use {0} {1} etc and use the
PSQLException ctor that takes separate substitution values. See the
existing code for examples.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Gagnon 2005-08-28 14:14:03 Re: implementing asynchronous notifications PLEASE CONFIRM MY
Previous Message Heikki Linnakangas 2005-08-28 07:34:17 XADataSource implementation