Admin: Clicking 'Save' for custom translations forces a browser reload so translations are immediately available to the user

This commit is contained in:
nathan 2023-06-09 13:52:14 -06:00
parent b1fe818527
commit 623ba146e4
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ class admin_customtranslation
}
if ($saved) $msg = lang('%1 phrases saved.', $saved);
if ($action == 'apply') break;
$push = new Api\Json\Push();
$push->call('location.reload');
// fall through
case 'cancel':
Egw::redirect_link('/admin/index.php');