Guest User

Untitled

a guest
May 10th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.43 KB | None | 0 0
  1. <?php
  2. return [
  3.     // string, required, root directory of all source files
  4.     'sourcePath' => '@app',
  5.     // array, required, list of language codes that the extracted messages
  6.     // should be translated to. For example, ['zh-CN', 'de'].
  7.     'languages' =>\yii\helpers\ArrayHelper::map(\app\models\Language::find()->all(), 'slug', 'slug'),// ['ru-RU', 'uk-UA'],
  8.     // string, the name of the function for translating messages.
  9.     // Defaults to 'Yii::t'. This is used as a mark to find the messages to be
  10.     // translated. You may use a string for single function name or an array for
  11.     // multiple function names.
  12.     'translator' => 'Yii::t',
  13.     // boolean, whether to sort messages by keys when merging new messages
  14.     // with the existing ones. Defaults to false, which means the new (untranslated)
  15.     // messages will be separated from the old (translated) ones.
  16.     'sort' => false,
  17.     // boolean, whether to remove messages that no longer appear in the source code.
  18.     // Defaults to false, which means these messages will NOT be removed.
  19.     'removeUnused' => false,
  20.     // boolean, whether to mark messages that no longer appear in the source code.
  21.     // Defaults to true, which means each of these messages will be enclosed with a pair of '@@' marks.
  22.     'markUnused' => true,
  23.     // array, list of patterns that specify which files (not directories) should be processed.
  24.     // If empty or not set, all files will be processed.
  25.     // See helpers/FileHelper::findFiles() for pattern matching rules.
  26.     // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
  27.     'only' => ['*.php'],
  28.     // array, list of patterns that specify which files/directories should NOT be processed.
  29.     // If empty or not set, all files/directories will be processed.
  30.     // See helpers/FileHelper::findFiles() for pattern matching rules.
  31.     // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
  32.     'except' => [
  33.         '.svn',
  34.         '.git',
  35.         '.gitignore',
  36.         '.gitkeep',
  37.         '.hgignore',
  38.         '.hgkeep'
  39.     ],
  40.  
  41.     // 'php' output format is for saving messages to php files.
  42.     'format' => 'php',
  43.     // Root directory containing message translations.
  44.     'messagePath' => '@app/messages',
  45.  
  46.     // boolean, whether the message file should be overwritten with the merged messages
  47.     'overwrite' => true,
  48.  
  49.     'db' => 'db',
  50. ];
Add Comment
Please, Sign In to add comment