Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 54912 invoked from network); 2 Jan 2005 20:18:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jan 2005 20:18:44 -0000 Received: (qmail 63239 invoked by uid 500); 2 Jan 2005 20:18:35 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 63211 invoked by uid 500); 2 Jan 2005 20:18:34 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63197 invoked by uid 99); 2 Jan 2005 20:18:34 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from web11332.mail.yahoo.com (HELO web11332.mail.yahoo.com) (216.136.130.193) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 02 Jan 2005 12:18:30 -0800 Received: (qmail 96020 invoked by uid 60001); 2 Jan 2005 20:18:28 -0000 Message-ID: <20050102201828.96018.qmail@web11332.mail.yahoo.com> Received: from [24.157.92.76] by web11332.mail.yahoo.com via HTTP; Sun, 02 Jan 2005 15:18:28 EST Date: Sun, 2 Jan 2005 15:18:28 -0500 (EST) From: Randy Phillips Subject: Re: [CONFIGURATION] questions To: Jakarta Commons Users List In-Reply-To: <41D844E7.20109@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sure... The text of page (or set of pages) is supported via a properties file. Each language supported is represented via it's own properties file. As an example... I have two pages named page1 and page2. I support 3 languages, Canadian English, Canadian French and Spanish. I support these pages and their respective languages using three properites files: page1_en_CA.properties, page1_fr_CA.properties and page1_es_ES.properties as well as page2_en_CA.properties, page2_fr_CA.properties and page2_es_ES.properties. Within these files the "Welcome" title would look like this: In page1_en_CA.properties welcome.title=Welcome to the Application! In page1_fr_CA.properties welcome.title=Bienvenue � l'application! In page1_es_ES.properties welcome.title=Recepci�n al uso! So based on the users selected Locale (i.e. English, French or Spanish) the appropriate properties file is referenced and the value of "welcome.title" is displayed in the appropriate language. Although I haven't delved deeply into the issue, at this point the only alternative I see is to create multiple Configuration objects, each on representing a particular Locale. However, I'm not convinced this is the best solution. Again, I appreciate any insight you can provide to my dilema. Sincerely, Randy Phillips. --- Emmanuel Bourg wrote: > Hello, what do you mean exactly by handling i18n ? > Can you give us your > use case ? > > Emmanuel Bourg > > > Randy Phillips wrote: > > > Hey Folks, > > I was wondering how (if) the configuration project > > handles i18n. > > I have a heavily internationized app that would > > benefit greatly from the "configuration" approach. > I > > haven't, however, been able to determine if such > > support exist's within the configuration project. > > > > Any insight would be appreciated. > > > > Randy Phillips. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org