src/cm/utils/i18n.py
author reno
Fri, 11 Dec 2009 12:02:39 +0100
changeset 58 a480a91d63ca
parent 0 40c8f766c9b8
permissions -rw-r--r--
BUG FIX : pdf export PhA tests, TODO fix special html caracters in comments

from django.utils.translation.trans_real import translation

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