File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Internationalization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Internationalization" Watch "Internationalization" New topic
Author

Internationalization

Suneesh Raman
Ranch Hand

Joined: Jun 13, 2002
Posts: 42
Hi

I created a ApplicationResources.properties file and mapped in struts config file as
<message-resources parameter="ApplicationResources" null="false"/>

Suppose If I want to add one more property file what should I need to do . How the browser automatically identify the corresponding property file as per the local.

Thanks,
Suneesh VR
ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 192
When u r mentioning <Message Ressources> in ur struts-config file then use
key attribute with it.So whenever u want to use the file then also mention that key.
Cesar Olavo
Greenhorn

Joined: Nov 19, 2004
Posts: 17
Originally posted by Suneesh Raman:

How the browser automatically identify the corresponding property file as per the local.


In fact is not the browser that identifies... it just sends the language he prefers (YOU configure that) in the header:

Accept-Language: pt-br

All the ResourceBundles are loaded by the JVM and if there is one named ApplicationResources_pt-br, this is the one your application will use to "translate" the keys. Otherwise it will use the default.

Cesar
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Internationalization
 
Similar Threads
Adding entry to default system property.
storing file path in weblogic 8.1
hibernate configration file
Unable to load Message Resource Bundle with method ResourceBundle.getBundle
What is ibm-web-ext.xmi