i18n question

2012-04-15 Thread Sharpek
Welcome, I was wondering how to dynamicly change the actual language version in the application. I would like to do something like this: 1. Request 2. Part of code of my application 3. Change of application language from EN to DE 4. Generate content of application in DE language 5. Change

Re: i18n question

2012-04-15 Thread Chris Lambacher
Hi, There isn't the ability to do that built in that will do that, but the pieces are there for you to be able to do it (as I am and have been since version 1.0 or 1.1). Depending on the Libraries you are depending on and their level of integration to the Pyramid i18n machinery you may need to do

Re: i18n question

2012-04-15 Thread Michael Merickel
pedantic from pyramid.request import Request from pyramid.i18n import get_localizer class MyRequest(Request) def translation_activate_language(self, culture): if self._LOCALE_ == culture: return self.localizer self._LOCALE_ = culture del self.localizer