37 throw new \InvalidArgumentException(
38 "Default language '$default_language' is not in the languages to be installed."
42 if (count($diff) > 0) {
43 throw new \InvalidArgumentException(
44 "Local languages " . implode(
", ", $diff) .
" are not in the languages to be installed."
54 if (!strlen($l) == 2) {
55 throw new \InvalidArgumentException(
56 "'$l' is not a valid language id."
An exception for terminatinating execution or to throw for unit testing.
__construct(string $default_language, array $install_languages, array $install_local_languages)
getInstallLocalLanguages()
checkLanguageName(string $l)
A configuration for the setup.