I have written a small application to display web page in different languages like french,german etc but with asian languages it's giving problem while making property files(i.e not able to save the property files).So plz tell how to overcome this problem and is there any editor which will directly translate the variables in property files.My code is as following.
package sfa;
//import for ResourceBundle class;
import java.util.*;
import sfa.*;
public class InternalizationBean
{
public static Internalization getMessageForView(Internalization oInternalization)
{
//Internalization oInternalization=new Internalization();
String language=oInternalization.getMyLanguage();
String country=oInternalization.getMyCountry();
String sMess1="";
String sMess2="";
String sMess3="";
Locale currentLocale;
ResourceBundle messages;
try
{
currentLocale=new Locale(language,country);
messages=ResourceBundle.getBundle("sfa.MessageBundle",currentLocale);
sMess1=messages.getString("greetings");
sMess2=messages.getString("inquiry");
sMess3=messages.getString("farewell");
oInternalization.setMess1(sMess1);
oInternalization.setMess2(sMess2);
oInternalization.setMess3(sMess3);
}
catch (Exception e)
{
System.out.println(e);
}
return oInternalization;
}
}