You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/11/07 19:14:58 UTC

[jira] [Commented] (WW-4636) File upload error message always in default language

    [ https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15645111#comment-15645111 ] 

ASF subversion and git services commented on WW-4636:
-----------------------------------------------------

Commit 33ac7ac49aabfcf792d38fa44d271a93433ffe56 in struts's branch refs/heads/master from [~aleksandr-m]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=33ac7ac ]

WW-4636 - File upload error message always in default language


> File upload error message always in default language
> ----------------------------------------------------
>
>                 Key: WW-4636
>                 URL: https://issues.apache.org/jira/browse/WW-4636
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.28
>            Reporter: Pierre-Yves Soblet
>            Assignee: Aleksandr Mashchenko
>             Fix For: 2.5.6
>
>         Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the configuration using fileUpload interceptor and commons-fileupload dependency, the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key (in i18n_fr.properties for instance) is not taken into account (the default language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)