Permalink
Browse files

MINOR Fixed GridFieldAddNewButton label

  • Loading branch information...
chillu committed May 24, 2012
1 parent fa445ad commit 5b0734943f568bd4db153b2912b86400a81d8c7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/gridfield/GridFieldAddNewButton.php
@@ -15,7 +15,7 @@ public function __construct($targetFragment = 'before') {
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'),

0 comments on commit 5b07349

Please sign in to comment.