I am using Java6 for my web application i am trying below code to change the laguage of my application
public static void doChangeLanguage(String argLang) {
SessionValidationInitiator.setLanguage(argLang);
LOGGER.debug("Changing Language to ... " + argLang);
if(argLang.equalsIgnoreCase("fr_ca")){
Locales.setThreadLocal(Locales.getLocale(Locale.FRENCH));
Executions.getCurrent().getSession().setAttribute(Attributes.PREFERRED_LOCALE, Locale.FRENCH);
Labels.reset();
}else{
Locales.setThreadLocal(Locales.getLocale(Locale.US));
Executions.getCurrent().getSession().setAttribute(Attributes.PREFERRED_LOCALE, Locale.US);
Labels.reset();
}
Executions.sendRedirect(null);
}
Its working fine but when i am trying to change the Hindi i saw no any locale for indian language.
Can we support Hindi Locale as well from Java so that my application work for Hindi Language.