Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
* Translate router 505 messages
  • Loading branch information
itsalb3rt committed Jun 19, 2020
1 parent ec96f33 commit f473106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions system/core/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ static private function rootDir(): string
static public function showNonexistentController(string $controller_name = null): void
{
$erroHandler = new ErrorHandler(ENVIROMENT);
$erroHandler->showDevMessages("El controlador no existe",
"Debe verificar la ruta que ha insertado, en realidad tiene un controlador con el nombre <span class='special_name_element'>$controller_name</span>", $_SERVER['REQUEST_URI']);
$erroHandler->showDevMessages("Controller name does not exist",
"Actually has a controller named <span class='special_name_element'>$controller_name</span>", $_SERVER['REQUEST_URI']);
}

/**
Expand All @@ -117,8 +117,8 @@ static public function showNonexistentController(string $controller_name = null)
static public function showInvalidAction(): void
{
$erroHandler = new ErrorHandler(ENVIROMENT);
$erroHandler->showDevMessages("Acción inexistente para la url",
"Puede que este intentado realizar una acción que no exista, por ejemplo, para un controlador foo que tenga una acción bar la ruta seria http://dominio/foo/bar",
$erroHandler->showDevMessages("Non-existent action for the url",
"You may be trying to perform an action that does not exist, for example for a foo controller that has a bar action the path would be http://domain/foo/bar",
$_SERVER['REQUEST_URI']);
}

Expand All @@ -129,8 +129,8 @@ static public function showInvalidAction(): void
static public function showActionNoExists(string $method): void
{
$erroHandler = new ErrorHandler(ENVIROMENT);
$erroHandler->showDevMessages("La acción ' " . $method . " ' no existe",
"La acción solicitada al parecer no existe en el controlador");
$erroHandler->showDevMessages("The action ' " . $method . " ' Does not exist",
"The requested action does not appear to exist in the controller");
}

/**
Expand Down

0 comments on commit f473106

Please sign in to comment.