src/I18n/GettextPoFile.php
public function load($context, $filePath = null)
    {
        if (isset($filePath)) {
            $this->filePath = $filePath;
        }
        if (!isset($this->_messages)) {
            $this->loadAll();
        }
        return isset($this->_messages[$context]) ? $this->_messages[$context] : [];
    }
public function load($context, $filePath = null)
    {
        if (isset($filePath)) {
            $this->filePath = $filePath;
        }
        if (!isset($this->_messages)) {
            $this->loadAll();
        }
        return isset($this->_messages[$context]) ? $this->_messages[$context] : [];
    }
Loads messages from a PO file.
@param string      $context message context
@param string|null $filePath file path
@return array message translations. Array keys are source messages and array values are translated messages:
source message => translated message.
@throws InvalidConfigException