public static function getDisplayLanguages($languages, $languageRedirects)
    {
        foreach ($languages as $key => $value) {
            $key = (isset($languageRedirects[$key])) ? $languageRedirects[$key] : $key;
            $redirects[$key] = $value;
        }
        return $redirects;
    }
public static function getDisplayLanguages($languages, $languageRedirects)
    {
        foreach ($languages as $key => $value) {
            $key = (isset($languageRedirects[$key])) ? $languageRedirects[$key] : $key;
            $redirects[$key] = $value;
        }
        return $redirects;
    }
public static function getDisplayLanguages ( $ languages , $ languageRedirects ) { foreach ( $ languages as $ key => $ value ) { $ key = ( isset ( $ languageRedirects [ $ key ] ) ) ? $ languageRedirects [ $ key ] : $ key ; $ redirects [ $ key ] = $ value ; } return $ redirects ; }
Returns list of languages with applied language redirects.

@param array $languages
@param array $languageRedirects
@return array
Returns list of languages with applied language redirects .