
Oct. 21, 2020
5:58 a.m.
21.10.20 05:23, Steve Barnes пише:
Of course there is also the problem of detecting any functions assigned to _ or _T that may be called - otherwise there is a risk of breaking the typical gettext usage in I18n!
gettext is usually mapped to global _, so it is not affected. Also, even if eliminate globals, gettext is mapped using gettext.install() which does not use assignment to _. It does: import builtins builtins.__dict__['_'] = self.gettext