cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kavitha ramesh" <kavirames...@rediffmail.com>
Subject Re: RE: RE: Problem with jsp in i18n
Date Fri, 05 Jul 2002 11:38:29 GMT

Hi Konstantin,

I used the sitemap using the transformer.But when I run it  , iam 
getting  the page with the title as untranslatedtext.It is not 
able to dispay the messages from messages_en.xml and 
messages_de.xml.Please help me,,,

Kavitha.





On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
> > From: kavitha ramesh [mailto:kaviramesh77@rediffmail.com]
> >
> > 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:kaviramesh77@rediffmail.com]
> > > >
> > > >
> > > > 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:
> > ><cocoon-users-unsubscribe@xml.apache.org>
> > > > For additional commands, e-mail:
> > ><cocoon-users-help@xml.apache.org>
> > > >
> > >
> > 
> >---------------------------------------------------------------------
> > >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:
> > ><cocoon-users-unsubscribe@xml.apache.org>
> > >For additional commands, e-mail:
> > ><cocoon-users-help@xml.apache.org>
> > >
> >
> >
> > 
>---------------------------------------------------------------------
> > 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:     
><cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   
><cocoon-users-help@xml.apache.org>
> >
>
>---------------------------------------------------------------------
>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:     
><cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   
><cocoon-users-help@xml.apache.org>
>

_________________________________________________________
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message