diff --git a/security/Group.php b/security/Group.php index db54894fa..7a0e88b17 100644 --- a/security/Group.php +++ b/security/Group.php @@ -343,7 +343,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); } }