Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

53 rindas
2.8KB

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