Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 76669 invoked from network); 24 Aug 2006 13:24:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2006 13:24:58 -0000 Received: (qmail 67594 invoked by uid 500); 24 Aug 2006 13:24:53 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 67512 invoked by uid 500); 24 Aug 2006 13:24:53 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 67497 invoked by uid 99); 24 Aug 2006 13:24:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:24:53 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 195.130.137.74 is neither permitted nor denied by domain of eurojava@gmail.com) Received: from [195.130.137.74] (HELO asia.telenet-ops.be) (195.130.137.74) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:24:52 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by asia.telenet-ops.be (Postfix) with SMTP id 61CD5D41B7 for ; Thu, 24 Aug 2006 15:24:31 +0200 (CEST) Received: from [10.0.1.8] (d51A52326.access.telenet.be [81.165.35.38]) by asia.telenet-ops.be (Postfix) with ESMTP id 45B9AD416D for ; Thu, 24 Aug 2006 15:24:31 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3B5C8F47-C25E-43E6-94C6-8DFBCFF6FC22@gmail.com> Content-Transfer-Encoding: 7bit From: Wolf Benz Subject: Re: MessageBundle: internationalization problem Date: Thu, 24 Aug 2006 15:24:29 +0200 To: "MyFaces Discussion" X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Also make sure you followed the proper filename conventions. So e.g. yourApp.properties for English, and yourApp_de.properties for German. Otherwise the Framework can't figure out what file serves for what language. :-) This is also the way to slip in some jokes; you could e.g. use a weird extention never used at your place (like the one for "swahili") to provide a local German dialect version of your app. (to make that work, your users would of course add that to their browser languages... ) Wolf On 24 Aug 2006, at 14:05, Dennis Klemann wrote: Hi there, I recently implemented a website using JSF and MyFaces. Almost everything works fine now. The one thing that doesn't: The messages that appear when e.g. a required text field hasn't been filled all come from the "en" message bundle, although the browser has another language setting (e.g. "de"). For now, I renamed the "de" message bundle to "en", but I see it as a temporary solution only. Shouldn't the language setting depend on the browser preferences? Or is there another way to choose the language? I've posted this problem to the JIRA, but got forwarded to this mailing list: http://issues.apache.org/jira/browse/MYFACES-1380 Kind regard, Dennis