Skip to Content
0
Former Member
Nov 10, 2010 at 10:44 AM

Get the language of portal

53 Views

Hi,

I would like to know which language use the user.

How can I get this?

I want to implement it in 'umLogonPage.jsp'.

I would like to put out some language dependent pictures to the login page.

Something like this (in JAVA):

<%
    java.util.Locale locale = (Locale)session.getAttribute("locale");
    if (locale.getLanguage().equals("en")) 
    { 
%>		
        img src="<%=webpath%>layout/EN/login_pic.jpg" border="0" align="top"
<% 
    }
    else if (locale.getLanguage().equals("sk")) 
    { 
%>
        <img src="<%=webpath%>layout/SK/login_pic.jpg" border="0" align="top"
<% 
    }

thanks,

bejglee