Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 38862 invoked from network); 30 Jan 2007 07:36:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2007 07:36:44 -0000 Received: (qmail 30953 invoked by uid 500); 30 Jan 2007 07:36:47 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 30848 invoked by uid 500); 30 Jan 2007 07:36:47 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 30835 invoked by uid 99); 30 Jan 2007 07:36:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 23:36:47 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of craigmcc@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 23:36:39 -0800 Received: by wr-out-0506.google.com with SMTP id i21so1157679wra for ; Mon, 29 Jan 2007 23:36:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=eK8v0dnfyddcyVqXVvV7C4F1lS2py4o0pLJr3pbwKA5m4ol4P03JCu5oTkKN0T8sAbAJZWLbQ5H3OKTNsPezGjlQJrJxroICvPnl7wNoi8gi/dmO8ImyFChEM3vyre+2JAxxnAHDeg8zJs4ldb90etx+Ysz6Wn49Fqyq2YgqMh4= Received: by 10.90.31.19 with SMTP id e19mr5063270age.1170142578605; Mon, 29 Jan 2007 23:36:18 -0800 (PST) Received: by 10.90.33.12 with HTTP; Mon, 29 Jan 2007 23:36:18 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2007 23:36:18 -0800 From: "Craig McClanahan" Sender: craigmcc@gmail.com To: "Jakarta Commons Developers List" Subject: Re: [all] exceptions and localization In-Reply-To: <45BCF939.1070304@btopenworld.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75693_26708073.1170142578553" References: <45BC9813.2030708@free.fr> <8a81b4af0701280658o5af41e47q910858701fd96abf@mail.gmail.com> <45BCF939.1070304@btopenworld.com> X-Google-Sender-Auth: c90071fd028f4980 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_75693_26708073.1170142578553 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/28/07, Stephen Colebourne wrote: > > Phil Steitz wrote: > > I am interested in what others have to > > say about this as a general practice for commons. For [math] > specifically, > > I think it is important that we can fit seamlessly into localized > > applications, and we are refactoring our exceptions hierarchy anyway, so > I > > say go for it. > > I disagree strongly with the whole concept of localized exception > messages. Localization for users yes, but developers no. > > > On 1/28/07, Luc Maisonobe wrote: > > As a non-native english speaker, I am quite eager to provide users > > with libraries that can be embedded seemlessly into localized > > applications. > > IMO, a localized application actually means localization for users, and > implies nothing for developers. > > Adding localized error messages is another place for the application to > go wrong, so you're going to have to test this fully. After all, if you > get it wrong, you could lose the real exception and just get a > meaningless failed to localize exception. And thats a terrible outcome. > > For the record, I would -1 any code commit to add localized error > messages to a component I actively commit to. I'm late to the table on this thread, and only care about the Commons libraries I care about :-), but you should be aware that this attitude will disqualify the use of such libraries from use within code from organizations that have strict rules about implementing localization. I work for such an organization (Sun) ... the key rules are that any message that might be visible to users *must* be localizable. For log messages, that tends to translate into a straightforward policy that DEBUG and TRACE type messages do not need to be localized, but anything from INFO level above must be. The issue for exception messages is a bit more interesting. How does the library developer know whether or not the message part of the exception will be displayed to end users? From a pragmatic viewpoint, you can pretty much assume this will happen with exceptions in webapps, while many Swing apps will hide that sort of stuff to some degree. But, as a bottom line, if I'm interested in maximum adoption of a Commons library I work on, I will diligently ensure that exception messages are localizable :-). Stephen Craig --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > ------=_Part_75693_26708073.1170142578553--