>
> You are misunderstanding what the set_language view does. That view sets
> up the client's locale cookie so that whenever a view is processed for
> that particular web client, it will be done in the locale of "de" (in
> your case).
Ok. Thanks for making this clear.
>
> It does not change the
On Sun, 2009-02-15 at 13:29 -0800, peschler wrote:
> Hi,
>
> i'm currently writing unit tests for an application where I need to
> change the language in the test client.
>
> I tried using the "django.views.i18n.set_language" view within a test
> case like so:
>
> ---
> def setUp(self):
>
Hi,
i'm currently writing unit tests for an application where I need to
change the language in the test client.
I tried using the "django.views.i18n.set_language" view within a test
case like so:
---
def setUp(self):
self.client.post('/set_language/', data={'language': 'de'})
d
3 matches
Mail list logo