code: def allLocales(self):
          
          if self._allLocales:
              return self._allLocales
          
          expr = re.compile('[a-z]+_[A-Z]+')
          locales = babel.core.localedata.locale_identifiers()
          babel_locales = {}
          for locale in locales:
              if expr.match(locale):
                  babel_locale = babel.Locale.parse(locale)
                  if babel_locale.territory and babel_locale.language:
                      babel_locales[babel_locale.territory] = babel_locale
          
          babel_locales = babel_locales.values()
          babel_locales.sort(key=str)
          self._allLocales = babel_locales
          return self._allLocales
docs: Returns all the locales that are defined within the babel
          architecture.
          
          :return     [<str>, ..]