From 5db84cfc4d0fb563dd628e89a336d5da23fd9fd6 Mon Sep 17 00:00:00 2001 From: Tom Oude Rengerink Date: Thu, 3 Jun 2021 08:55:47 +0200 Subject: [PATCH] FIX Make toast message "Records reordered." localisable --- src/GridFieldOrderableRows.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GridFieldOrderableRows.php b/src/GridFieldOrderableRows.php index ed48140..b667727 100755 --- a/src/GridFieldOrderableRows.php +++ b/src/GridFieldOrderableRows.php @@ -456,7 +456,10 @@ public function handleReorder($grid, $request) $this->httpError(400); } - Controller::curr()->getResponse()->addHeader('X-Status', rawurlencode('Records reordered.')); + Controller::curr()->getResponse()->addHeader( + 'X-Status', + rawurlencode(_t(__CLASS__ . '.REORDERED', 'Records reordered.')) + ); return $grid->FieldHolder(); }