protected static function getCurrentLanguage($code) { if ($code != LANGUAGE_CODE) { // User defined Language Code; nothing to do. } else { if (Session::exists('language')) { return Session::get('language'); } } return ucfirst($code); }