There's no log file produced. In the console I see:

PoolThread-4/LoggerSwitch.SwitchingLogger: Logger for category sitemap.serializer.html not defined in configuration. New Logger created and returned

Thanks

Ard Schrijvers wrote:

I don't think guessing is the way to go when something does not work: Make sure you find out what is going wrong through logs:

So, add to your i18n:transformer a logger, for example like:

<map:transformer name="i18n" logger="sitemap.transformer.i18n" src="org.apache.cocoon.transformation.I18nTransformer">

Go to your logkit.xconf

Add in targets

<cocoon id="i18n">
      <filename>${context-root}/WEB-INF/logs/i18n.log</filename>
      <format type="cocoon">
%23.23{time:yyyy-MM-dd' 'HH:mm:ss.SSS} %5.5{priority} %40.40{category} (%{host}%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
      </format>
      <append>false</append>
      <rotation pattern="-yyyy-MM-dd_HH.mm" suffix=".log" type="unique">
        <or>
          <size>10m</size>
          <time>24:00:00</time>
        </or>
      </rotation>
</cocoon>

Add in categories (not the levels that are already in, but make sure you have at least the piece below, probably only have to add the i18n part )

<category log-level="WARN" name="sitemap">
        <category log-level="WARN" name="transformer">
                <category log-level="DEBUG" name="i18n">
                        <log-target id-ref="i18n"/>
                </category>
        </category>
</category>
Restart cocoon, do the request again, and look in the WEB-INF under logs folder in i18n.log: I know I had your problem before, and I don't know how I fixed it, but just make sure you know how to debug your cocoon app and you will find the solution (which you will probably will forget as well: important is that you know how to handle debugger stuff)

AS


>
> With a different name it still doesn't work.
> >
> It may sound weird but I get the same error when I put the translation
> in the folder named 'i18n'. When I rename it to something different it
> does work.
>
> Jasha Joachimsthal
>
> ---------
> > > > Hi again,
> > >
> > >   I have looked up how to override the CForms localization,
> > > but it's now
> > > working.
> > >
> > > In my subsitemap I have:
> > >
> > >     <map:transformers default="xslt">
> > >       <map:transformer name="i18n"
> > > src="org.apache.cocoon.transformation.I18nTransformer">
> > >             <catalogues default="default">
> > >               <catalogue id="forms" name="messages">
> > >                 <location>resources/i18n</location>
> > > > > >
> <location>resource://org/apache/cocoon/forms/system/i18n</location>
> > >               </catalogue>
> > >               <catalogue id="default" name="messages"
> > > location="resources/i18n"/>
> > >             </catalogues>
> > >           </map:transformer>
> > >     </map:transformers>
> > >
> > >
> > > In resources/i18n/messages.xml I have:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <catalogue xml:lang="en">
> > > <message key="general.field-required">This is a required
> > > field</message>
> > > </catalogue>
> > >
> > >
> > > But I keep on getting the untranslated key as the message.
> > >
> >
> > It probably can't find the folder resources/i18n from the
> point where
> > your sitemap is.
> > Keep in mind that calling <location>resources/i18n</location>
> > means it's
> > relative to where you are. Did you check that?
> >


--

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-------------------------------------------------------------
[EMAIL PROTECTED] / http://www.hippo.nl
--------------------------------------------------------------

> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
--
Fernando D. Mato Mira                         [EMAIL PROTECTED]
Thomson Corporation Switzerland AG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to