mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed GridFieldAddNewButton label
This commit is contained in:
parent
fa445ad13f
commit
5b0734943f
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user