mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Localization for "cancel" button in GridFieldDetailForm
This commit is contained in:
parent
f49439c1a4
commit
ea9041df54
@ -302,10 +302,11 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
$curmbs = $this->Breadcrumbs();
|
||||
if($curmbs && $curmbs->count()>=2){
|
||||
$one_level_up = $curmbs->offsetGet($curmbs->count()-2);
|
||||
$text = "
|
||||
<a class=\"crumb ss-ui-button ss-ui-action-destructive cms-panel-link ui-corner-all\" href=\"".$one_level_up->Link."\">
|
||||
Cancel
|
||||
</a>";
|
||||
$text = sprintf(
|
||||
"<a class=\"crumb ss-ui-button ss-ui-action-destructive cms-panel-link ui-corner-all\" href=\"%s\">%s</a>",
|
||||
$one_level_up->Link,
|
||||
_t('GridFieldDetailForm.CancelBtn', 'Cancel')
|
||||
);
|
||||
$actions->push(new LiteralField('cancelbutton', $text));
|
||||
}
|
||||
}
|
||||
|
@ -232,6 +232,7 @@ en:
|
||||
GridFieldAction_Delete:
|
||||
DeletePermissionsFailure: 'No delete permissions'
|
||||
GridFieldDetailForm:
|
||||
CancelBtn: Cancel
|
||||
Create: Create
|
||||
Delete: Delete
|
||||
DeletePermissionsFailure: 'No delete permissions'
|
||||
|
Loading…
Reference in New Issue
Block a user