def get_lang_class(lang):
global LANGUAGES<EOL>entry_point = get_entry_point("<STR_LIT>", lang)<EOL>if entry_point is not None:<EOL><INDENT>LANGUAGES[lang] = entry_point<EOL>return entry_point<EOL><DEDENT>if lang not in LANGUAGES:<EOL><INDENT>try:<EOL><INDENT>module = importlib.import_module("<STR_LIT>" % lang, "<STR_LIT>")<EOL><DEDENT>except ImportError as err:<EOL><INDENT>raise ImportError(Errors.E048.format(lang=lang, err=err))<EOL><DEDENT>LANGUAGES[lang] = getattr(module, module.__all__[<NUM_LIT:0>])<EOL><DEDENT>return LANGUAGES[lang]<EOL>
Import and load a Language class.

    lang (unicode): Two-letter language code, e.g. 'en'.
    RETURNS (Language): Language class.