cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeme Praks" <neeme.pr...@one.ee>
Subject RE: [RTl] i18n transformer
Date Mon, 29 Oct 2001 20:07:08 GMT

> -----Original Message-----
> From: Torsten Curdt [mailto:tcurdt@dff.st]
> Sent: Saturday, October 27, 2001 6:10 AM
> Subject: RE: [RTl] i18n transformer

[snip]

> Hm.. on the first glance this looks more like a
> DictionarySelector/Factory to me.
> (Did I get this wrong?) But there is already a XMLResourceBundleFactory
> used in the current i18n transformer implementation.

Seems to me also that it duplicates XMLResourceBundleFactory...

> What I'd like to see is to decouple the i18n transformer from the
> XMLResourceBundle. I'd like to introduce an interface meaning
> "provides i18n lookups".
> So the XMLResourceBundle would need to implement this interface (or better
> a delegation should do so). It should be quite easy to support
> other resources
> (like e.g. a SQL database) by creating some Components implementing this
> interface then.

Actually I also have some pending commits to i18n stuff in Avalon
(XMLResourceBundle*) that would address some of your concerns. Especially I
would like to add an interface/abstract class that would make the i18n
services more pluggable and extendable and less XMLResourceBundle dependent.

Also... XMLResouceBundle right now extends java.util.ResourceBundle and I
find that quite limiting (it has some final methods that cannot be
overridden, etc). I would like to remove that dependancy and instead make
XMLResourceBundle extend/implement an Avalon interface that I already
mentioned above (org.apache.avalon.i18n.ResourceBundle?)...

For some more ideas about stuff on my TODO list, see also the posting in
Avalon list:
http://marc.theaimsgroup.com/?l=avalon-dev&m=100181440612979&w=2

Neeme


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message