Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

55 lines
3.0KB

  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', 'bs', 'ca', 'cs', 'da', 'de', 'el', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ka', 'kk', 'ko', 'lt', 'lv', 'ms', 'nb-NO', '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. // boolean, whether to mark messages that no longer appear in the source code.
  25. // Defaults to true, which means each of these messages will be enclosed with a pair of '@@' marks.
  26. 'markUnused' => true,
  27. // array, list of patterns that specify which files/directories should NOT be processed.
  28. // If empty or not set, all files/directories will be processed.
  29. // A path matches a pattern if it contains the pattern string at its end. For example,
  30. // '/a/b' will match all files and directories ending with '/a/b';
  31. // the '*.svn' will match all files and directories whose name ends with '.svn'.
  32. // and the '.svn' will match all files and directories named exactly '.svn'.
  33. // Note, the '/' characters in a pattern matches both '/' and '\'.
  34. // See helpers/FileHelper::findFiles() description for more details on pattern matching rules.
  35. 'except' => [
  36. '.svn',
  37. '.git',
  38. '.gitignore',
  39. '.gitkeep',
  40. '.hgignore',
  41. '.hgkeep',
  42. '/messages',
  43. ],
  44. // array, list of patterns that specify which files (not directories) should be processed.
  45. // If empty or not set, all files will be processed.
  46. // Please refer to "except" for details about the patterns.
  47. // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
  48. 'only' => ['*.php'],
  49. // Generated file format. Can be "php", "db" or "po".
  50. 'format' => 'php',
  51. // Connection component ID for "db" format.
  52. //'db' => 'db',
  53. ];