diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 10:30:51 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 10:30:51 +0200 |
commit | 7c3ce63559adb00132cc06684ad26b96e450ffcc (patch) | |
tree | 76157a4a966eaa271b5932809181f39aac89b0bd | |
parent | 3ab60ea85ee7a05bdef719f5e155f917d1eb37e0 (diff) | |
download | Ishtar-7c3ce63559adb00132cc06684ad26b96e450ffcc.tar.bz2 Ishtar-7c3ce63559adb00132cc06684ad26b96e450ffcc.zip |
Make lazy translations
-rw-r--r-- | example_project/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example_project/__init__.py b/example_project/__init__.py index 0cfc3ae26..c6adb7559 100644 --- a/example_project/__init__.py +++ b/example_project/__init__.py @@ -1,5 +1,6 @@ # force the retranslation of generated strings and external module -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ + _(u"username") _(u"email address") _(u"warehouse") |