private function addMsgidPluralToOutput(array $entry, string $output): array
    {
        if (isset($entry['msgid_plural'])) {
            // Special clean for msgid_plural
            if (\is_string($entry['msgid_plural'])) {
                $msgidPlural = \explode($this->eol, $entry['msgid_plural']);
            } elseif (\is_array($entry['msgid_plural']) && \count($entry['msgid_plural']) !== 0) {
                $msgidPlural = $entry['msgid_plural'];
            } else {
                throw new DumpException('msgid_plural not string or array.');
            }

            $output .= 'msgid_plural ';

            foreach ((array) $msgidPlural as $plural) {
                $output .= $this->cleanExport($plural) . $this->eol;
            }
        }

        return [$entry, $output];
    }
private function addMsgidPluralToOutput(array $entry, string $output): array
    {
        if (isset($entry['msgid_plural'])) {
            // Special clean for msgid_plural
            if (\is_string($entry['msgid_plural'])) {
                $msgidPlural = \explode($this->eol, $entry['msgid_plural']);
            } elseif (\is_array($entry['msgid_plural']) && \count($entry['msgid_plural']) !== 0) {
                $msgidPlural = $entry['msgid_plural'];
            } else {
                throw new DumpException('msgid_plural not string or array.');
            }

            $output .= 'msgid_plural ';

            foreach ((array) $msgidPlural as $plural) {
                $output .= $this->cleanExport($plural) . $this->eol;
            }
        }

        return [$entry, $output];
    }
private function addMsgidPluralToOutput ( array $ entry , string $ output ) : array { if ( isset ( $ entry [ 'msgid_plural' ] ) ) { // Special clean for msgid_plural if ( \ is_string ( $ entry [ 'msgid_plural' ] ) ) { $ msgidPlural = \ explode ( $ this -> eol , $ entry [ 'msgid_plural' ] ) ; } elseif ( \ is_array ( $ entry [ 'msgid_plural' ] ) && \ count ( $ entry [ 'msgid_plural' ] ) !== 0 ) { $ msgidPlural = $ entry [ 'msgid_plural' ] ; } else { throw new DumpException ( 'msgid_plural not string or array.' ) ; } $ output .= 'msgid_plural ' ; foreach ( ( array ) $ msgidPlural as $ plural ) { $ output .= $ this -> cleanExport ( $ plural ) . $ this -> eol ; } } return [ $ entry , $ output ] ; }
Add msgid_plural to the output.

@param array  $entry
@param string $output

@throws \Viserio\Component\Contract\Parser\Exception\DumpException

@return array
Add msgid_plural to the output .