Fix side effects with csrf token, add csrf_token to every post form + add ajax (see http://stackoverflow.com/questions/5100539/django-csrf-check-failing-with-an-ajax-post-request), remove django.middleware.csrf.CsrfViewMiddleware ?!
from django.utils.translation.trans_real import translation
def translate_to(value, language_code):
t = translation(language_code)
return getattr(t, 'gettext')(value)