cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <>
Subject Re: i18n resource catalogs are being cached
Date Fri, 17 Oct 2003 05:59:52 GMT

Message from i18n catalogs are always cached and <cache-at-startup> option
simply defined when to cache the message, either load all the messages at
startup or just cache as they are requested. This is the intended behavior.

I suppose that you are looking for something that will check the last
modification date of a resource bundle and then reload it, right?
Unfortunately, this is a long time 'ToDo' item in i18n transformer and don't
know if anybody is going to fix this in the nearest future.

So the only way to make it work is to implement this feature yourself.
You'll need to modify XMLResourceBundle and XMLResourceBundleFactory to
check the last modification date and reload the message if required.

  Konstantin Piroumian

----- Original Message ----- 
From: Collin VanDyck
Sent: Thursday, October 16, 2003 19:24
Subject: i18n resource catalogs are being cached

Hey :)

I'm seeing the caching of my i18n catalogs occur with Cocoon 2.0.  I declare
my xformer as:

<map:transformer name="i18n"
    <untranslated-text>[not yet translated]</untranslated-text>

And then I invoke it like this:

<map:match pattern="generateXSP/**">
    <map:generate type="serverpages" src="{1}"/>
    <map:transform type="i18n">
        <map:parameter name="locale" value="en"/>
    <map:serialize type="xml"/>

I thought that specifying false for the cache-at-startup would fix this
behavior (i need it not to cache for development purposes), but apparently
it does cache, but only as resources that are not already cached are

Any help -- greatly appreciated.  Thanks :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message