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

2016-10-15 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on WW-4636:


GitHub user aleksandr-m opened a pull request:

https://github.com/apache/struts/pull/113

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

Please review.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aleksandr-m/struts feature/WW-4636

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/struts/pull/113.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #113


commit 835cc7cd096ba274ffd71e54115dbefc63cadffd
Author: Aleksandr Mashchenko 
Date:   2016-10-15T12:25:14Z

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.3.x, 2.5.x
>
> 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)


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

2016-10-15 Thread Aleksandr Mashchenko (JIRA)

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

Aleksandr Mashchenko updated WW-4636:
-
Fix Version/s: 2.5.x

> 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.3.x, 2.5.x
>
> 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)


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

2016-10-15 Thread Aleksandr Mashchenko (JIRA)

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

Aleksandr Mashchenko reassigned WW-4636:


Assignee: Aleksandr Mashchenko

> 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.3.x, 2.5.x
>
> 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)