src/FileTranslator.php
public function setTranslation($key, $value, $language) {
		$messageFile = $this->getMessageFile($language);
		$messageFile->setMessage($key, $value);
		$messageFile->save();

		$this->messages[$language][$key] = $value;
	}
public function setTranslation($key, $value, $language) {
		$messageFile = $this->getMessageFile($language);
		$messageFile->setMessage($key, $value);
		$messageFile->save();

		$this->messages[$language][$key] = $value;
	}
public function setTranslation ( $ key , $ value , $ language ) { $ messageFile = $ this -> getMessageFile ( $ language ) ; $ messageFile -> setMessage ( $ key , $ value ) ; $ messageFile -> save ( ) ; $ this -> messages [ $ language ] [ $ key ] = $ value ; }
Add or change a translation

@param string $key Key of translation
@param string $value Message of translation
@param string $language Language to add translation
Add or change a translation