Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 1401 invoked from network); 24 Jul 2008 07:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 07:01:19 -0000 Received: (qmail 15659 invoked by uid 500); 24 Jul 2008 07:01:09 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 15629 invoked by uid 500); 24 Jul 2008 07:01:09 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 15618 invoked by uid 99); 24 Jul 2008 07:01:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 00:01:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antonio.petrelli@gmail.com designates 64.233.184.230 as permitted sender) Received: from [64.233.184.230] (HELO wr-out-0506.google.com) (64.233.184.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 07:00:15 +0000 Received: by wr-out-0506.google.com with SMTP id 68so2120251wra.7 for ; Thu, 24 Jul 2008 00:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rzmUxm8lNTBT5ly6xwF0UsmyQXLYwFii79CfXMe7h1Y=; b=QyMF51DnV5bYr9M4BvMkFBf0ijjuMm9e7E2IqhN+5mZn+muUhbHt2hPOAPsCmfSdhF 1Pm7qArmwbz6IRj8TTEVwkaXTXGAxgyUF3kBh+XDaCbWAxNr9uRdqqMY7yhDiugIU/Vj DvXV4hkRZvw7UnChCOacNcELHQ6fKWCdIoxRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wh8kk4UY0j8hUTDdgW/RdLIHePIoO5TD+Cfwm5PTddc//GiKbMXDqXJvoyoCBBIc/q smwYxQRVSmJC3su9gMdifrRWPCcMe8D4HOYEXSUg6crwRfldt8hMaMxKPdAjxvAFpAX+ fvfYv9RwMJQqljb6jlP+qMDffuZynJJ50WMIM= Received: by 10.90.100.17 with SMTP id x17mr1051368agb.52.1216882840126; Thu, 24 Jul 2008 00:00:40 -0700 (PDT) Received: by 10.150.182.9 with HTTP; Thu, 24 Jul 2008 00:00:40 -0700 (PDT) Message-ID: Date: Thu, 24 Jul 2008 09:00:40 +0200 From: "Antonio Petrelli" To: "Struts Users Mailing List" Subject: Re: [S2] i18n messages, Tiles2 l10n, "default" locale, and browser preferences. In-Reply-To: <2705fb9c0807231307m10f57c53wdbd0ef951bcaf619@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2705fb9c0807231307m10f57c53wdbd0ef951bcaf619@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Pierre, about the Tiles part, I suggest to ask this question at Tiles Users mailing list: http://tiles.apache.org/mail.html For the rest, see comments inline. 2008/7/23 Pierre Thibaudeau : > Using Struts 2.1.2 > My browser (Firefox 3) has a prefered locale (and only one): fr_CA > Struts2 constant: struts.locale=en_US > > I use i18n throughout the software. > There is a "default" resource (whose content happens to be in > English): ApplicationResource.properties. > There are also resource bundles in 4 languages: > ApplicationResources_fr.properties, > ApplicationResources_it.properties, > ApplicationResources_de.properties, > ApplicationResources_es.properties. > > Until last week, there was no English resource file (since the default > one was taking care of it). > That strategy worked perfectly in Struts1, but it seems that in > Struts2, the system has a mind of its own: > given my browser's preference, the default bundle (on my system) seems > to be ApplicationResources_fr.properties insteand of > ApplicationResources.properties... This is a bug: https://issues.apache.org/struts/browse/WW-2345 Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org