Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed GridFieldAddNewButton label

  • Loading branch information...
commit 5b0734943f568bd4db153b2912b86400a81d8c7b 1 parent fa445ad
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/gridfield/GridFieldAddNewButton.php
View
2  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'),
Please sign in to comment.
Something went wrong with that request. Please try again.