MINOR Fixed GridFieldAddNewButton label

This commit is contained in:
Ingo Schommer 2012-05-24 23:39:47 +02:00
parent fa445ad13f
commit 5b0734943f

View File

@ -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'),