| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Configuration file for 'yii message/extract' command.
- *
- * This file is automatically generated by 'yii message/config' command.
- * It contains parameters for source code messages extraction.
- * You may modify this file to suit your needs.
- *
- * You can use 'yii message/config-template' command to create
- * template configuration file with detailed description for each parameter.
- */
- return [
- 'color' => null,
- 'interactive' => true,
- 'help' => false,
- 'silentExitOnException' => null,
- 'sourcePath' => '@rootPath', // 设置为项目跟地址,检索全项目 bootstrap:(Yii::setAlias('@rootPath', dirname(dirname(__DIR__)));)
- // 'sourcePath' => '@yii',
- 'messagePath' => '@yii/messages',
- 'languages' => ['zh-CN'], // 设置要转换的语言
- 'translator' => 'Yii::t',
- 'sort' => false,
- 'overwrite' => true,
- 'removeUnused' => false,
- 'markUnused' => true,
- 'except' => [
- '.svn',
- '.git',
- '.gitignore',
- '.gitkeep',
- '.hgignore',
- '.hgkeep',
- '/messages',
- '/BaseYii.php',
- ],
- 'only' => [
- '*.php',
- ],
- 'format' => 'php',
- 'db' => 'db',
- 'sourceMessageTable' => '{{%source_message}}',
- 'messageTable' => '{{%message}}',
- 'catalog' => 'messages',
- 'ignoreCategories' => [],
- 'phpFileHeader' => '',
- 'phpDocBlock' => null,
- ];
|