Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENHANCEMENT SSF-53 : add ability to use translated button label for '…

…Add New' and 'Link Existing'
  • Loading branch information...
commit 1175c693c540c78fc1ebcf656c1a8a694a79c232 1 parent 45927b9
@normann normann authored
View
2  forms/gridfield/GridFieldRelationAdd.php
@@ -66,7 +66,7 @@ public function getHTMLFragments($gridField) {
$searchField->addExtraClass('relation-search');
$findAction = new GridField_Action($gridField, 'gridfield_relationfind', _t('GridField.Find', "Find"), 'find', 'find');
- $addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.Add', "Add"), 'addto', 'addto');
+ $addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.LinkExisting', "Link Exisiting"), 'addto', 'addto');
// If an object is not found, disable the action
if(!is_int($gridField->State->GridFieldAddRelation)) {
View
2  templates/Includes/GridFieldTitle.ss
@@ -1,3 +1,3 @@
<tr class="title">
- <th colspan="$ColumnCount"><h2>$Title</h2> <a href="$NewLink" class="action ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link">Add new</a></th>
+ <th colspan="$ColumnCount"><h2>$Title</h2> <a href="$NewLink" class="action ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link"><% _t('GridField.AddNew', 'Add New') %></a></th>
</tr>
Please sign in to comment.
Something went wrong with that request. Please try again.