mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Extended translation support
Added translation support for CommentsAdmin's bulk action labels (shown in drop down).
This commit is contained in:
parent
801025c39a
commit
6822ecd669
@ -26,7 +26,9 @@ class CommentsGridFieldConfig extends GridFieldConfig_RecordEditor
|
|||||||
$manager = new GridFieldBulkManager();
|
$manager = new GridFieldBulkManager();
|
||||||
|
|
||||||
$manager->addBulkAction(
|
$manager->addBulkAction(
|
||||||
'spam', 'Spam', 'CommentsGridFieldBulkAction_Handlers',
|
'spam',
|
||||||
|
_t('CommentsGridFieldConfig.SPAM', 'Spam'),
|
||||||
|
'CommentsGridFieldBulkAction_Handlers',
|
||||||
array(
|
array(
|
||||||
'isAjax' => true,
|
'isAjax' => true,
|
||||||
'icon' => 'cross',
|
'icon' => 'cross',
|
||||||
@ -35,7 +37,9 @@ class CommentsGridFieldConfig extends GridFieldConfig_RecordEditor
|
|||||||
);
|
);
|
||||||
|
|
||||||
$manager->addBulkAction(
|
$manager->addBulkAction(
|
||||||
'approve', 'Approve', 'CommentsGridFieldBulkAction_Handlers',
|
'approve',
|
||||||
|
_t('CommentsGridFieldConfig.APPROVE', 'Approve'),
|
||||||
|
'CommentsGridFieldBulkAction_Handlers',
|
||||||
array(
|
array(
|
||||||
'isAjax' => true,
|
'isAjax' => true,
|
||||||
'icon' => 'cross',
|
'icon' => 'cross',
|
||||||
|
Loading…
Reference in New Issue
Block a user