def load_lang_conf():
 if osp.isfile(LANG_FILE):
  with open(LANG_FILE, 'r') as f:
   lang = f.read()
 else:
  lang = get_interface_language()
  save_lang_conf(lang)
 if (lang.strip('\n') in DISABLED_LANGUAGES):
  lang = DEFAULT_LANGUAGE
  save_lang_conf(lang)
 return lang

def load_lang_conf ( ) : if osp . isfile ( LANG_FILE ) : with open ( LANG_FILE , 'r' ) as f : lang = f . read ( ) else : lang = get_interface_language ( ) save_lang_conf ( lang ) if ( lang . strip ( '\n' ) in DISABLED_LANGUAGES ) : lang = DEFAULT_LANGUAGE save_lang_conf ( lang ) return lang
load language setting from language config file if it exists .