diff --git a/security/Group.php b/security/Group.php index bf06d8ba1..fb85d8f44 100644 --- a/security/Group.php +++ b/security/Group.php @@ -337,7 +337,7 @@ class Group extends DataObject { function onBeforeWrite() { parent::onBeforeWrite(); - if(stripos($this->Code, 'new-') === 0) { + if(stripos($this->Code, _t('SecurityAdmin.NEWGROUPPREFIX','new-')) === 0) { $this->setCode($this->Title); } }