Based on the locale (language), I need to perform some logic. I am getting en_US for <%=themeDisplay.getLocale();%> in my JSP.
<%
String localelanguage = themeDisplay.getLocale().toString();
if(localelanguage.equalsIgnoreCase("en_US"))
{
}
%>
#foreach( $language in $languageUtil.
getAvailableLocales() )
<li>
<a href="/$language.getLanguage() /group$themeDisplay.getLayout( ).getGroup().getFriendlyURL()" >
$language.getDisplayName()
</a>
</li>
#end
<%
String localelanguage = themeDisplay.getLocale().toString();
if(localelanguage.equalsIgnoreCase("en_US"))
{
}
%>
<li>
<a href="/$language.getLanguage()
$language.getDisplayName()
</a>
</li>
#end
No comments:
Post a Comment