You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Aleksandar Milošević (JIRA)" <ji...@apache.org> on 2012/05/30 10:03:24 UTC

[jira] [Closed] (WW-3038) com.opensymphony.xwork2.ActionSupport's locale property is always set to platform's default locale

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

Aleksandar Milošević closed WW-3038.
------------------------------------

    
> com.opensymphony.xwork2.ActionSupport's locale property is always set to platform's default locale
> --------------------------------------------------------------------------------------------------
>
>                 Key: WW-3038
>                 URL: https://issues.apache.org/jira/browse/WW-3038
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.6, 2.1.8
>         Environment: java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
> Linux aleksandar-laptop 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux
>            Reporter: Aleksandar Milošević
>            Priority: Trivial
>             Fix For: 2.3.x
>
>         Attachments: main.action.2.0.14.html, main.action.2.1.6.html
>
>
> This affects some tags and ognl 'getText()'. They wil not translate according to users locale.
> <b>using key attribute</b> : <s:submit key="my.key" theme="simple"/><br/>
> <b>using &lt;s:text/&gt;</b> : <s:text name="my.key" /><br/>
> <b>using OGNL getText()</b> : <s:property value="getText('my.key')"/><br/>
> This will display correctly on 2.0.14, but not on 2.1.6. On 2.1.6 it will mix translations from default and selected locale. Rendered html with <s:debug/> is attached for 2.0.14 and 2.1.6.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira