pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-jdbc@postgresql.org
Cc: Michael Allman <msa@allman.ms>
Subject: Re: XADataSource implementation
Date: Sun, 28 Aug 2005 22:39:23 +1200
Message-ID: <4311945B.8090700@opencloud.com> (raw)
In-Reply-To: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi>
References: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi>

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



view thread (5+ messages)  latest in thread

Message-ID: <4311945B.8090700@opencloud.com>
Permalink:  ../4311945B.8090700@opencloud.com/
Also on:    postgresql.org/message-id/4311945B.8090700@opencloud.com

 · 

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: oliver@opencloud.com, hlinnaka@iki.fi, msa@allman.ms
  Subject: Re: XADataSource implementation
  In-Reply-To: <4311945B.8090700@opencloud.com>
  References: <Pine.OSF.4.61.0508281032490.283830@kosh.hut.fi> <4311945B.8090700@opencloud.com>

* 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