frontend translations

This commit is contained in:
Sky Mulley
2026-11-23 14:51:03 +00:00
parent 9ac86842e9
commit 7ee3757a57
281 changed files with 3239 additions and 1662 deletions
@@ -16,17 +16,17 @@ class ServerStateConflictException extends ConflictHttpException
*/
public function __construct(Server $server, ?Throwable $previous = null)
{
$message = 'This server is currently in an unsupported state, please try again later.';
$message = __('exceptions.server.unsupported_state');
if ($server->isSuspended()) {
$message = 'This server is currently suspended and the functionality requested is unavailable.';
$message = __('exceptions.server.suspended');
} elseif ($server->node->isUnderMaintenance()) {
$message = 'The node of this server is currently under maintenance and the functionality requested is unavailable.';
$message = __('exceptions.server.node_maintenance');
} elseif (! $server->isInstalled()) {
$message = 'This server has not yet completed its installation process, please try again later.';
$message = __('exceptions.server.not_installed');
} elseif ($server->status === Server::STATUS_RESTORING_BACKUP) {
$message = 'This server is currently restoring from a backup, please try again later.';
$message = __('exceptions.server.restoring_backup');
} elseif (($server->transfer) !== null) {
$message = 'This server is currently being transferred to a new machine, please try again later.';
$message = __('exceptions.server.transferring');
}
parent::__construct($message, $previous);