Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 85682 invoked from network); 10 Dec 2009 14:02:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 14:02:09 -0000 Received: (qmail 54906 invoked by uid 500); 10 Dec 2009 14:02:06 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 54829 invoked by uid 500); 10 Dec 2009 14:02:06 -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 54819 invoked by uid 99); 10 Dec 2009 14:02:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 14:02:06 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saeedcs@gmail.com designates 209.85.221.184 as permitted sender) Received: from [209.85.221.184] (HELO mail-qy0-f184.google.com) (209.85.221.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 14:02:04 +0000 Received: by qyk14 with SMTP id 14so3439090qyk.11 for ; Thu, 10 Dec 2009 06:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+nOmzw0QxTYIxTn8UGHYR2lXQLHYKNoNQcusu1Yn+5o=; b=L2jgyE4zad2mi9JFakxZBxOlKvPK8hamy1mWQ0NCjg5OdEdQB10NSIBjTy4zz9PwwS QCxhlrfAKamay5ExSlQaTqi7noQxrAyot6DLqii3kHAq3NS+/vCpdZuc9t1LDQp8HXv2 gGJBrmkHZOjA9GIPZdO/++/QMQESeDjOSfLOM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=m2h52fpaArJcfTMUy7sO/pbk1BYx5+TyNE2Iif1cD7tjoz5ao4px1D/zZuZW+HB9/m pnJklO2XZW13itQ82aB+HImwl2p/mbLrKRGVoqHG3TWe0JKRVVKKeD6xNpShk/HyzcZ4 g2sK+RsQ2FnETY34lXr78yyFIwNBq+onITIlc= MIME-Version: 1.0 Received: by 10.224.52.94 with SMTP id h30mr189842qag.348.1260453703364; Thu, 10 Dec 2009 06:01:43 -0800 (PST) In-Reply-To: <20091210145830.5m349dg7wwk8g888@mail.cast-info.es> References: <166946.41321.qm@web30408.mail.mud.yahoo.com> <20091210145830.5m349dg7wwk8g888@mail.cast-info.es> Date: Thu, 10 Dec 2009 19:01:43 +0500 Message-ID: <579bc170912100601v74211ac4qf9593b957cb92db2@mail.gmail.com> Subject: Re: [S2] i18n not using default bundle From: Saeed Iqbal To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Set the constant variable in struts.xml or struts.properties variable for i8nl On Thursday, December 10, 2009, carl ballantyne wrote: > Hi LV, > > When you say you set your browser to Chinese are you simply moving Chines= e up the list of prefered languages or are you removing all english from pr= efered languages. Because if it is the former then I think it would still l= ook for an *_en.properties file over the default. > > Cheers, > Carl. > > Quoting mailtolouis2020-struts@yahoo.com: > > > Hello, > > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. > > I got 2 properties in my application: > global-message.properties =A0 =A0(store Chinese Language) > global-message_en.properties (store English Language) > > When I run my application, and set my browser language to Chinese =A0(zh-= CN), I expect when there is no global-message_zh_CN.properties =A0file, str= uts should use the default global-message.properties file, =A0but it is not= , it use global-message_en.properties. > > If I remove some key in the global-message_en.properties, then it is =A0l= ook for global-message.properties file, that is expected. > > > So could someone tell me is this a bug, or that's the way the design =A0i= s or some setting I need to do? > > > > > > Regards > LV > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --=20 Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org