From 6822ecd66905b263278277c3dcf3204f397375a0 Mon Sep 17 00:00:00 2001 From: Janne Klouman Date: Fri, 10 Jun 2016 15:08:45 +0200 Subject: [PATCH] Extended translation support Added translation support for CommentsAdmin's bulk action labels (shown in drop down). --- code/admin/CommentsGridFieldConfig.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/admin/CommentsGridFieldConfig.php b/code/admin/CommentsGridFieldConfig.php index 2748b5c..a7412bd 100644 --- a/code/admin/CommentsGridFieldConfig.php +++ b/code/admin/CommentsGridFieldConfig.php @@ -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',