From 78fa8ba747a7edc66e7524441f4c3adcc182791e Mon Sep 17 00:00:00 2001 From: Tom Oude Rengerink Date: Tue, 23 Jan 2024 23:41:14 +0100 Subject: [PATCH] ENH Make toast message "Records reordered." localisable (#321) Co-authored-by: Tom Oude Rengerink --- 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(); }