Skip to content

Commit

Permalink
ENH Make toast message "Records reordered." localisable (#321)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Oude Rengerink <[email protected]>
  • Loading branch information
TomOudeRengerink and Tom Oude Rengerink authored Jan 23, 2024
1 parent 377dc1e commit 78fa8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GridFieldOrderableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 78fa8ba

Please sign in to comment.