src/cm/utils/i18n.py
author ymh <ymh.work@gmail.com>
Tue, 08 Apr 2014 16:21:53 +0200
changeset 628 ecf0e467eeb8
parent 0 40c8f766c9b8
permissions -rw-r--r--
adapt dev enviromenent to the new test-suite location

from django.utils.translation.trans_real import translation

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