ENH Make toast message "Records reordered." localisable (#321)

Co-authored-by: Tom Oude Rengerink <tom@cube.nl>
This commit is contained in:
Tom Oude Rengerink 2024-01-23 23:41:14 +01:00 committed by GitHub
parent 377dc1ef93
commit 78fa8ba747
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -456,7 +456,10 @@ class GridFieldOrderableRows extends RequestHandler implements
$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();
}