Forums Register Login

Applet always use same Resource file

+Pie Number of slices to send: Send
Hi All
I have a HTML page embedded with Applet. This applet takes string from property file using ResourceBundle. I send a parameter from HTML page to decide the language of applet e.g. de for germany and en for english.
My problem is , applet always use one property file. it does not changes property file according to passed parameter.If I passed paramater for english "en", then it always take property file for english wheather I passed parameter for english or German or French.
I deleted the file from control panel java plugins. i also removed files in my browser cache. But it does not work. Please let me know how can I solve my problem. Is there any other option for localization, instead of ResourceBundle class in core java
thanks
Appi
+Pie Number of slices to send: Send
Hello "appi"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

This forum is meant for question about this site, not for any Java-related question. I'll move it to the applet forum.
+Pie Number of slices to send: Send
How is the parameter passed to the applet? How are you using that parameter to select the resource bundle?
+Pie Number of slices to send: Send
I am passing parameter using <PARAM> tag, which I get inside applet with that param name. Based on that parameter I create ResourceBundle object. e.g.

String myLanguage= getParameter("parameter_name");
String BUNDLE_NAME = "myPropertFile";
ResourceBundle RESOURCE_BUNDLE=ResourceBundle.getBundle(BUNDLE_NAME,new Locale(myLanguage));
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 912 times.
Similar Threads
language and timestamp
I18n problem
Foreign Language Knowledge
A Big Hit in France
Multilingual web application in struts
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:40:32.