Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 51282 invoked from network); 6 Oct 2004 22:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Oct 2004 22:57:10 -0000 Received: (qmail 92602 invoked by uid 500); 6 Oct 2004 22:57:02 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 92535 invoked by uid 500); 6 Oct 2004 22:57:02 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 92522 invoked by uid 99); 6 Oct 2004 22:57:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of oliver.zeigermann@gmail.com designates 64.233.170.204 as permitted sender) Received: from [64.233.170.204] (HELO mproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 06 Oct 2004 15:56:58 -0700 Received: by mproxy.gmail.com with SMTP id 79so531369rnl for ; Wed, 06 Oct 2004 15:56:56 -0700 (PDT) Received: by 10.38.163.12 with SMTP id l12mr63066rne; Wed, 06 Oct 2004 15:56:56 -0700 (PDT) Received: by 10.38.78.47 with HTTP; Wed, 6 Oct 2004 15:56:56 -0700 (PDT) Message-ID: <9da4f452041006155652bbf3b3@mail.gmail.com> Date: Thu, 7 Oct 2004 00:56:56 +0200 From: Oliver Zeigermann Reply-To: Oliver Zeigermann To: Jakarta Commons Developers List Subject: Re: AW: [i18n] Did I miss something? In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <026e01c4abaf$241e2b80$34000a0a@auburn> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If people really want this stuff I would be glad to create a new sandbox component for the XML import and export stuff. Importer is mainly SAX plus all that I ever wanted to have additonally, i.e. have the path of the generated event, more than one listener, element, attribute and conent data at one position where applicable and more. Almost no overhead. Exporter is a simple set of helpers that makes you generate valid XML with almost zero performance overhead. Oliver On Thu, 7 Oct 2004 00:46:52 +0200, Daniel Florey wro= te: > Hi James, > Any contributions are welcome! > As I still don't get the site generated with maven completely (layout is > somehow broken and javadocs are missing) this is very high on my todo... > Maybe you can help me out? > Would be nice to get a link from the commons page to the i18n in the > sandbox. Do you know if someone can manage this (having commit access to > commons)? > - In general I like the idea to read messages from properties files as th= is > might be very useful to migrate existing application to i18n. Even though= I > like the xml-based format more as you can see which entries belong togeth= er. > - Adding icons and so on can easily be achieved by adding a new class (li= ke > LocalizedDescription...) > - I'll add a proposal for using localized messages for logging as I've us= ed > this in a project using an additional Information class. This works very > nice and lets you map different error entries to different log messages > (details to debug, text to info or something like that). > - I don't know if I used logging at all but it should be no prob to switc= h > to log4j or commons-logging. > - I don't like digester at all as this seems to me the most confusing and > overdosed way to parse xml files. I talked to Oliver Zeigermann and we wi= ll > add xml-im-exporter to commons-sandbox as I find this the very best tool = do > sax-based xml-parsing. It's ultra-simple, fast and intuitive. That's why > I've used it in many projects in the past and would be very glad to see i= t > here. I've worked with digester in the past but it's just too complex and > xml-im-exporter is just kicking-ass... >=20 > Warmest regards, > Daniel >=20 > -----Urspr=FCngliche Nachricht----- > Von: commons-dev-return-60189-daniel.florey=3Dweb.de@jakarta.apache.org > [mailto:commons-dev-return-60189-daniel.florey=3Dweb.de@jakarta.apache.or= g] Im > Auftrag von James Mitchell > Gesendet: Mittwoch, 6. Oktober 2004 15:17 > An: Jakarta Commons Developers List > Betreff: [i18n] Did I miss something? >=20 > Wow, how did I miss this? I wonder what we can do with this and > commons-resources and/or Apache Struts. >=20 > In my current gig we are using a home grown solution in combination with > ActionErrors/ActionMessages provided by Struts. This project would have > been nice to have about 8 months ago. >=20 > My immediate needs (scratching my own itch here) would be to help provide > greater granularity for application messaging (similar to log levels) and > perhaps a jsp taglib or two to help take advantage of this in my apps (th= is > would probably go under Apache Struts contrib). >=20 > So, with that said, I would like to volunteer to help with this project. > Off the top of my head what I would like to do is: > a) offer the same solution with the following alternate implementations: > - properties file based configuration (more on this later) > - RDBMS based configuration (I've already done this in commons-resources= ) >=20 > b) Develop a Struts plug-in that will load and configure commons-i18n for= my > Struts applications. > (I guess I could just add this as a plug-in under struts) >=20 > c) The types of LocalizedMessages or LocalizedExceptions I can use are th= e > following: > - System error > - Error > - Warning > - Alert > - Flag > - Info >=20 > d) I would like to add an entry like: > /images/some-icon-small.jpg > (also one for large-icon) >=20 > e) New MessageManager impl that can assemble messages based on a config f= ile > who's entries simply point to existing i18n'd properties file(s) keys. (= I > will provide more details for this on my ShortTermPlans page > http://wiki.apache.org/struts/ShortTermPlansForJamesMitchell) >=20 > General questions: > Is there any reason you did not use commons-logging? Can we change this = to > commons since it will (by default) delegate to the appropriate logging > framework (let's eat our own dogfood)? >=20 > Any reason you are using xml-importer instead of digester? I've read the > docs on sf.net, but the advantages still aren't clear to me (I'm guessing= it > was just a personal choice made some time ago and you just stayed with it= ). > Can we change this to use either (or use commons-configuration)? >=20 > Have you thought about Spring integration? >=20 > -- > James Mitchell > Software Engineer / Open Source Evangelist > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org