original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Set elFinder's correct "lang" param
  @param string $language
  @return string
docstring_tokens: Set elFinder s correct lang param