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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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