def get_lang():
 langs = i18n.get_lang()
 if langs:
  return langs[0]
 else:
  return 'en'

def get_lang ( ) : langs = i18n . get_lang ( ) if langs : return langs [ 0 ] else : return 'en'
try to figure out what language to display the interface in .