'Returns the Locale for the given locale code.
If it is not supported, we raise an exception.'

@classmethod
def get(cls, code):

    if (not hasattr(cls, '_cache')):
        cls._cache = {}
    if (code not in cls._cache):
        assert (code in _supported_locales)
        translations = _translations.get(code, None)
        if (translations is None):
            locale = CSVLocale(code, {})
        elif _use_gettext:
            locale = GettextLocale(code, translations)
        else:
            locale = CSVLocale(code, translations)
        cls._cache[code] = locale
    return cls._cache[code]
