mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Extended translation support
Added translation support for the CommentsAdmin's GridField's inline spam/approve marking labels, and also for the success messages (controller response).
This commit is contained in:
parent
1a94d1cd55
commit
801025c39a
@ -53,7 +53,7 @@ class CommentsGridFieldAction implements GridField_ColumnProvider, GridField_Act
|
||||
$field .= GridField_FormAction::create(
|
||||
$gridField,
|
||||
'CustomAction' . $record->ID . 'Spam',
|
||||
'Spam',
|
||||
_t('CommentsGridFieldAction.SPAM', 'Spam'),
|
||||
'spam',
|
||||
array('RecordID' => $record->ID)
|
||||
)->Field();
|
||||
@ -63,7 +63,7 @@ class CommentsGridFieldAction implements GridField_ColumnProvider, GridField_Act
|
||||
$field .= GridField_FormAction::create(
|
||||
$gridField,
|
||||
'CustomAction' . $record->ID . 'Approve',
|
||||
'Approve',
|
||||
_t('CommentsGridFieldAction.APPROVE', 'Approve'),
|
||||
'approve',
|
||||
array('RecordID' => $record->ID)
|
||||
)->Field();
|
||||
@ -92,7 +92,7 @@ class CommentsGridFieldAction implements GridField_ColumnProvider, GridField_Act
|
||||
// output a success message to the user
|
||||
Controller::curr()->getResponse()->setStatusCode(
|
||||
200,
|
||||
'Comment marked as spam.'
|
||||
_t('CommentsGridFieldAction.COMMENTMARKEDSPAM', 'Comment marked as spam.')
|
||||
);
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ class CommentsGridFieldAction implements GridField_ColumnProvider, GridField_Act
|
||||
// output a success message to the user
|
||||
Controller::curr()->getResponse()->setStatusCode(
|
||||
200,
|
||||
'Comment approved.'
|
||||
_t('CommentsGridFieldAction.COMMENTAPPROVED', 'Comment approved.')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user