src/cm/utils/i18n.py
author raph
Tue, 20 Apr 2010 11:37:33 +0200
changeset 260 9075dc2fb93c
parent 0 40c8f766c9b8
permissions -rw-r--r--
Merge with 0371caf8bcc6864a0f2250933431d3a913c9b379

from django.utils.translation.trans_real import translation

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