mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR i18n on GridFieldRelationAdd, GridFieldFilter and GridFieldItemEditVIew template
This commit is contained in:
parent
008ecf750a
commit
28906d4b32
@ -83,8 +83,8 @@ class GridFieldFilter implements GridField_HTMLProvider, GridField_DataManipulat
|
|||||||
if($currentColumn == count($columns)) {
|
if($currentColumn == count($columns)) {
|
||||||
$field = new FieldGroup(
|
$field = new FieldGroup(
|
||||||
$field,
|
$field,
|
||||||
new GridField_Action($gridField, 'filter', 'filter', 'filter', null),
|
new GridField_Action($gridField, 'filter', _t('GridField.Filter', "Filter"), 'filter', null),
|
||||||
new GridField_Action($gridField, 'reset', 'reset', 'reset', null)
|
new GridField_Action($gridField, 'reset', _t('GridField.ResetFilter', "Reset"), 'reset', null)
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -65,13 +65,12 @@ class GridFieldRelationAdd implements GridField_HTMLProvider, GridField_ActionPr
|
|||||||
$forTemplate->Fields = new ArrayList();
|
$forTemplate->Fields = new ArrayList();
|
||||||
|
|
||||||
$value = $this->findSingleEntry($gridField, $this->fieldToSearch, $searchState, $gridField->getList()->dataClass);
|
$value = $this->findSingleEntry($gridField, $this->fieldToSearch, $searchState, $gridField->getList()->dataClass);
|
||||||
$searchField = new TextField('gridfield_relationsearch', 'Auto Suggest Search field', $value);
|
$searchField = new TextField('gridfield_relationsearch', _t('GridField.RelationSearch', "Relation search"), $value);
|
||||||
// Apparently the data-* needs to be double qouted for the jQuery.meta data plugin
|
// Apparently the data-* needs to be double qouted for the jQuery.meta data plugin
|
||||||
//
|
|
||||||
$searchField->setAttribute('data-search-url', '\''.Controller::join_links($gridField->Link('search').'\''));
|
$searchField->setAttribute('data-search-url', '\''.Controller::join_links($gridField->Link('search').'\''));
|
||||||
|
|
||||||
$findAction = new GridField_Action($gridField, 'gridfield_relationfind', 'Find', 'find', 'find');
|
$findAction = new GridField_Action($gridField, 'gridfield_relationfind', _t('GridField.Find', "Find"), 'find', 'find');
|
||||||
$addAction = new GridField_Action($gridField, 'gridfield_relationadd', 'Add Relation', 'addto', 'addto');
|
$addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.Add', "Add"), 'addto', 'addto');
|
||||||
|
|
||||||
// If an object is not found, disable the action
|
// If an object is not found, disable the action
|
||||||
if(!is_int($gridField->State->GridFieldAddRelation)) {
|
if(!is_int($gridField->State->GridFieldAddRelation)) {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="$Backlink"> Go back the way you came!</a>
|
<a href="$Backlink"><% _t('Go back', 'Go back' ) </a>
|
||||||
|
|
||||||
$ItemEditForm
|
$ItemEditForm
|
Loading…
Reference in New Issue
Block a user