src/cm/utils/i18n.py
author reno
Fri, 11 Dec 2009 12:03:51 +0100
changeset 59 8a2d933209aa
parent 0 40c8f766c9b8
permissions -rw-r--r--
BUG FIX : in text history tab text view frame now expands to maximum

from django.utils.translation.trans_real import translation

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