public function updateEntry($msgid, $translation, $positionMsgstr = 0)
    {
        if (
            !isset($this->entriesAsArrays[$msgid])
            || !is_string($translation)
            || !isset($this->entriesAsArrays[$msgid]['msgstr'][$positionMsgstr])
        ) {
            throw new \Exception('Cannot update entry translation');
        }
        $this->removeFuzzyFlagForMsgId($msgid);
        $this->entriesAsArrays[$msgid]['msgstr'][$positionMsgstr] = $translation;
    }
public function updateEntry($msgid, $translation, $positionMsgstr = 0)
    {
        if (
            !isset($this->entriesAsArrays[$msgid])
            || !is_string($translation)
            || !isset($this->entriesAsArrays[$msgid]['msgstr'][$positionMsgstr])
        ) {
            throw new \Exception('Cannot update entry translation');
        }
        $this->removeFuzzyFlagForMsgId($msgid);
        $this->entriesAsArrays[$msgid]['msgstr'][$positionMsgstr] = $translation;
    }
public function updateEntry ( $ msgid , $ translation , $ positionMsgstr = 0 ) { if ( ! isset ( $ this -> entriesAsArrays [ $ msgid ] ) || ! is_string ( $ translation ) || ! isset ( $ this -> entriesAsArrays [ $ msgid ] [ 'msgstr' ] [ $ positionMsgstr ] ) ) { throw new \ Exception ( 'Cannot update entry translation' ) ; } $ this -> removeFuzzyFlagForMsgId ( $ msgid ) ; $ this -> entriesAsArrays [ $ msgid ] [ 'msgstr' ] [ $ positionMsgstr ] = $ translation ; }
Allows modification of a single translation of an entry

@param $msgid string msgid of the entry which should be updated
@param $translation string new translation for an msgstr by msgid
@param $positionMsgstr integer spezification which of the msgstr
should be changed

@throws \Exception
Allows modification of a single translation of an entry