[opencms-dev] CVS HEAD - static export ignores locale
Alexander Kandzior
alex at opencms.org
Fri Jun 11 18:23:00 CEST 2004
Im not sure if I fully understand what the problem is. I assume it has to to
with the locale handler you build that uses the request context to get the
Locale from the http header?
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Martin Kuba
> Sent: Friday, June 11, 2004 5:14 PM
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] CVS HEAD - static export ignores locale
>
>
> On further investigation, I have found that the locale info
> is stored in CmsObject in CmsRequestContext object,
> and the CmsObject used during static export in
> CmsJspLoader.export() method is the one created in
> OpenCmsServlet.handle() method by calling
>
> cms = OpenCmsCore.getInstance().initCmsObject(null, null,
> OpenCms.getDefaultUsers().getUserExport(), null);
>
> That obviously doesn't provide the resource name
> so the proper locale cannot be found.
>
> But how can I get a proper CmsObject in that place ?
>
> Martin
>
> Martin Kuba wrote:
> > Hi,
> >
> > I am trying to figure out why static export ignores locale.
> > I have put trace listings into CmsDefaultLocaleHandler.getI18nInfo()
> > method and I have found, to my surprise, that it si not
> called during
> > export, so it has no chance of finding the proper locale.
> >
> > To be exact, it is called after I click "export" several times, but
> > *always* with resourceName="//" and stack traces indicate
> that it is
> > from various init methods like:
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Supercomputing Center Brno Martin Kuba
> Institute of Computer Science email: makub at ics.muni.cz
> Masaryk University http://www.ics.muni.cz/~makub/
> Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
> --------------------------------------------------------------
>
More information about the opencms-dev
mailing list