[Zope] Re: i18n/L10n support in zope2
harshad behere
hbehere at zeomega.com
Thu Apr 10 05:55:52 EDT 2008
Maurits van Rees wrote:
>
> In Firefox you can use the livehttpheaders extension to check those.
> I don't know if there is something similar to IE.
>
> In zope this information should be visible somewhere in the request
> object. To display the complete request in a page template for
> inspection you can probably do this:
>
> <div tal:replace="structure request" />
>
> or simply this
>
> <div tal:content="request" />
>
>
>
>
Ooops.. I missed out "REQUEST" ....
While debugging negotiation mechanizm of PTS I found following headers
are being consulted - HTTP_ACCEPT_LANGUAGE,
_pts_negotiator_cache_language,_pts_catalog_names_PlacelessTranslationService_???
And here are the details --
MS-IE 7.0.5730.11 --
HTTP_ACCEPT_LANGUAGE 'de-DE,en-us;q=0.5'
_pts_negotiator_cache_language {('cs', 'el', 'de', 'pt-br', 'en'): None}
_pts_catalog_names_PlacelessTranslationService_none []
Mozilla Firefox 2.0.0.4 --
HTTP_ACCEPT_LANGUAGE 'de,en;q=0.7,en-us;q=0.3'
_pts_negotiator_cache_language {('cs', 'el', 'de', 'pt-br', 'en'): 'de'}
_pts_catalog_names_PlacelessTranslationService_de
['PlacelessTranslationService.i18n-pts-de.po']
Here are related entries from .po file -
"Language-code: de\n"
"Language-name: Deutsch\n"
I suspect 'de-DE' from MSIE is the issue here.
Thank you,
Harshad.
More information about the Zope
mailing list