From 46ac09aacbf873a53dff305ac7e35f052b923423 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Wed, 24 Feb 2021 16:59:57 +0100 Subject: [PATCH] fix: [internal] Bad merge that prevents language change --- app/webroot/index.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/webroot/index.php b/app/webroot/index.php index 59971c6b7..da9846b6c 100644 --- a/app/webroot/index.php +++ b/app/webroot/index.php @@ -18,18 +18,6 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -// This is GovCERT.CZ modified method to make translation faster -function __($singular, $args = null) { - if (!$singular) { - return null; - } - - App::uses('I18n', 'I18n'); - // Enforce english translation to make everything faster - $translated = I18n::translate($singular, null, null, I18n::LC_MESSAGES, null, 'eng'); - $arguments = func_get_args(); - return I18n::insertArgs($translated, array_slice($arguments, 1)); -} /** * Use the DS to separate the directories in other defines */