i18n\GettextMoFile save()

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

doc_Yii
2016-10-30 17:06:09
Comments
Leave a Comment

Please login to continue.