This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes any open source technologies for converting a j2ee app to another language like spani Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "any open source technologies for converting a j2ee app to another language like spani" Watch "any open source technologies for converting a j2ee app to another language like spani" New topic
Author

any open source technologies for converting a j2ee app to another language like spani

Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
In this site, there is an option to for site translation. Can anyone shed some light how to do that. I have an existing j2ee application. I want to give the option like that
I mean to Spanish. But I dont know which way to pursue. Any help appreciated.
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Usually i18n is done using resource bundles (and Java helps you a lot here). In a web application the theory is the same. In practice you should see what offerings you have from the used frameworks.

./pope


blog - InfoQ.com
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
I am not using any frameworks
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
This web page is mentioning but not enough for me
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
What is the architecture of your J2EE app?

./pope
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
jsp/servlets/session beans/ in weblogic
but no structs
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
I think the solution is quite easy: you use in your JSPs generic property names that are retrieved from bundles according to the locale used on the running computer.

./pope
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
can you please eloborate that?
Thanks in advance.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I believe Ali means a solution where you don't hardcode the displayed text on the JSP page but instead refer to that text using a key and let the software fetch the matching text from an external property file based on the key.

In general, this kind of facilities are implemented on top of java.util.ResourceBundle. For example, the <bean:message/> tag in Struts uses ResourceBundle internally.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Exactly. Lasse's details are exactly what I've meant. Thanks Lasse.

./pope
 
 
subject: any open source technologies for converting a j2ee app to another language like spani
 
Similar Threads
Is Tomcat An Application Server
webLogic, security, role mapping
How to start EJB's ???
Design question
Getting JAXB to work in J2EE project