コード例 #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
ファイル: items.py プロジェクト: jp-96/jam-py.jp-96
 def set_language(self, value):
     self.__language = value
     self.lang = langs.get_lang_dict(value)
     common.SETTINGS['LANGUAGE'] = value