From d2da1fe03e0290020883e372678fa18c4462329f Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 21:40:26 +0000 Subject: [PATCH] MINOR i18n'd a whole bunch of the new permission codes (from r90493) --- code/GroupSubsites.php | 6 +++--- code/Subsite.php | 6 +++--- lang/en_US.php | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/code/GroupSubsites.php b/code/GroupSubsites.php index 6c731d9..f398f58 100644 --- a/code/GroupSubsites.php +++ b/code/GroupSubsites.php @@ -211,9 +211,9 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider { function providePermissions() { return array( 'SECURITY_SUBSITE_GROUP' => array( - 'name' => 'Manage subsites for groups', - 'category' => 'Roles and access permissions', - 'help' => 'Ability to limit the permissions for a group to one or more subsites.', + 'name' => _t('GroupSubsites.MANAGE_SUBSITES', 'Manage subsites for groups'), + 'category' => _t('Permissions.PERMISSIONS_CATEGORY', 'Roles and access permissions'), + 'help' => _t('GroupSubsites.MANAGE_SUBSITES_HELP', 'Ability to limit the permissions for a group to one or more subsites.'), 'sort' => 200 ) ); diff --git a/code/Subsite.php b/code/Subsite.php index 179d514..32f4b53 100644 --- a/code/Subsite.php +++ b/code/Subsite.php @@ -548,9 +548,9 @@ JS; function providePermissions() { return array( 'SUBSITE_ASSETS_CREATE_SUBSITE' => array( - 'name' => 'Manage assets for subsites', - 'category' => 'Roles and access permissions', - 'help' => 'Ability to select the subsite to which an asset folder belongs. Requires "Access to Files & Images."', + 'name' => _t('Subsite.MANAGE_ASSETS', 'Manage assets for subsites'), + 'category' => _t('Permissions.PERMISSIONS_CATEGORY', 'Roles and access permissions'), + 'help' => _t('Subsite.MANAGE_ASSETS_HELP', 'Ability to select the subsite to which an asset folder belongs. Requires "Access to Files & Images."'), 'sort' => 300 ) ); diff --git a/lang/en_US.php b/lang/en_US.php index d069bb7..c310ddd 100644 --- a/lang/en_US.php +++ b/lang/en_US.php @@ -10,8 +10,11 @@ $lang['en_US']['SubsiteAdmin']['MENUTITLE'] = array( $lang['en_US']['GroupSubsites']['ACCESSALL'] = 'All subsites'; $lang['en_US']['GroupSubsites']['ACCESSONLY'] = 'Only these subsites'; $lang['en_US']['GroupSubsites']['ACCESSRADIOTITLE'] = 'Give this group access to'; +$lang['en_US']['GroupSubsites']['MANAGE_SUBSITES'] = 'Manage subsites for groups'; +$lang['en_US']['GroupSubsites']['MANAGE_SUBSITES_HELP'] = 'Ability to limit the permissions for a group to one or more subsites.'; $lang['en_US']['GroupSubsites']['SECURITYTABTITLE'] = 'Subsites'; $lang['en_US']['ModelAdmin']['LOADEDFOREDITING'] = 'Loaded \'%s\' for editing.'; +$lang['en_US']['Permissions']['PERMISSIONS_CATEGORY'] = 'Roles and access permissions'; $lang['en_US']['RelatedPageLink']['PLURALNAME'] = array( 'Related Page Links', 50, @@ -22,6 +25,8 @@ $lang['en_US']['RelatedPageLink']['SINGULARNAME'] = array( 50, 'Singular name of the object, used in dropdowns and to generally identify a single object in the interface' ); +$lang['en_US']['Subsite']['MANAGE_ASSETS'] = 'Manage assets for subsites'; +$lang['en_US']['Subsite']['MANAGE_ASSETS_HELP'] = 'Ability to select the subsite to which an asset folder belongs. Requires "Access to Files & Images."'; $lang['en_US']['Subsite']['PLURALNAME'] = array( 'Subsits', 50,