protected function checkLanguage($language)
    {
        $full_language = mb_strtolower($language);
        $lang = substr($full_language, 0, 2);
        if ($lang == 'jp') {
            $lang = 'ja';
        } elseif ($lang == 'pt') {
            $lang = 'pt_BR';
        } elseif ($lang == 'ug') {
            $lang = 'ug_CN';
        } elseif ($lang == 'zh') {
            $lang = ($full_language == 'zh-tw' || $full_language == 'zh_tw') ? 'zh_TW' : 'zh_CN';
        } elseif ($lang == 'be') {
            // for belarusian use russian instead english
            $lang = 'ru';
        }
        return $lang;
    }
protected function checkLanguage($language)
    {
        $full_language = mb_strtolower($language);
        $lang = substr($full_language, 0, 2);
        if ($lang == 'jp') {
            $lang = 'ja';
        } elseif ($lang == 'pt') {
            $lang = 'pt_BR';
        } elseif ($lang == 'ug') {
            $lang = 'ug_CN';
        } elseif ($lang == 'zh') {
            $lang = ($full_language == 'zh-tw' || $full_language == 'zh_tw') ? 'zh_TW' : 'zh_CN';
        } elseif ($lang == 'be') {
            // for belarusian use russian instead english
            $lang = 'ru';
        }
        return $lang;
    }
protected function checkLanguage ( $ language ) { $ full_language = mb_strtolower ( $ language ) ; $ lang = substr ( $ full_language , 0 , 2 ) ; if ( $ lang == 'jp' ) { $ lang = 'ja' ; } elseif ( $ lang == 'pt' ) { $ lang = 'pt_BR' ; } elseif ( $ lang == 'ug' ) { $ lang = 'ug_CN' ; } elseif ( $ lang == 'zh' ) { $ lang = ( $ full_language == 'zh-tw' || $ full_language == 'zh_tw' ) ? 'zh_TW' : 'zh_CN' ; } elseif ( $ lang == 'be' ) { // for belarusian use russian instead english $ lang = 'ru' ; } return $ lang ; }
Set elFinder's correct "lang" param
@param string $language
@return string
Set elFinder s correct lang param