save() public method
Saves messages to an MO file.
public void save ( $filePath, $messages ) | ||
---|---|---|
$filePath | string |
File path |
$messages | array |
Message translations. Array keys are source messages and array values are translated messages: source message => translated message. Note if the message has a context, the message ID must be prefixed with the context with chr(4) as the separator. |
throws | yii\base\Exception |
if unable to save the MO file |
Please login to continue.