cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Gianni (JIRA)" <>
Subject [jira] Commented: (COCOON-1379) [i18n] extending the I18nTransformer
Date Mon, 02 Oct 2006 18:18:21 GMT
    [ ] 
Simone Gianni commented on COCOON-1379:

Has this ever been fixed? Because i recently committed a modification to i18n transformer
to made a couple of method protected instead of private, and has been enought for me to subclass
the i18n transformer.

> [i18n] extending the I18nTransformer
> ------------------------------------
>                 Key: COCOON-1379
>                 URL:
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>         Environment: Operating System: All
> Platform: All
>            Reporter: Christoph Gaffga
>         Assigned To: Cocoon Developers Team
>            Priority: Minor
>         Attachments:,
> copy of my mail to
> -----------------------------------------
> (see source attached)
> recently I needed to extend cocoon's I18nTransfomer for loading multiple  sets
> of catalogues for different pipelines. The information what catalogues form a
> set, which sets to use for the different pipelines was stored in DB. So I had to
> change a lot and recognized that it is quite difficult for me to extend the
> existing I18N transformer.
> The Idea was, whenever cocoon's I18N transformer is enhanced with some more
> functionallity, my new transfomer should support the features too.
> With the existing I18nTransformer class this seems not to be possible. So my
> Idea was to move all the stuff doing the real transformations, implementing the
> logic for the i18n:*-Elements and doing lookups in the catalugues to an abstract
> class called AbstractI18nTransformer. 
> Now the cocoon I18nTransformer extends this class and implements only the logic
> for loading the right catalogues as configured in the sitemap,  mainly the
> setup(..) and configure(..) methods and the Cachable interface are implemented here.
> Like this I have a nice separation between the real transforming part and the
> part loading and configuring the catalogues. Now I can simply extend this
> AbstractI18nTransformer and add my own catalogue loading logic. 
> Coming back to my point that I want to have enhancments to the I18n functions
> also in my transfomer without editing my code again and again:  My separation of
> the two parts of the I18n transfomer only makes sense if there is some interest
> in having this AbstractI18nTransformer integrated into cocoon.
> So I'd like to know if there is some interest in having this change integrated
> into cocoon. 
> I sent my example how this separation could be done as an enhancement to the
> bugzilla. Would be nice to hear some thoughts about the idea.
> kind regards,
> Christoph Gaffga

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message