This commit is contained in:
yumoqing 2022-05-20 19:52:02 +08:00
parent b555938e84
commit 91affcd3e4

View File

@ -153,7 +153,8 @@ class MiniI18N:
threadid = threading.currentThread() threadid = threading.currentThread()
return self.clientLangs[threadid]['lang'] return self.clientLangs[threadid]['lang']
def getI18N(coding='utf8'): def getI18N(path=None, coding='utf8'):
if path is None:
path = ProgramPath() path = ProgramPath()
i18n = MiniI18N(path,coding) i18n = MiniI18N(path,coding)
return i18n return i18n