You are here

public function PoItem::setSource in Localization update 7.2

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

Parameters

string|array: Translation source string(s).

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

File

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

Class

PoItem
PoItem handles one translation.

Code

public function setSource($source) {
  $this->_source = $source;
}