load() public method
Loads messages from an MO file.
public array load ( $filePath, $context ) | ||
---|---|---|
$filePath | string |
File path |
$context | string |
Message context |
return | array |
Message translations. Array keys are source messages and array values are translated messages: source message => translated message. |
throws | yii\base\Exception |
if unable to read the MO file |
Please login to continue.