I know there is a locale setting in etc/zope.conf, and I make use of it.
The problem now, is that I have a multilingual site that I would like to have
support multiple locales, per request: One request could be for the french
site and content, using the fr_CA locale in my case, but another could be for
english, and en_CA ... Localization is done through a traversal hook.
So right now I call setlocale() on a per request basis, and it works fine in
So I'm wondering:
- I see the docs mention setlocale might not be threadsafe, since Zope is
threaded, anyone know the implications?
- If I call setlocale() during traversal, could that setting affect other
- If the above 2 are indeed problems, is there some nice way to do set
per-request locales, short of completely implementing a custom way of doing it?
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -