roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ROL-1168) When a UserData note created, set mLocale to default Locale.getDisplayName(),but not default Locale
Date Tue, 27 Aug 2013 02:06:51 GMT

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

Glen Mazza closed ROL-1168.
---------------------------

    Resolution: Cannot Reproduce

Bug report against Roller 2.3; the classes in question don't seem to exist anymore.
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message