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