Skip to content
This repository
Browse code

Fixed PermissionRole field localization

  • Loading branch information...
commit 71bbcfc66f460755169947f3920a2cdf1d89f48b 1 parent ea9041d
Ingo Schommer authored September 11, 2012

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  security/PermissionRole.php
12  security/PermissionRole.php
@@ -62,4 +62,16 @@ function onAfterDelete() {
62 62
 			$code->delete();
63 63
 		}
64 64
 	}
  65
+
  66
+	function fieldLabels($includerelations = true) {
  67
+		$labels = parent::fieldLabels($includerelations);
  68
+		$labels['Title'] = _t('PermissionRole.Title', 'Title');
  69
+		$labels['OnlyAdminCanApply'] = _t(
  70
+			'PermissionRole.OnlyAdminCanApply', 
  71
+			'Only admin can apply',
  72
+			'Checkbox to limit which user can apply this role'
  73
+		);
  74
+		
  75
+		return $labels;
  76
+	}
65 77
 }

0 notes on commit 71bbcfc

Please sign in to comment.
Something went wrong with that request. Please try again.