Link to home
Start Free TrialLog in
Avatar of chainreaction
chainreaction

asked on

multi language - java web application How

Hi, we have manage to complete the system and it's up and running. The future expansion of the system will be to make it localise or multilinguae (multi langauge)

I am wondering how should i start it. I understand Java do support multi language. Can anyone share me their experience on this areas?

tq
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

http://java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/

Takes you through the JSTL fmt tags for localisation of JSP using Message Bundles

Tim
Avatar of chainreaction
chainreaction

ASKER

anyway not to use JSTL? cause i am only using JSP and servlet and object...

Yeah, you can load a ResourceBundle directly, and call getString on it:

http://www.cisco-cert.com/java/Oreilly.Java.Servlet.And.JSP.Cookbook/source/0596005725_jsvltjspckbk-chp-24-sect-5.html

Shows you an example (in a servlet)

Tim
However,

Please do consider Tim's suggestion to use JSTL as you will feel it on how easy it is in the future to use JSTL to support internationalization

David
Did you use any particular framework for your app? If so, it may have some i18n stuff built in - for example, JSF makes it quite easy.
>> i am only using JSP and servlet and object...

Tim
One other thing - make sure your pages are all tagged as charset=UTF-8. This means that the data must all be in Unicode, so it covers all characters. If you don't do this, you'll have to change the pages for each locale.
hi, i come across this i18N provided by Jakarta.


But i am desparetely looking for some example provided by them. Tim, do you have any ideas about this tag lib provided by them?

http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

i can't find the sample program mentioned in there.

http://jakarta.apache.org/taglibs/doc/i18n-doc/index.html#examples

You'd be better off using the JSTL tags above, as they are the new standard (rather than using an old technology to do this)

Tim
Tex Texin, an old friend of mine, has a web site with a bunch of stuff on this subject - have a look at http://www.i18nguy.com/
Tim, i understand your point. But with the design that i am using now, can i incooperate the JSTL in? I means can JSP and Servelt work with JSTL??

Can refer me more on JSTL fundamental and knowledge about it? I am zero knowledge for that.. JSTL..

thanks.
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tim, thanks for your information.

appreciate that.