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;
    }