2 Utilities for global settings.
4 from django.utils.encoding import python_2_unicode_compatible
5 from django.utils.functional import Promise
16 @python_2_unicode_compatible
17 class LazyUGettextLazy(Promise):
18 """You can use it to internationalize strings in settings.
20 Just import this class as gettext.
25 def __init__(self, text):
30 from django.utils.translation import ugettext_lazy
31 LazyUGettextLazy._ = staticmethod(ugettext_lazy)
32 LazyUGettextLazy.real = True
33 return str(self._(self.text))