You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2010/09/12 18:34:40 UTC
[jira] Updated: (ROL-1168) When a UserData note created, set
mLocale to default Locale.getDisplayName(),but not default Locale
[ 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.