15👍
✅
Django provides _lazy variants of the translation functions (for example ugettext_lazy
) so you can ark strings for translations at the access time (as opposed to when the translation function is called).
It’s documented in details at https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#lazy-translation
Source:stackexchange.com