public function updateEntries($msgid, $translation)
    {
        if (
            !isset($this->entriesAsArrays[$msgid])
            || !is_array($translation)
            || sizeof($translation) != sizeof($this->entriesAsArrays[$msgid]['msgstr'])
        ) {
            throw new \Exception('Cannot update entry translation');
        }
        $this->removeFuzzyFlagForMsgId($msgid);
        $this->entriesAsArrays[$msgid]['msgstr'] = $translation;
    }
public function updateEntries($msgid, $translation)
    {
        if (
            !isset($this->entriesAsArrays[$msgid])
            || !is_array($translation)
            || sizeof($translation) != sizeof($this->entriesAsArrays[$msgid]['msgstr'])
        ) {
            throw new \Exception('Cannot update entry translation');
        }
        $this->removeFuzzyFlagForMsgId($msgid);
        $this->entriesAsArrays[$msgid]['msgstr'] = $translation;
    }
public function updateEntries ( $ msgid , $ translation ) { if ( ! isset ( $ this -> entriesAsArrays [ $ msgid ] ) || ! is_array ( $ translation ) || sizeof ( $ translation ) != sizeof ( $ this -> entriesAsArrays [ $ msgid ] [ 'msgstr' ] ) ) { throw new \ Exception ( 'Cannot update entry translation' ) ; } $ this -> removeFuzzyFlagForMsgId ( $ msgid ) ; $ this -> entriesAsArrays [ $ msgid ] [ 'msgstr' ] = $ translation ; }
Allows modification of all translations of an entry

@param $msgid string msgid of the entry which should be updated
@param $translation array of strings new Translation for all msgstr by msgid

@throws \Exception
Allows modification of all translations of an entry