Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 54213 invoked by uid 500); 19 Aug 2003 09:14:33 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 54199 invoked from network); 19 Aug 2003 09:14:33 -0000 Received: from dsl-217-155-97-61.zen.co.uk (217.155.97.61) by daedalus.apache.org with SMTP; 19 Aug 2003 09:14:33 -0000 Received: from apple.air.bandlem.com ([10.0.1.20] helo=ioshq.com) by dsl-217-155-97-61.zen.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 19p2Zi-0006eP-00 for ; Tue, 19 Aug 2003 10:14:46 +0100 Date: Tue, 19 Aug 2003 10:14:45 +0100 Subject: Re: [i18n] Hardcoded message strings Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Alex Blewitt To: geronimo-dev@incubator.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: <3F415CA4.4050904@tackline.demon.co.uk> Message-Id: <9361E73C-D225-11D7-870E-0003934D3EA4@ioshq.com> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tuesday, Aug 19, 2003, at 00:09 Europe/London, Thomas Hawtin wrote: > Jason Dillon wrote: >> Yes we should, please submit a patch (someone). > > It appears that very few programs put there exception messages in > resource bundles. I guess we expect anyone who reads them to be a > programmer and be able to read English even if not quite like a > native. Also it's easier to edit the messages if they're inline. But I > won't let that stop me. What's going to happen in the following situation: o Server is running on server with default language French o User running a web application is using German as a language Which of the two will be used to dump exception messages? I can see two possibilities: 1) The administrator wants to see exceptions in their language in the logs (French) 2) The web user will be shown an error message based on an exception, and hopes that it would be in their language (German) I think the only way of achieving this would be to have a formatExceptionInLocale(Locale) method which could choose the translation at print time, rather than at construction time. Alex.