init
This commit is contained in:
58
vendor/yii2mod/yii2-rbac/messages/config.php
vendored
Normal file
58
vendor/yii2mod/yii2-rbac/messages/config.php
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// string, required, root directory of all source files
|
||||
'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..',
|
||||
// array, required, list of language codes that the extracted messages
|
||||
// should be translated to. For example, ['zh-CN', 'de'].
|
||||
'languages' => ['en'],
|
||||
// string, the name of the function for translating messages.
|
||||
// Defaults to 'Yii::t'. This is used as a mark to find the messages to be
|
||||
// translated. You may use a string for single function name or an array for
|
||||
// multiple function names.
|
||||
'translator' => 'Yii::t',
|
||||
// boolean, whether to sort messages by keys when merging new messages
|
||||
// with the existing ones. Defaults to false, which means the new (untranslated)
|
||||
// messages will be separated from the old (translated) ones.
|
||||
'sort' => true,
|
||||
// boolean, whether to remove messages that no longer appear in the source code.
|
||||
// Defaults to false, which means each of these messages will be enclosed with a pair of '@@' marks.
|
||||
'removeUnused' => false,
|
||||
// array, list of patterns that specify which files (not directories) should be processed.
|
||||
// If empty or not set, all files will be processed.
|
||||
// Please refer to "except" for details about the patterns.
|
||||
'only' => ['*.php'],
|
||||
// array, list of patterns that specify which files/directories should NOT be processed.
|
||||
// If empty or not set, all files/directories will be processed.
|
||||
// A path matches a pattern if it contains the pattern string at its end. For example,
|
||||
// '/a/b' will match all files and directories ending with '/a/b';
|
||||
// the '*.svn' will match all files and directories whose name ends with '.svn'.
|
||||
// and the '.svn' will match all files and directories named exactly '.svn'.
|
||||
// Note, the '/' characters in a pattern matches both '/' and '\'.
|
||||
// See helpers/FileHelper::findFiles() description for more details on pattern matching rules.
|
||||
// If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
|
||||
'except' => [
|
||||
'.svn',
|
||||
'.git',
|
||||
'.gitignore',
|
||||
'.gitkeep',
|
||||
'.hgignore',
|
||||
'.hgkeep',
|
||||
'/messages',
|
||||
'/tests',
|
||||
'/runtime',
|
||||
'/vendor',
|
||||
],
|
||||
|
||||
// 'php' output format is for saving messages to php files.
|
||||
'format' => 'php',
|
||||
// Root directory containing message translations.
|
||||
'messagePath' => __DIR__,
|
||||
// boolean, whether the message file should be overwritten with the merged messages
|
||||
'overwrite' => true,
|
||||
|
||||
// Message categories to ignore
|
||||
'ignoreCategories' => [
|
||||
'yii',
|
||||
],
|
||||
];
|
||||
62
vendor/yii2mod/yii2-rbac/messages/en/yii2mod.rbac.php
vendored
Normal file
62
vendor/yii2mod/yii2-rbac/messages/en/yii2mod.rbac.php
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message/extract' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'\'{class}\' must extend from \'yii\\rbac\\Rule\' or its child class' => '\'{class}\' must extend from \'yii\\rbac\\Rule\' or its child class',
|
||||
'Action' => 'Action',
|
||||
'Are you sure to delete this item?' => 'Are you sure to delete this item?',
|
||||
'Assign' => 'Assign',
|
||||
'Assignment : {0}' => 'Assignment : {0}',
|
||||
'Assignments' => 'Assignments',
|
||||
'Class Name' => 'Class Name',
|
||||
'Create' => 'Create',
|
||||
'Create Rule' => 'Create Rule',
|
||||
'Create Role' => 'Create Role',
|
||||
'Data' => 'Data',
|
||||
'Delete' => 'Delete',
|
||||
'Description' => 'Description',
|
||||
'Invalid rule "{value}"' => 'Invalid rule "{value}"',
|
||||
'Item has been removed.' => 'Item has been removed.',
|
||||
'Item has been saved.' => 'Item has been saved.',
|
||||
'Name' => 'Name',
|
||||
'Permissions' => 'Permissions',
|
||||
'Refresh' => 'Refresh',
|
||||
'Remove' => 'Remove',
|
||||
'Roles' => 'Roles',
|
||||
'Role : {0}' => 'Role : {0}',
|
||||
'Permission : {0}' => 'Permission : {0}',
|
||||
'Create Permission' => 'Create Permission',
|
||||
'Routes' => 'Routes',
|
||||
'Rule' => 'Rule',
|
||||
'Rule "{value}" does not exists' => 'Rule "{value}" does not exists',
|
||||
'Rule : {0}' => 'Rule : {0}',
|
||||
'Rule Name' => 'Rule Name',
|
||||
'Rule has been deleted.' => 'Rule has been deleted.',
|
||||
'Rule has been saved.' => 'Rule has been saved.',
|
||||
'Rules' => 'Rules',
|
||||
'Search for assigned' => 'Search for assigned',
|
||||
'Search for available' => 'Search for available',
|
||||
'The requested page does not exist.' => 'The requested page does not exist.',
|
||||
'Type' => 'Type',
|
||||
'Unknown class \'{class}\'' => 'Unknown class \'{class}\'',
|
||||
'Update' => 'Update',
|
||||
'Update Rule : {0}' => 'Update Rule : {0}',
|
||||
'Update Role : {0}' => 'Update Role : {0}',
|
||||
'Update Permission : {0}' => 'Update Permission : {0}',
|
||||
'Select Rule' => 'Select Rule',
|
||||
];
|
||||
62
vendor/yii2mod/yii2-rbac/messages/ru/yii2mod.rbac.php
vendored
Normal file
62
vendor/yii2mod/yii2-rbac/messages/ru/yii2mod.rbac.php
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message/extract' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'\'{class}\' must extend from \'yii\\rbac\\Rule\' or its child class' => 'Класс должен быть унаследован от \'yii\\rbac\\Rule\' или его дочерних классов',
|
||||
'Action' => 'Действие',
|
||||
'Are you sure to delete this item?' => 'Вы действительно хотите удалить этот элемент?',
|
||||
'Assign' => 'Назначить',
|
||||
'Assignment : {0}' => 'Назначение : {0}',
|
||||
'Assignments' => 'Назначения',
|
||||
'Class Name' => 'Имя класса',
|
||||
'Create' => 'Создать',
|
||||
'Create Rule' => 'Создать правило',
|
||||
'Create Role' => 'Создать роль',
|
||||
'Data' => 'Данные',
|
||||
'Delete' => 'Удалить',
|
||||
'Description' => 'Описание',
|
||||
'Invalid rule "{value}"' => 'Некорректное правило "{value}"',
|
||||
'Item has been removed.' => 'Элемент был удален.',
|
||||
'Item has been saved.' => 'Элемент сохранен.',
|
||||
'Name' => 'Имя',
|
||||
'Permissions' => 'Разрешения',
|
||||
'Refresh' => 'Обновить',
|
||||
'Remove' => 'Удалить',
|
||||
'Roles' => 'Роли',
|
||||
'Role : {0}' => 'Роль : {0}',
|
||||
'Permission : {0}' => 'Разрешение : {0}',
|
||||
'Create Permission' => 'Создать разрешение',
|
||||
'Routes' => 'Маршруты',
|
||||
'Rule' => 'Правило',
|
||||
'Rule "{value}" does not exists' => 'Правило "{value}" не существует',
|
||||
'Rule : {0}' => 'Правило : {0}',
|
||||
'Rule Name' => 'Имя правила',
|
||||
'Rule has been deleted.' => 'Правило было удалено.',
|
||||
'Rule has been saved.' => 'Правило сохранено.',
|
||||
'Rules' => 'Правила',
|
||||
'Search for assigned' => 'Поиск по присвоенным',
|
||||
'Search for available' => 'Поиск по доступным',
|
||||
'The requested page does not exist.' => 'Ошибка 404 - страница не найдена!',
|
||||
'Type' => 'Тип',
|
||||
'Unknown class \'{class}\'' => 'Неизвестный класс \'{class}\'',
|
||||
'Update' => 'Обновить',
|
||||
'Update Rule : {0}' => 'Обновить правило : {0}',
|
||||
'Update Role : {0}' => 'Обновить роль : {0}',
|
||||
'Update Permission : {0}' => 'Обновить разрешение : {0}',
|
||||
'Select Rule' => 'Выберите правило',
|
||||
];
|
||||
Reference in New Issue
Block a user