src/cm/utils/i18n.py
author gibus
Mon, 29 Nov 2010 15:05:21 +0100
changeset 340 9e2b9e568e42
parent 0 40c8f766c9b8
permissions -rw-r--r--
Be more strict by controlling that value ofcomment_op url parameter is set to "reply"

from django.utils.translation.trans_real import translation

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