Skip to content
This repository
Browse code

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 Lou authored March 02, 2012
2  forms/gridfield/GridFieldRelationAdd.php
@@ -66,7 +66,7 @@ public function getHTMLFragments($gridField) {
66 66
 		$searchField->addExtraClass('relation-search');
67 67
 		
68 68
 		$findAction = new GridField_Action($gridField, 'gridfield_relationfind', _t('GridField.Find', "Find"), 'find', 'find');
69  
-		$addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.Add', "Add"), 'addto', 'addto');
  69
+		$addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.LinkExisting', "Link Exisiting"), 'addto', 'addto');
70 70
 
71 71
 		// If an object is not found, disable the action
72 72
 		if(!is_int($gridField->State->GridFieldAddRelation)) {
2  templates/Includes/GridFieldTitle.ss
... ...
@@ -1,3 +1,3 @@
1 1
 <tr class="title">
2  
-	<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>
  2
+	<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>
3 3
 </tr>

0 notes on commit 1175c69

Please sign in to comment.
Something went wrong with that request. Please try again.