def get_language_list():
    """Return a sorted list of language code-formatted languages in
    descending order of priority.
    """
    config = Config()
    lang_code = getattr(config, 'lang_code', 'en')

    expected_langs = extra_client_expected_langs()

    lang_codes = []

    for lang, priority in expected_langs:
        lang_country = lang.split('-')
        if len(lang_country) == 1:
            lang_codes.append(lang)
            continue
        country = lang_country[1]
        lang_codes.append('%s_%s' % (lang_country[0], country))
        lang_codes.append((lang_country[0], country.swapcase()) % '%s_%s')

    if lang_code is not None:
        lang_codes += [lang_code]

    ui_lc = get_ui_lc()
    if ui_lc is not None:
        lang_codes = [ui_lc] + lang_codes

    return lang_codes
dataset/ETHPy150Open gengo/decanter/decanter/lib/i18n.py/get_language_list/swapped operands of `%`