diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 10:29:54 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 10:29:54 +0200 |
commit | 3ab60ea85ee7a05bdef719f5e155f917d1eb37e0 (patch) | |
tree | 56211bb9071ad020e369bd1afcfb2173dd8b18aa /ishtar_common | |
parent | 988303a46eafe8343dd2eff2bd2f0c67ba9e44ed (diff) | |
download | Ishtar-3ab60ea85ee7a05bdef719f5e155f917d1eb37e0.tar.bz2 Ishtar-3ab60ea85ee7a05bdef719f5e155f917d1eb37e0.zip |
Revert "Move translation strings"
This reverts commit 4204e06da0db0654b66bc766006f4143603c2695.
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/__init__.py | 9 | ||||
-rw-r--r-- | ishtar_common/models.py | 11 |
2 files changed, 8 insertions, 12 deletions
diff --git a/ishtar_common/__init__.py b/ishtar_common/__init__.py index 496fe6c68..2b432d908 100644 --- a/ishtar_common/__init__.py +++ b/ishtar_common/__init__.py @@ -1,3 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2014-2017 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2014-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> + +from django.utils.translation import ugettext_lazy as _ + +# overload of translation of registration module +_(u"username") +_(u"email address") +_(u"Related item") diff --git a/ishtar_common/models.py b/ishtar_common/models.py index e25b0777b..5912c8377 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -72,17 +72,6 @@ from ishtar_common.data_importer import Importer, ImportFormater, \ logger = logging.getLogger(__name__) -def lazy_translations(): - """ - This function is never called. Only a container for translations, - not reached on first evaluation of the module. - There must be a cleaner way to do that... - """ - _(u"username") - _(u"email address") - _(u"Related item") - - def post_save_user(sender, **kwargs): user = kwargs['instance'] |