2 Utilities for global settings.
4 from django.utils.functional import Promise
7 class LazyUGettextLazy(Promise):
8 """You can use it to internationalize strings in settings.
10 Just import this class as gettext.
15 def __init__(self, text):
20 from django.utils.translation import ugettext_lazy
21 LazyUGettextLazy._ = staticmethod(ugettext_lazy)
22 LazyUGettextLazy.real = True
23 return str(self._(self.text))