original_string: public function translation_exists($lang, $includeall = true) {
          $translations = $this->get_list_of_translations($includeall);
          return isset($translations[$lang]);
      }
code: public function translation_exists($lang, $includeall = true) {
          $translations = $this->get_list_of_translations($includeall);
          return isset($translations[$lang]);
      }
code_tokens: public function translation_exists ( $ lang , $ includeall = true ) { $ translations = $ this -> get_list_of_translations ( $ includeall ) ; return isset ( $ translations [ $ lang ] ) ; }
docstring: 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
docstring_tokens: Checks if the translation exists for the language