You are here

public function PoItem::setTranslation in Localization update 7.2

Set the translation string(s) if the translation has plurals.

1 call to PoItem::setTranslation()
PoItem::setFromArray in includes/gettext/PoItem.php
Create the PoItem from a structured array.

File

includes/gettext/PoItem.php, line 156
Definition of Drupal\Component\Gettext\PoItem.

Class

PoItem
PoItem handles one translation.

Code

public function setTranslation($translation) {
  $this->_translation = $translation;
}