Re: JPublish and Localization

"Derick Fernando" <[email protected]>
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <001001c275bc$5b0152b0$0501a8c0@xenom>
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
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.