Re: Support for internationalization

Graeme J Sweeney <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
On Wed, 11 May 2005, Marc Palmer wrote:

> Ankur G35 Saxena wrote:

<snip/>

>> How do i go about doing this? Anything special I have to do, some
>> examples would be great. Also when I put text into the webmacro file
>> from java, can I put any char(unicode for other languages) since I
>> will picking these translated words from an XML file.

This might help 
http://www.w3.org/TR/REC-html40/struct/dirlang.html

> The usual approach in JSP-land seems to be creating a ResourceBundle instance 
> per session (assuming the language can be set by the client) and accessing 
> that in the page for all UI strings...

<snip/>

Thats how I did it. The translator was given a XML file which 
was easier for them to handle and with some XSLT it was converted to 
properties file for each locale.

The language bundles were then loaded into the application context and 
passed to the user using their (selected) locale.

-- 
Graeme -


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.