src/cm/utils/i18n.py
author raph
Tue, 24 Nov 2009 10:31:42 +0100
changeset 6 2fae765d6ebc
parent 0 40c8f766c9b8
permissions -rw-r--r--
Merge with 8e6d7ff63451c4597c2ae79d12b319114087aa12

from django.utils.translation.trans_real import translation

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