-
-
Notifications
You must be signed in to change notification settings - Fork 531
Translated descriptions for policies, policy templates and policy template groups #14009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
340e0ba
7d1a45a
9d13606
4d8cc99
8d266e5
098b104
60c9b92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
* @package modx | ||
* @subpackage lexicon | ||
*/ | ||
$_lang['template_group'] = 'Template Group'; | ||
$_lang['active_of'] = '[[+active]] of [[+total]]'; | ||
$_lang['active_permissions'] = 'Active Permissions'; | ||
$_lang['no_policy_option'] = ' (no policy) '; | ||
|
@@ -29,7 +30,7 @@ | |
$_lang['policy_data'] = 'Policy Data'; | ||
$_lang['policy_desc'] = 'Access policies are generic policies that restrict or enable certain actions with MODX.'; | ||
$_lang['policy_desc_name'] = 'The name of the Access Policy'; | ||
$_lang['policy_desc_description'] = 'Optional. A short description of the Access Policy'; | ||
$_lang['policy_desc_description'] = 'Optional. A short description of the Access Policy. Also you might use lexicon keys here.'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use all available lexicon keys or are they limited to the policy topic? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on language topics defined in controllers, so I would say that yes, mostly related to access control, but need to check because the manager loads a lot of topics and all of them will be cached. |
||
$_lang['policy_desc_template'] = 'The Policy Template used for this Policy. Policies get their Permission lists from their Template.'; | ||
$_lang['policy_desc_lexicon'] = 'Optional. The Lexicon Topic that this Policy uses to translate the Permissions it owns.'; | ||
$_lang['policy_duplicate'] = 'Duplicate Policy'; | ||
|
@@ -55,10 +56,11 @@ | |
$_lang['policy_remove_multiple_confirm'] = 'Are you sure you want to delete these Access Policies? This is irreversible.'; | ||
$_lang['policy_update'] = 'Edit Policy'; | ||
$_lang['policy_template'] = 'Policy Template'; | ||
$_lang['policy_template.desc'] = 'A Policy Template defines which Permissions will show up in the Permissions grid when editing a specific Policy. You can add or delete specific Permissions from this template below. Note that deleting a Permission from a Template will delete it from any Policies that use this Template.'; | ||
$_lang['policy_template_desc'] = 'A Policy Template defines which Permissions will show up in the Permissions grid when editing a specific Policy. You can add or remove specific Permissions from this template below. Note that removing a Permission from a Template will remove it from any Policies that use this Template.'; | ||
alroniks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$_lang['policy_template_create'] = 'Create Policy Template'; | ||
$_lang['policy_template_desc_name'] = 'The name of the Access Policy Template'; | ||
$_lang['policy_template_desc_description'] = 'Optional. A short description of the Access Policy Template'; | ||
$_lang['policy_template_desc_description'] = 'Optional. A short description of the Access Policy Template. Also you might use lexicon keys here.'; | ||
$_lang['policy_template_lexicon'] = 'Lexicon Topic'; | ||
$_lang['policy_template_desc_lexicon'] = 'Optional. The Lexicon Topic that this Policy Template uses to translate the Permissions it owns.'; | ||
$_lang['policy_template_desc_template_group'] = 'The Policy Template Group to use. This is used when selecting Policies from a dropdown menu; usually they are filtered by template group. Select an appropriate group for your Policy Template.'; | ||
$_lang['policy_template_duplicate'] = 'Duplicate Policy Template'; | ||
|
@@ -78,4 +80,29 @@ | |
$_lang['policy_template_update'] = 'Edit Policy Template'; | ||
$_lang['policy_templates'] = 'Policy Templates'; | ||
$_lang['policy_templates.intro_msg'] = 'This is a list of Policy Templates which define lists of Permissions that are checked or unchecked in specific Policies.'; | ||
$_lang['template_group'] = 'Template Group'; | ||
$_lang['policy_template_administrator_desc'] = 'Context administration policy template with all permissions.'; | ||
$_lang['policy_template_resource_desc'] = 'Resource Policy Template with all attributes.'; | ||
$_lang['policy_template_object_desc'] = 'Object Policy Template with all attributes.'; | ||
$_lang['policy_template_element_desc'] = 'Element Policy Template with all attributes.'; | ||
$_lang['policy_template_mediasource_desc'] = 'Media Source Policy Template with all attributes.'; | ||
$_lang['policy_template_context_desc'] = 'Context Policy Template with all attributes.'; | ||
$_lang['policy_template_namespace_desc'] = 'Namespace Policy Template with all attributes.'; | ||
$_lang['policy_template_group_administrator_desc'] = 'All admin policy templates.'; | ||
$_lang['policy_template_group_object_desc'] = 'All Resource-based policy templates.'; | ||
$_lang['policy_template_group_resource_desc'] = 'All Object-based policy templates.'; | ||
$_lang['policy_template_group_element_desc'] = 'All Element-based policy templates.'; | ||
$_lang['policy_template_group_mediasource_desc'] = 'All Media Source-based policy templates.'; | ||
$_lang['policy_template_group_namespace_desc'] = 'All Namespace based policy templates.'; | ||
$_lang['policy_template_group_context_desc'] = 'All Context based policy templates.'; | ||
$_lang['policy_resource_desc'] = 'MODX Resource Policy with all attributes.'; | ||
$_lang['policy_administrator_desc'] = 'Context administration policy with all permissions.'; | ||
$_lang['policy_load_only_desc'] = 'A minimal policy with permission to load an object.'; | ||
$_lang['policy_load_list_and_view_desc'] = 'Provides load, list and view permissions only.'; | ||
$_lang['policy_object_desc'] = 'An Object policy with all permissions.'; | ||
$_lang['policy_element_desc'] = 'MODX Element policy with all attributes.'; | ||
$_lang['policy_content_editor_desc'] = 'Context administration policy with limited, content-editing related Permissions, but no publishing.'; | ||
$_lang['policy_media_source_admin_desc'] = 'Media Source administration policy.'; | ||
$_lang['policy_media_source_user_desc'] = 'Media Source user policy, with basic viewing and using - but no editing - of Media Sources.'; | ||
$_lang['policy_developer_desc'] = 'Context administration policy with most Permissions except Administrator and Security functions.'; | ||
$_lang['policy_context_desc'] = 'A standard Context policy that you can apply when creating Context ACLs for basic read/write and view_unpublished access within a Context.'; | ||
$_lang['policy_hidden_namespace_desc'] = 'Hidden Namespace policy, will not show Namespace in lists.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the
id
a primary key here that would require the parametersetPrimaryKeys
set totrue
?I'm just wondering what makes this different from the
modAccessPolicy
objects we create.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My solution based on the previous script (https://github.com/modxcms/revolution/blob/3.x/_build/data/transport.core.accesspolicytemplategroups.php), and this index guaranties that order will be always the same. Maybe I can simplify it more, I don't remember exactly already why I chose this solution.