【发布时间】:2010-01-20 08:45:31
【问题描述】:
【问题讨论】:
【问题讨论】:
请仔细阅读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.
"""
#...
【讨论】:
Django 做了一些令人讨厌的全局修改魔法,以便用同一包中的 trans_real 或 trans_null 中的 ugettext 替换它。
【讨论】: