Format the POItem as a string.
private function formatItem() {
$output = '';
// Format string context.
if (!empty($this->_context)) {
$output .= 'msgctxt ' . $this
->formatString($this->_context);
}
// Format translation.
if ($this->_plural) {
$output .= $this
->formatPlural();
}
else {
$output .= $this
->formatSingular();
}
// Add one empty line to separate the translations.
$output .= "\n";
return $output;
}