Re: i18n

Emiliano <[email protected]> Fri, 11 Apr 2003 08:30:13 +0200
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Tue, Apr 08, 2003 at 02:39:26AM -0700, Adam Megacz wrote:

> > > Definately.  You could use something like xwt.theme("myapp.lang",
> > > "myapp.english") to overlay the english templates onto the lang
> > > templates, which are the ones you instantiate.
> > 
> > But what about parameter positions?
> > 
> >   "Are you sure you want to delete file %file%, dated %date%"
> 
> myapp.lang.areyousure is a String, so you can do this:
> 
>   myapp.lang.areyousure.replace("%file%", "foo.html");

The translation stuff is working wonderfully, and it's drop-dead simple.
When I have my app doing something semi-useful I'll post it somewhere. The
final app will be AGPL, so it could be used as a sample, tutorial,
or whatever.

Emile

_______________________________________________
http://lists.xwt.org/listinfo/dev