RE: JPublish and Localization

"Anthony Eden" <[email protected]>
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <000f01c275f1$96e826c0$01000001@mobile1>
I agree that the second syntax is probably a little bit easier, so I may
go ahead and at it in.

The reason I can't add it to the Page class is that Page objects are
cached and shared among requests for performance reason.  Thus the
wrapper would actually be an instance tied to each request which wraps
the shared Page object.  Does that make sense?

Sincerely,
Anthony Eden

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Derick Fernando
> Sent: Thursday, October 17, 2002 5:06 AM
> To: 'jpublish-developer'
> Subject: Re: [JPublish-developer] JPublish and Localization
> 
> 
> MessageHello,
> 
> Sorry my second post didn't go to the list.
> 
> On second thought Anthony, the alternate syntax might be 
> handy if the property name is changed. But this is mostly a 
> small annoyance.
>
> 
> ><property name="title">
> >    <value>Title</value>
> >   <value locale="fr">Titre</value>
> ></property>
> 
> I don't totally understand the codebase for JPublish at the 
> moment, so bare with me please. So basically, what you are 
> saying for automatic locale switching is: Wrap 
> org.jpublish.Page with PageWrapper and this would set the 
> locales. Why not alter the Page Class itself so that it uses 
> something like
> req.getHeader("Accept-Language") to figure out the language. 
> Then serve up the desired localized content if it exists?.
> 
> Thanks,
> Derick
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay you up 
> to $1,000 for every account that you consolidate with us. 
> http://ad.doubleclick.net/clk;4749864;7604308;> v?
> 
http://www.viaverio.com/consolidator/osdn.cfm

_______________________________________________
Jpublish-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/jpublish-developer



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.