private function PoItem::formatSingular in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::formatSingular()
Formats a singular translation.
1 call to PoItem::formatSingular()
- PoItem::formatItem in core/
lib/ Drupal/ Component/ Gettext/ PoItem.php - Format the POItem as a string.
File
- core/
lib/ Drupal/ Component/ Gettext/ PoItem.php, line 257 - Contains \Drupal\Component\Gettext\PoItem.
Class
- PoItem
- PoItem handles one translation.
Namespace
Drupal\Component\GettextCode
private function formatSingular() {
$output = '';
$output .= 'msgid ' . $this
->formatString($this->_source);
$output .= 'msgstr ' . (isset($this->_translation) ? $this
->formatString($this->_translation) : '""');
return $output;
}