def get_language_name(lang_code, native=None, error_on_missing=False):
 lang_code = lcode_to_ietf(lang_code)
 language_entry = get_code2lang_map(lang_code)
 if (not language_entry):
  if error_on_missing:
   raise LanguageNotFoundError(("We don't have language code '%s' saved in our lookup dictionary (location: %s). Please manually add it before re-running this command." % (lang_code, settings.LANG_LOOKUP_FILEPATH)))
  else:
   language_entry = {'name': lang_code, 'native_name': lang_code}
 if (not isinstance(language_entry, dict)):
  return language_entry
 elif (native is None):
  return (language_entry.get('native_name') or language_entry.get('ka_name') or language_entry.get('name'))
 elif (not native):
  return language_entry.get('name')
 else:
  return language_entry.get('native_name')

def get_language_name ( lang_code , native = None , error_on_missing = False ) : lang_code = lcode_to_ietf ( lang_code ) language_entry = get_code2lang_map ( lang_code ) if ( not language_entry ) : if error_on_missing : raise LanguageNotFoundError ( ( "We don't have language code '%s' saved in our lookup dictionary (location: %s). Please manually add it before re-running this command." % ( lang_code , settings . LANG_LOOKUP_FILEPATH ) ) ) else : language_entry = { 'name' : lang_code , 'native_name' : lang_code } if ( not isinstance ( language_entry , dict ) ) : return language_entry elif ( native is None ) : return ( language_entry . get ( 'native_name' ) or language_entry . get ( 'ka_name' ) or language_entry . get ( 'name' ) ) elif ( not native ) : return language_entry . get ( 'name' ) else : return language_entry . get ( 'native_name' )
get a languages name in the currently active locale .