Grab error message titles from locale file instead of hardcoding them

feature/node-rewrite
Sven Slootweg 12 years ago
parent 215f54dba6
commit 23c06fd694

@ -70,12 +70,14 @@ menu-admin-users; Users
menu-admin-containers; VPSes
menu-admin-nodes; Nodes
## Global warnings
## Global warnings and errors
error-form; One or more problems occurred.
warning-suspended-title; This VPS is suspended
warning-suspended-text; You cannot change any configuration or perform any actions on this VPS. If you feel this should not be the case, please contact support.
warning-terminated-title; This VPS has been terminated
warning-terminated-text; You cannot change any configuration or perform any actions on this VPS, as it is terminated.
error-suspended-title; This VPS is suspended
error-terminated-title; This VPS has been terminated
## VPS overview page
title-overview; Overview

@ -203,17 +203,15 @@ try
}
catch (ContainerSuspendedException $e)
{
/* TODO: Grab error title from locale file? */
$sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array(
'title' => "Container is suspended",
'title' => $locale->strings['error-suspended-title'],
'message' => $e->getMessage()
));
}
catch (ContainerTerminatedException $e)
{
/* TODO: Grab error title from locale file? */
$sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array(
'title' => "Container is terminated",
'title' => $locale->strings['error-terminated-title'],
'message' => $e->getMessage()
));
}

Loading…
Cancel
Save