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]
Exemple #2
0
 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]