src/cm/utils/i18n.py
author raph
Tue, 20 Apr 2010 10:47:42 +0200
branchpreserve_html
changeset 258 a79a3c91d9b5
parent 0 40c8f766c9b8
permissions -rw-r--r--
Merge with 7b7ba5e472685e124441dcd8acef17ea9b8d80f2

from django.utils.translation.trans_real import translation

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