def _install_custom_language():
 lang_file = resources.config_home(u'language')
 if (not core.exists(lang_file)):
  return
 try:
  lang = core.read(lang_file).strip()
 except:
  return
 if lang:
  compat.setenv(u'LANGUAGE', lang)

def _install_custom_language ( ) : lang_file = resources . config_home ( u'language' ) if ( not core . exists ( lang_file ) ) : return try : lang = core . read ( lang_file ) . strip ( ) except : return if lang : compat . setenv ( u'LANGUAGE' , lang )
allow a custom language to be set in ~/ .