> From: kavitha ramesh [mailto:[EMAIL PROTECTED]] 
> 
> Hi Konstantin,
> 
> Thanks for your mail.It is only another extension and Iam not 
> using any JSP Generator.I use Cocoon 2.0.I have setup my sitemap 
> as follows:
> 
> <map:match pattern="jsp/*">
> <map:generate type="jsp" src="/language/jsp/{1}.jsp"/>
        
        <map:transform type="i18n" />

> <map:transform src="simple.xsl"/>
> <map:serialize type="html"/>
> </map:match>

Hope the above solves your problem.

Konstantin

> 
> My directory structure is like this:
> 
> Language-->Name of the Directory
>     *jsp
>        *simple.jsp
>     *translations
>        * messages_en.xml
>        * messages_de.xml
>     *sitemap.xmap
>     *simple.xml
>     *simple.xsl
> 
> Kavitha
> 
> On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
> > > From: kavitha ramesh [mailto:[EMAIL PROTECTED]]
> > >
> > >
> > > Hi,
> > >
> > > Iam working with i18n in Cocoon.And I have a file called
> > > simple.xml which displays a title in English and German.When 
> >I
> > > converted the simple.xml to a simple.jsp only the front page 
> >is
> > > displayed.But Iam not able to display it in English and
> > > German.Here are the files, simple.jsp, messages_en.xml and
> > > messages_de.xml:
> >
> >Why are you using *.jsp: is it only another extension or you are 
> >using the
> >JspGenerator with it? Did you setup your sitemap correctly? Look 
> >for 'i18n'
> >in Cocoon logs to see if the i18n transformer was called.
> >
> >What is the version of your Cocoon?
> >
> >Konstantin
> >
> > >
> > > simple.jsp
> > > ___________
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <root xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>
> > > <title>
> > > <i18n:text>titlemessage</i18n:text>
> > > </title>
> > > <menu>
> > > <item>
> > > <link>
> > > <href>simple.jsp?locale=en_US</href>
> > > <title>English </title>
> > > </link>
> > > </item>
> > > <item>
> > > <link>
> > > <href>simple.jsp?locale=de_DE</href>
> > > <title>German </title>
> > > </link>
> > > </item>
> > > <item>
> > > <link>
> > > <href>simple.jsp?locale=hi_IN</href>
> > > <title>Hindi </title>
> > > </link>
> > > </item>
> > > </menu>
> > > </root>
> > >
> > > messages_en.xml
> > > _______________
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!-- English message catalogue file for cocoon2 sample 
> >webapp
> > > -->
> > > <catalogue xml:lang="en">
> > > <message key="titletext">Goood Day!</message>
> > > </catalogue>
> > >
> > > messages_de.xml
> > > _______________
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!-- German message catalogue file for cocoon2 sample webapp 
> >-->
> > > <catalogue xml:lang="de">
> > > <message key="titletext">Guten Tag!</message>
> > > </catalogue>
> > >
> > > If someone knows please help me!
> > >
> > > Kavitha.
> > >
> > > _________________________________________________________
> > > Click below  to experience Aishwarya Rai's beauty secrets. 
> >New
> > > International Lux Skincare - It's not just soap, It's 
> >skincare.
> > > http://www.luxskincare.com
> > >
> > >
> > > 
> >---------------------------------------------------------------------
> > > Please check that your question  has not already been answered 
> >in the
> > > FAQ before posting.     
> ><http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:     
> ><[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   
> ><[EMAIL PROTECTED]>
> > >
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in 
> >the
> >FAQ before posting.     
> ><http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail:     
> ><[EMAIL PROTECTED]>
> >For additional commands, e-mail:   
> ><[EMAIL PROTECTED]>
> >
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to