Permalink
Browse files

MINOR Using localized titles for permission formfields in PermissionR…

…ole and Member

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@99583 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 17272c2 commit 246e86636229fee32d35502484a7dcd5811162cd @chillu chillu committed Feb 22, 2010
Showing with 4 additions and 3 deletions.
  1. +3 −2 security/Group.php
  2. +1 −1 security/PermissionRole.php
View
5 security/Group.php
@@ -82,10 +82,11 @@ public function getCMSFields() {
new DropdownField('HtmlEditorConfig', 'HTML Editor Configuration', HtmlEditorConfig::get_available_configs_map()),
new PermissionCheckboxSetField(
'Permissions',
- 'Permissions',
+ singleton('Permission')->i18n_plural_name(),
'Permission',
'GroupID',
- $this)
+ $this
+ )
),
new Tab(_t('Security.IPADDRESSES', 'IP Addresses'),
View
2 security/PermissionRole.php
@@ -30,7 +30,7 @@ function getCMSFields() {
$fields->addFieldToTab('Root.Main', new PermissionCheckboxSetField(
'Codes',
- 'Permissions',
+ singleton('Permission')->i18n_plural_name(),
'PermissionRoleCode',
'RoleID'));

0 comments on commit 246e866

Please sign in to comment.