示例#1
0
 def update_lang(self, value):
     self.lang = langs.get_lang_dict(value)
     self.locale = langs.get_locale_dict(self, value)
     common.SETTINGS['LANGUAGE'] = value
     common.LOCALE = self.locale
     for key in iterkeys(common.LOCALE):
         common.__dict__[key] = common.LOCALE[key]
示例#2
0
文件: items.py 项目: jam-py/jam-py
 def update_lang(self, value):
     self.lang = langs.get_lang_dict(self, value)
     self.locale = langs.get_locale_dict(self, value)
     common.SETTINGS['LANGUAGE'] = value
     common.LOCALE = self.locale
     for key in iterkeys(common.LOCALE):
         common.__dict__[key] = common.LOCALE[key]
示例#3
0
 def set_language(self, value):
     self.__language = value
     self.lang = langs.get_lang_dict(value)
     common.SETTINGS['LANGUAGE'] = value