src/cm/utils/i18n.py
author ymh <ymh.work@gmail.com>
Thu, 06 Mar 2014 21:49:28 +0000
changeset 591 2274e86e1d72
parent 0 40c8f766c9b8
permissions -rw-r--r--
ignore web folder + add pexpect to python dependencies

from django.utils.translation.trans_real import translation

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