config.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. return [
  8. // string, required, root directory of all source files
  9. 'sourcePath' => __DIR__ . '/..',
  10. // string, required, root directory containing message translations.
  11. 'messagePath' => __DIR__,
  12. // array, required, list of language codes that the extracted messages
  13. // should be translated to. For example, ['zh-CN', 'de'].
  14. 'languages' => ['af', 'ar', 'az', 'be', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'el', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu', 'hy', 'id', 'it', 'ja', 'ka', 'kk', 'ko', 'kz', 'lt', 'lv', 'ms', 'nb-NO', 'nl', 'pl', 'pt', 'pt-BR', 'ro', 'ru', 'sk', 'sl', 'sr', 'sr-Latn', 'sv', 'tg', 'th', 'tr', 'uk', 'uz', 'vi', 'zh-CN', 'zh-TW'],
  15. // string, the name of the function for translating messages.
  16. // Defaults to 'Yii::t'. This is used as a mark to find the messages to be
  17. // translated. You may use a string for single function name or an array for
  18. // multiple function names.
  19. 'translator' => 'Yii::t',
  20. // boolean, whether to sort messages by keys when merging new messages
  21. // with the existing ones. Defaults to false, which means the new (untranslated)
  22. // messages will be separated from the old (translated) ones.
  23. 'sort' => false,
  24. // boolean, whether the message file should be overwritten with the merged messages
  25. 'overwrite' => true,
  26. // boolean, whether to remove messages that no longer appear in the source code.
  27. // Defaults to false, which means each of these messages will be enclosed with a pair of '@@' marks.
  28. 'removeUnused' => false,
  29. // boolean, whether to mark messages that no longer appear in the source code.
  30. // Defaults to true, which means each of these messages will be enclosed with a pair of '@@' marks.
  31. 'markUnused' => true,
  32. // array, list of patterns that specify which files/directories should NOT be processed.
  33. // If empty or not set, all files/directories will be processed.
  34. // A path matches a pattern if it contains the pattern string at its end. For example,
  35. // '/a/b' will match all files and directories ending with '/a/b';
  36. // the '*.svn' will match all files and directories whose name ends with '.svn'.
  37. // and the '.svn' will match all files and directories named exactly '.svn'.
  38. // Note, the '/' characters in a pattern matches both '/' and '\'.
  39. // See helpers/FileHelper::findFiles() description for more details on pattern matching rules.
  40. 'except' => [
  41. '.svn',
  42. '.git',
  43. '.gitignore',
  44. '.gitkeep',
  45. '.hgignore',
  46. '.hgkeep',
  47. '/messages',
  48. ],
  49. // array, list of patterns that specify which files (not directories) should be processed.
  50. // If empty or not set, all files will be processed.
  51. // Please refer to "except" for details about the patterns.
  52. // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
  53. 'only' => ['*.php'],
  54. 'phpFileHeader' => '/**
  55. * @link http://www.yiiframework.com/
  56. * @copyright Copyright (c) 2008 Yii Software LLC
  57. * @license http://www.yiiframework.com/license/
  58. */
  59. ',
  60. // Generated file format. Can be "php", "db" or "po".
  61. 'format' => 'php',
  62. // Connection component ID for "db" format.
  63. //'db' => 'db',
  64. ];