roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ROL-1168) When a UserData note created, set mLocale to default Locale.getDisplayName(),but not default Locale
Date Sun, 12 Sep 2010 16:34:40 GMT

     [ https://issues.apache.org/jira/browse/ROL-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Johnson updated ROL-1168:
-------------------------------

    Priority: Major  (was: Critical)

> When a UserData note created, set mLocale to default Locale.getDisplayName(),but not
default Locale
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ROL-1168
>                 URL: https://issues.apache.org/jira/browse/ROL-1168
>             Project: Roller
>          Issue Type: Bug
>          Components: User Interface - General
>    Affects Versions: 2.3
>         Environment: Linux,JDK1.5,Tomcat5.5,zh_CN
>            Reporter: wanghongbao
>            Assignee: Roller Unassigned
>
> When I what the default Language to Chinese, find the Bug.
> in the taglibs.jsp,
> if(mUser != null) {
>     request.setAttribute("mLocale", mUser.getLocale());
> } else {
>     request.setAttribute("mLocale", 
>             LanguageUtil.getViewLocale(request).getDisplayName());
> }
> Above code result in a String Object set to Local property, so when the user not login,
We will always see English Locale.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message