Possible Duplicate:
Django switching, for a block of code, switch the language so translations are done in one language
Is there an easy way to get Django to switch language for a single template rendering operation?
In my case the user may trigger an event that will require to message a person that is not speaking the same language.
For instance – user is English speaker but invokes an action that messages a Spanish speaking person – thus I need to generate the outgoing content in Spanish language.
I am aware that it is possible by faking the Request and using RequestContext, however I would prefer a shorter/cleaner solution.
Are you looking for something like the following:
For better code reuse, you can refactor this as a context manager.