diff --git a/forms/gridfield/GridFieldAddNewButton.php b/forms/gridfield/GridFieldAddNewButton.php index c36e0256f..649bd3433 100644 --- a/forms/gridfield/GridFieldAddNewButton.php +++ b/forms/gridfield/GridFieldAddNewButton.php @@ -15,7 +15,7 @@ class GridFieldAddNewButton implements GridField_HTMLProvider { public function getHTMLFragments($gridField) { $data = new ArrayData(array( 'NewLink' => Controller::join_links($gridField->Link('item'), 'new'), - 'ButtonName' => _t('GridField.Add', 'Add') . ' ' . _t('GridField.' . $gridField -> name, $gridField -> name), + 'ButtonName' => _t('GridField.Add', 'Add {name}', array('name' => $gridField->name)), )); return array( $this->targetFragment => $data->renderWith('GridFieldAddNewbutton'),