Formats a plural translation.
private function formatPlural() {
$output = '';
// Format source strings.
$output .= 'msgid ' . $this
->formatString($this->_source[0]);
$output .= 'msgid_plural ' . $this
->formatString($this->_source[1]);
foreach ($this->_translation as $i => $trans) {
if (isset($this->_translation[$i])) {
$output .= 'msgstr[' . $i . '] ' . $this
->formatString($trans);
}
else {
$output .= 'msgstr[' . $i . '] ""' . "\n";
}
}
return $output;
}