Re: [i18n] How to switch/force a language from inside a usual view function?

2008-07-17 Thread Valery Khamenya
Hi Malcolm, thanks for your reply. Neither activate('de') nor translation.activate('de') have been accepted by Python from inside my view function -- some import needed? Anyway, both calls look for me rather like application-wide "side-effects" -- what do you think? Ideally, I'd like to apply

Re: [i18n] How to switch/force a language from inside a usual view function?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 10:27 -0700, Valery wrote: > Hi all, > > I would like to force a translation language according to URI- > parameter. Something similar is done here: > http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/#thecode > > but it is done

[i18n] How to switch/force a language from inside a usual view function?

2008-07-16 Thread Valery
Hi all, I would like to force a translation language according to URI- parameter. Something similar is done here: http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/#thecode but it is done there on the middleware level. In my case a decision about