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->addBulkAction(
|
||||
'spam', 'Spam', 'CommentsGridFieldBulkAction_Handlers',
|
||||
'spam',
|
||||
_t('CommentsGridFieldConfig.SPAM', 'Spam'),
|
||||
'CommentsGridFieldBulkAction_Handlers',
|
||||
array(
|
||||
'isAjax' => true,
|
||||
'icon' => 'cross',
|
||||
|
@ -35,7 +37,9 @@ class CommentsGridFieldConfig extends GridFieldConfig_RecordEditor
|
|||
);
|
||||
|
||||
$manager->addBulkAction(
|
||||
'approve', 'Approve', 'CommentsGridFieldBulkAction_Handlers',
|
||||
'approve',
|
||||
_t('CommentsGridFieldConfig.APPROVE', 'Approve'),
|
||||
'CommentsGridFieldBulkAction_Handlers',
|
||||
array(
|
||||
'isAjax' => true,
|
||||
'icon' => 'cross',
|
||||
|
|
Loading…
Reference in New Issue