You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/07/27 00:00:10 UTC

svn commit: r425866 - /incubator/roller/branches/roller_3.0/web/taglibs.jsp

Author: agilliland
Date: Wed Jul 26 15:00:10 2006
New Revision: 425866

URL: http://svn.apache.org/viewvc?rev=425866&view=rev
Log:
with jsps we set the locale used for i18n first to the users defined locale (if they are logged in), otherwise use browser locale.


Modified:
    incubator/roller/branches/roller_3.0/web/taglibs.jsp

Modified: incubator/roller/branches/roller_3.0/web/taglibs.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/web/taglibs.jsp?rev=425866&r1=425865&r2=425866&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/web/taglibs.jsp (original)
+++ incubator/roller/branches/roller_3.0/web/taglibs.jsp Wed Jul 26 15:00:10 2006
@@ -43,7 +43,6 @@
 <%@ page import="org.apache.roller.ui.core.BasePageModel" %>
 <%@ page import="org.apache.roller.ui.core.RollerContext" %>
 <%@ page import="org.apache.roller.ui.core.RollerSession" %>
-<%@ page import="org.apache.roller.ui.core.LanguageUtil" %>
 
 <%   
 // see if we have an authenticated user so we can set the display locale
@@ -56,8 +55,7 @@
 if(mUser != null) {
     request.setAttribute("mLocale", mUser.getLocale());
 } else {
-    request.setAttribute("mLocale", 
-            LanguageUtil.getViewLocale(request).getDisplayName());
+    request.setAttribute("mLocale", request.getLocale());
 }
 %>
 <fmt:setLocale value="${mLocale}" />