• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mary Wallace
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mary Wallace
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not using any frameworks
 
Mary Wallace
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This web page is mentioning but not enough for me
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the architecture of your J2EE app?

./pope
 
Mary Wallace
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp/servlets/session beans/ in weblogic
but no structs
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please eloborate that?
Thanks in advance.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly. Lasse's details are exactly what I've meant. Thanks Lasse.

./pope
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic