(lang_code)
This is needed since we use non-standard language codes as alias, for e.g. 'fra' instead of 'fr' for French
This is needed since we use non-standard language codes as alias, for e.g. 'fra' instead of 'fr' for French
This is needed since we use non - standard language codes as alias for e . g . fra instead of fr for French
def aliased_language_name(lang_code):
    """
    This is needed since we use non-standard language codes as alias, for e.g. 'fra' instead of 'fr' for French
    """
    try:
        return language_name(lang_code)
    except KeyError:
        for code, name in settings.LANGUAGES:
            if code == lang_code:
                return name
        raise KeyError('Unknown language code %s' % lang_code)
def aliased_language_name ( lang_code ) : try : return language_name ( lang_code ) except KeyError : for code , name in settings . LANGUAGES : if code == lang_code : return name raise KeyError ( 'Unknown language code %s' % lang_code )