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