public static function setLang($lang_code) { if ($lang_code) { if (is_dir(Pft_Config::getLangPath() . $lang_code)) { self::$lang = $lang_code; } } }