From: Graeme J S. <web...@gj...> - 2005-05-12 15:07:39
|
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 - |