I have a multilingual struts application and recently I upgraded the struts from 2.3.20 to 2.3.29. After upgrading, the Tamil language is not working i.e. even though if we select Tamil language, the texts are shown in English.
I checked the locale setting when we select Tamil language, it is correct i.e. request_locale=ta_IN .
I tried extending I18nInterceptor in my custom interceptor class and then override the getLocaleFromParam()
method as below. This also didn't work.
So please let me know if any of you has a solution for this problem.
Tamil language was working fine in Struts 2.3.20
protected Locale getLocaleFromParam(Object requestedLocale)
{
Locale locale = null;
if (requestedLocale != null) {
locale = (requestedLocale instanceof Locale) ?
(Locale) requestedLocale :
LocalizedTextUtil.localeFromString
(requestedLocale.toString(), null);
if (locale != null) {
logger.debug("applied request locale="+locale);
}
}
return locale;
}