Subject: Re: XML based application resources?
From: "Loren Halvorson" <[EMAIL PROTECTED]>
 ===
1) if you do something like this, you may want to look at TMX.  It's an XML
format well-suited for this application.  Plus there is tool support. Info
here: http://lisa.org/tmx/  Once upon a time we wrote a subclass of
MessageResources that could read TMX files.  I posted the source here
http://www.thedivers.com/struts/ in case anyone is interested in it.

2) This is a nifty open-source tool from IBM I stumbled upon one day for
managing multiple property files should you decide to stick with them:
http://oss.software.ibm.com/icu4j/demo_tools/RBManager.html  Coincidently,
it also exports TMX files

"Davor Cengija" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Is there an extension or maybe some trick in Struts which would allow me
to
> have xml-based application resource files? It is very complicated to
> maintain 4 or even more .properties files in different languages. What I'd
> like to have is a single xml file with all the translations in it,
> something like this:
>
> <ApplicationResources>
>   <message key="color">
>     <value lang="en_US">Color</value>
>     <value lang="de">Farbe</value>
>     <value lang="hr">Boja</value>
>   </message>
>   <!-- etc... -->
> </ApplicationResources>
>
> Thanks
> --
> Davor Cengija
> [EMAIL PROTECTED]
> =============================
> "Nicht in die Augen bringen!"



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to