/** * constructor */ public function __construct() { parent::__construct('The path for translations can not be null.'); }
/** * * @param string $path * @param string $locale * @param string $file */ public function __construct($path, $locale, $file) { parent::__construct('Translation file "' . $file . '" not found for locale "' . $locale . '" in "' . $path . '"!'); }
/** * constructor * * @param string $type */ public function __construct($type) { parent::__construct('The ' . $type . ' locale for translations can not be null.'); }
/** * * @param string $path * @param string $locale * @param string $file */ public function __construct($path, $locale, $file) { parent::__construct('Unable to load or retrieve data from the requested language file: "' . $file . '" for locale "' . $locale . '" in "' . $path . '"!'); }
/** * * @param mixed $type * @param string $key * @param string $path * @param string $locale * @param string $file */ public function __construct($value, $key, $path, $locale, $file) { parent::__construct('Translation keys must be type of string. In path "' . $path . '", locale "' . $locale . '", file "' . $file . '" is the key "' . $key . '" type of ' . gettype($value) . '!'); }
/** * constructor */ public function __construct() { parent::__construct('The translator is not defined!'); }
/** * * @param string $key * @param string $locale * @param string $translationFile * @param string $translationKey */ public function __construct($key, $locale, $translationFile, $translationKey) { parent::__construct('Invalid translation key "' . $key . '" for locale "' . $locale . '"! Can not expand to file name and translation entry key.'); $this->setTranslationFile($translationFile)->setTranslationKey($translationKey); }