Exemplo n.º 1
0
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct('The path for translations can not be null.');
 }
Exemplo n.º 2
0
 /**
  *
  * @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 . '"!');
 }
Exemplo n.º 3
0
 /**
  * constructor
  *
  * @param string $type
  */
 public function __construct($type)
 {
     parent::__construct('The ' . $type . ' locale for translations can not be null.');
 }
Exemplo n.º 4
0
 /**
  *
  * @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) . '!');
 }
Exemplo n.º 6
0
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct('The translator is not defined!');
 }
Exemplo n.º 7
0
 /**
  *
  * @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);
 }