0
django.utils.translations.__init__.py
에서 :django에서 'real_ugettext'함수는 어디에 있습니까?
def ugettext(message):
return real_ugettext(message)
나는 그것을 찾을 수 없습니다.
django.utils.translations.__init__.py
에서 :django에서 'real_ugettext'함수는 어디에 있습니까?
def ugettext(message):
return real_ugettext(message)
나는 그것을 찾을 수 없습니다.
읽기 that file 좀 더 가까이 :
def delayed_loader(*args, **kwargs):
"""
Replace each real_* function with the corresponding function from either
trans_real or trans_null (e.g. real_gettext is replaced with
trans_real.gettext or trans_null.gettext). This function is run once, the
first time any i18n method is called. It replaces all the i18n methods at
once at that time.
"""
#...
장고는 같은 꾸러미에있는 trans_real 또는 trans_null의 ugettext로 대체하기 위해 불쾌한 대용 마법을 사용합니다.