public function translation_exists($lang, $includeall = true) {
        $translations = $this->get_list_of_translations($includeall);
        return isset($translations[$lang]);
    }
public function translation_exists($lang, $includeall = true) {
        $translations = $this->get_list_of_translations($includeall);
        return isset($translations[$lang]);
    }
public function translation_exists ( $ lang , $ includeall = true ) { $ translations = $ this -> get_list_of_translations ( $ includeall ) ; return isset ( $ translations [ $ lang ] ) ; }
Checks if the translation exists for the language

@param string $lang moodle translation language code
@param bool $includeall include also disabled translations
@return bool true if exists
Checks if the translation exists for the language