if (isset($this->source
) &&
str_contains($this->source, self::DELIMITER
)) { $this->
setSource(explode(self::DELIMITER,
$this->source
));
$this->
setTranslation(explode(self::DELIMITER,
$this->translation ?? ''
));
$this->
setPlural(count($this->source
) > 1
);
} } /**
* Output the PoItem as a string.
*/
public function __toString() { return $this->
formatItem();
} /**
* Format the POItem as a string.
*/
private function formatItem() { $output = '';
// Format string context.
if (!
empty($this->context
)) { $output .= 'msgctxt ' .
$this->
formatString($this->context
);
}