Advertisement
Guest User

Untitled

a guest
Mar 31st, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.27 KB | None | 0 0
  1.  
  2. 'modules' => [
  3.         'translatemanager' => [
  4.             'class' => 'lajax\translatemanager\Module',
  5.             'root' => '@app',               // The root directory of the project scan.
  6.             'layout' => null,         // Name of the used layout. If using own layout use 'null'.
  7.             'allowedIPs' => ['*'],  // IP addresses from which the translation interface is accessible.
  8.             'roles' => ['@'],               // For setting access levels to the translating interface.
  9.             'tmpDir' => '@runtime',         // Writable directory for the client-side temporary language files.
  10.             // IMPORTANT: must be identical for all applications (the AssetsManager serves the JavaScript files containing language elements from this directory).
  11.             'phpTranslators' => ['::t'],    // list of the php function for translating messages.
  12.             'jsTranslators' => ['lajax.t'], // list of the js function for translating messages.
  13.             'patterns' => ['*.js', '*.php'],// list of file extensions that contain language elements.
  14.             'ignoredCategories' => ['yii'], // these categories won't be included in the language database.
  15.             'ignoredItems' => ['config'],   // these files will not be processed.
  16.             'scanTimeLimit' => null,        // increase to prevent "Maximum execution time" errors, if null the default max_execution_time will be used
  17.             'searchEmptyCommand' => '!',    // the search string to enter in the 'Translation' search field to find not yet translated items, set to null to disable this feature
  18.             'defaultExportStatus' => 1,     // the default selection of languages to export, set to 0 to select all languages by default
  19.             'defaultExportFormat' => 'json',// the default format for export, can be 'json' or 'xml'
  20.             'tables' => [                   // Properties of individual tables
  21.                 [
  22.                     'connection' => 'db',   // connection identifier
  23.                     'table' => '{{%language}}',         // table name
  24.                     'columns' => ['name', 'name_ascii'],// names of multilingual fields
  25. //                    'category' => 'database-table-name',// the category is the database table name
  26.                 ]
  27.             ]
  28.         ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement