python - Where is the function 'real_ugettext' in django? -


in django.utils.translations.__init__.py:

def ugettext(message):     return real_ugettext(message) 

i can't find it.

read that file little closer:

def delayed_loader(*args, **kwargs):     """     replace each real_* function corresponding function either     trans_real or trans_null (e.g. real_gettext replaced     trans_real.gettext or trans_null.gettext). function run once,     first time i18n method called. replaces i18n methods @     once @ time.     """     #... 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -