Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B9729200BB9 for ; Mon, 7 Nov 2016 20:16:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B8471160AE0; Mon, 7 Nov 2016 19:16:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 158AF160B10 for ; Mon, 7 Nov 2016 20:16:01 +0100 (CET) Received: (qmail 28434 invoked by uid 500); 7 Nov 2016 19:16:00 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 27937 invoked by uid 99); 7 Nov 2016 19:16:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2016 19:16:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EF3752C2AB7 for ; Mon, 7 Nov 2016 19:15:59 +0000 (UTC) Date: Mon, 7 Nov 2016 19:15:59 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4636) File upload error message always in default language MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 07 Nov 2016 19:16:02 -0000 [ https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15645122#comment-15645122 ] ASF subversion and git services commented on WW-4636: ----------------------------------------------------- Commit 70400f4a037784719d4b7da341df7efb6353dcf2 in struts's branch refs/heads/master from [~lukaszlenart] [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=70400f4 ] WW-4636 Fixes problem with File upload error message are 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)