summaryrefslogtreecommitdiff
path: root/example_project/__init__.py
diff options
context:
space:
mode:
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
commit7c3ce63559adb00132cc06684ad26b96e450ffcc (patch)
tree76157a4a966eaa271b5932809181f39aac89b0bd /example_project/__init__.py
parent3ab60ea85ee7a05bdef719f5e155f917d1eb37e0 (diff)
downloadIshtar-7c3ce63559adb00132cc06684ad26b96e450ffcc.tar.bz2
Ishtar-7c3ce63559adb00132cc06684ad26b96e450ffcc.zip
Make lazy translations
Diffstat (limited to 'example_project/__init__.py')
-rw-r--r--example_project/__init__.py3
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")