i18n.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Configuration file for 'yii message/extract' command.
  4. *
  5. * This file is automatically generated by 'yii message/config' command.
  6. * It contains parameters for source code messages extraction.
  7. * You may modify this file to suit your needs.
  8. *
  9. * You can use 'yii message/config-template' command to create
  10. * template configuration file with detailed description for each parameter.
  11. */
  12. return [
  13. 'color' => null,
  14. 'interactive' => true,
  15. 'help' => false,
  16. 'silentExitOnException' => null,
  17. 'sourcePath' => '@rootPath', // 设置为项目跟地址,检索全项目 bootstrap:(Yii::setAlias('@rootPath', dirname(dirname(__DIR__)));)
  18. // 'sourcePath' => '@yii',
  19. 'messagePath' => '@yii/messages',
  20. 'languages' => ['zh-CN'], // 设置要转换的语言
  21. 'translator' => 'Yii::t',
  22. 'sort' => false,
  23. 'overwrite' => true,
  24. 'removeUnused' => false,
  25. 'markUnused' => true,
  26. 'except' => [
  27. '.svn',
  28. '.git',
  29. '.gitignore',
  30. '.gitkeep',
  31. '.hgignore',
  32. '.hgkeep',
  33. '/messages',
  34. '/BaseYii.php',
  35. ],
  36. 'only' => [
  37. '*.php',
  38. ],
  39. 'format' => 'php',
  40. 'db' => 'db',
  41. 'sourceMessageTable' => '{{%source_message}}',
  42. 'messageTable' => '{{%message}}',
  43. 'catalog' => 'messages',
  44. 'ignoreCategories' => [],
  45. 'phpFileHeader' => '',
  46. 'phpDocBlock' => null,
  47. ];