PoItem::formatSingular

private PoItem::formatSingular()

Formats a singular translation.

File

core/lib/Drupal/Component/Gettext/PoItem.php, line 252

Class

PoItem
PoItem handles one translation.

Namespace

Drupal\Component\Gettext

Code

private function formatSingular() {
  $output = '';
  $output .= 'msgid ' . $this->formatString($this->_source);
  $output .= 'msgstr ' . (isset($this->_translation) ? $this->formatString($this->_translation) : '""');
  return $output;
}
doc_Drupal
2016-10-29 09:34:33
Comments
Leave a Comment

Please login to continue.