src/cm/utils/i18n.py
author raph
Thu, 22 Apr 2010 18:09:44 +0200
changeset 264 b545c82610df
parent 0 40c8f766c9b8
permissions -rw-r--r--
fix comment deletion detection when using html format (and ckeditor)

from django.utils.translation.trans_real import translation

def translate_to(value, language_code):
    t = translation(language_code)    
    return getattr(t, 'gettext')(value)