You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rudolf Fáber <fa...@dynatech.sk> on 2005/09/20 17:51:09 UTC

Two I18N problems

I have 2 problems with I18N transformation. My configuration is Red Hat Linux 9,  Tomcat 5.0.28 and Cocoon 2.1.7 but I also tried it on Windows with the same Tomcat.
1. When the I18n transformer is the first and only transformer in the pipeline, the transformation works but everytime I change something in the catalogue I have to restart server (and clear browser cache if it is turned on) to get it changed on the page. Is there any method to achieve that it will work without restarting the server?
2. In my sitemap there are also pipelines like this : 

 <map:match pattern="phones-*">
	       <map:generate src="cocoon://xml/dynamic/phones.xml"/>
	       <map:transform src="phones-{1}.xsl"/>
	       <map:transform type="i18n">
	         <map:parameter name="locale" value="{../locale}"/>
	       </map:transform> 
	       <map:serialize type="xml"/>
	    </map:match>  


In this case, when i18n comes after the xsl transformation in tomcat error log I get this error.

ERROR   (2005-09-20) 16:52.41:607   [sitemap.transformer.i18n] (/ts/phones/phones-action.html) http-88-Processor22/I18nTransformer.CatalogueInfo: Error obtaining catalogue 'dic' from  <[L...@f0756d> for locale sk
org.apache.avalon.framework.component.ComponentException: Unable to locate resource: dic (key [dic])

It looks like it cannot find catalogue but configuration of i18n transformer is the same as in the case where it is the only transformation in the pipeline. And it works without such error in that case. I tried to put log tranformer between xsl and i18n but the SAX looked well, without any errors. Could anybody try to help me in any way? I would be thankful.

Sincerely,

Rudolf Faber

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


Re: Two I18N problems

Posted by Jason Johnston <co...@lojjic.net>.
> Jason Johnston wrote:
>
>>
>>I have this same problem in 2.1.7; it worked fine before we upgraded from
>>2.1.5.1.  I've checked the cache-on-startup config parameter in the xconf
>>and sitemap and they're both set to false.  This is happening in
>>non-cacheable pipelines, so it's definitely a problem with the catalogue
>>not being reloaded rather than a pipeline caching problem.
>>
>>I haven't yet had a chance to try it under 2.1.8-dev; I will hopefully
>>find some time to test it in the next few days and will open a bug report
>>if the problem persists.
>>
>>--Jason
>>
> Does this thread explain the behavior?
> http://marc.theaimsgroup.com/?t=110563103100003&r=1&w=2

Hmm, I'm not sure.  If I followed the thread correctly, the conclusion was
that it's a bug in multiple <location/>s for a catalogue.  But all my
catalogues have a single @location:

<map:transformer name="i18n" pool-grow="16" pool-max="256" pool-min="16"
src="org.apache.cocoon.transformation.I18nTransformer">
  <catalogues default="messages">
    <catalogue id="messages" name="messages"
               location="context://appname/translations"/>
    <catalogue id="messages_help" name="messages_help"
               location="context://appname/translations"/>
    <catalogue id="forms" name="forms"
               location="context://appname/translations"/>
  </catalogues>
  <!--untranslated-text>untranslated</untranslated-text-->
  <cache-at-startup>false</cache-at-startup>
</map:transformer>




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


Re: Two I18N problems

Posted by Ralph Goers <Ra...@dslextreme.com>.
Jason Johnston wrote:

>
>I have this same problem in 2.1.7; it worked fine before we upgraded from
>2.1.5.1.  I've checked the cache-on-startup config parameter in the xconf
>and sitemap and they're both set to false.  This is happening in
>non-cacheable pipelines, so it's definitely a problem with the catalogue
>not being reloaded rather than a pipeline caching problem.
>
>I haven't yet had a chance to try it under 2.1.8-dev; I will hopefully
>find some time to test it in the next few days and will open a bug report
>if the problem persists.
>
>--Jason
>
Does this thread explain the behavior? 
http://marc.theaimsgroup.com/?t=110563103100003&r=1&w=2

Ralph


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


Re: Two I18N problems

Posted by Jason Johnston <co...@lojjic.net>.
>
> I have 2 problems with I18N transformation. My configuration is Red Hat
> Linux 9,  Tomcat 5.0.28 and Cocoon 2.1.7 but I also tried it on Windows
> with the same Tomcat.
> 1. When the I18n transformer is the first and only transformer in the
> pipeline, the transformation works but everytime I change something in the
> catalogue I have to restart server (and clear browser cache if it is
> turned on) to get it changed on the page. Is there any method to achieve
> that it will work without restarting the server?

I have this same problem in 2.1.7; it worked fine before we upgraded from
2.1.5.1.  I've checked the cache-on-startup config parameter in the xconf
and sitemap and they're both set to false.  This is happening in
non-cacheable pipelines, so it's definitely a problem with the catalogue
not being reloaded rather than a pipeline caching problem.

I haven't yet had a chance to try it under 2.1.8-dev; I will hopefully
find some time to test it in the next few days and will open a bug report
if the problem persists.

--Jason


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