Jun 20, 2011

Перевод разных слов на разных языках в django

from django.utils.translation.trans_real import translation

trans_en = translation('en')
trans_es = translation('es')

print trans_en.ugettext('word')
print trans_es.ugettext('word')

No comments: