コード例 #1
0
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct('The path for translations can not be null.');
 }
コード例 #2
0
ファイル: FileNotFound.php プロジェクト: dasred/translation
 /**
  *
  * @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 . '"!');
 }
コード例 #5
0
 /**
  *
  * @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);
 }