def get_locales_dict():
 global locales_dict
 if (not locales_dict):
  locales = _get_locales()
  locales_dict = {}
  for locale in locales:
   locales_dict[str(locale)] = Locale.parse(locale)
 return locales_dict

def get_locales_dict ( ) : global locales_dict if ( not locales_dict ) : locales = _get_locales ( ) locales_dict = { } for locale in locales : locales_dict [ str ( locale ) ] = Locale . parse ( locale ) return locales_dict
get a dict of the available locales e .