Commit 174843a9 by Alexander Makarov

Fixes #5690: adjusted paths in message config generated by `yii message/config`…

Fixes #5690: adjusted paths in message config generated by `yii message/config` to reflect directory structure better
parent 20104324
...@@ -29,6 +29,7 @@ Yii Framework 2 Change Log ...@@ -29,6 +29,7 @@ Yii Framework 2 Change Log
- Enh #6618: Added Model::addErrors() (slavcodev, pana1990) - Enh #6618: Added Model::addErrors() (slavcodev, pana1990)
- Enh #6739: Log `Target` now works also when there is no `Yii::$app` instance available, no message prefix will be added in this case (schmunk42) - Enh #6739: Log `Target` now works also when there is no `Yii::$app` instance available, no message prefix will be added in this case (schmunk42)
- Enh #6748: Improved HTML to Text converter in BaseMailer to generate more readable and correct text version of emails (cebe) - Enh #6748: Improved HTML to Text converter in BaseMailer to generate more readable and correct text version of emails (cebe)
- Chg #5690: adjusted paths in message config generated by `yii message/config` to reflect directory structure better (mikehaertl, samdark)
- Chg #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route" (cebe, samdark) - Chg #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route" (cebe, samdark)
- Chg #6641: removed zero padding from ETag strings (DaSourcerer) - Chg #6641: removed zero padding from ETag strings (DaSourcerer)
- Chg #6678: `yii\behaviors\SluggableBehavior` will generate a new slug only when the slug attribute is empty or the source attribute is changed (qiangxue) - Chg #6678: `yii\behaviors\SluggableBehavior` will generate a new slug only when the slug attribute is empty or the source attribute is changed (qiangxue)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
return [ return [
// string, required, root directory of all source files // string, required, root directory of all source files
'sourcePath' => __DIR__, 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..',
// array, required, list of language codes that the extracted messages // array, required, list of language codes that the extracted messages
// should be translated to. For example, ['zh-CN', 'de']. // should be translated to. For example, ['zh-CN', 'de'].
'languages' => ['de'], 'languages' => ['de'],
...@@ -44,7 +44,7 @@ return [ ...@@ -44,7 +44,7 @@ return [
// 'php' output format is for saving messages to php files. // 'php' output format is for saving messages to php files.
'format' => 'php', 'format' => 'php',
// Root directory containing message translations. // Root directory containing message translations.
'messagePath' => __DIR__ . DIRECTORY_SEPARATOR . 'messages', 'messagePath' => __DIR__,
// boolean, whether the message file should be overwritten with the merged messages // boolean, whether the message file should be overwritten with the merged messages
'overwrite' => true, 'overwrite' => true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment