private function PoItem::formatSingular in Localization update 7.2
Formats a singular translation.
Return value
string Gettext formatted singular translation.
1 call to PoItem::formatSingular()
- PoItem::formatItem in includes/
gettext/ PoItem.php - Format the POItem as a string.
File
- includes/
gettext/ PoItem.php, line 293 - Definition of Drupal\Component\Gettext\PoItem.
Class
- PoItem
- PoItem handles one translation.
Code
private function formatSingular() {
$output = '';
$output .= 'msgid ' . $this
->formatString($this->_source);
$output .= 'msgstr ' . (isset($this->_translation) ? $this
->formatString($this->_translation) : '""');
return $output;
}