>
> 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 global locale of the entire Django process, or
> the test framework or anything like that. If you are wanting to run a
> particular test in a certain locale, you will have to call
> translation.activate() at the start of the function and
> translation.deactivate() at the end -- don't forget the second one or
> other tests will fail due to being in an unexpected locale.

That's exactly the information I needed. I already hunted it down to
the Translation class but your information is right on spot.

Thanks for the fast answer.

Regards,
Peter Eschler

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to