From 7d64b8365571776a02cd10550a6d4e657df4cb50 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 14 Feb 2017 17:53:47 +0100 Subject: [PATCH] * [MOD] Show translated messages when some errors are thrown --- inc/SP/Core/Init.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/SP/Core/Init.class.php b/inc/SP/Core/Init.class.php index 13747381..3964981f 100644 --- a/inc/SP/Core/Init.class.php +++ b/inc/SP/Core/Init.class.php @@ -322,7 +322,7 @@ class Init SessionUtil::cleanSession(); $Tpl = new Template(); - $Tpl->append('errors', ['type' => SPException::SP_CRITICAL, 'description' => $message, 'hint' => $hint]); + $Tpl->append('errors', ['type' => SPException::SP_CRITICAL, 'description' => __($message), 'hint' => __($hint)]); $Controller = new MainController($Tpl, 'error', !Checks::isAjax()); $Controller->getError();