示例#1
0
 /**
  * Sets a translation in this translator
  * @param string $key Key of the translation
  * @param string $translation Translation string
  * @return null
  */
 public function setTranslation($key, $translation)
 {
     $this->io->setTranslation($this->locale, $key, $translation);
 }
示例#2
0
 /**
  * Sets a translation in this translator
  * @param string $key Key of the translation
  * @param string $translation Translation string
  * @return null
  */
 public function setTranslation($key, $translation)
 {
     $this->io->setTranslation($this->locale->getCode(), $key, $translation);
 }