fix: [internal] Bad merge that prevents language change

pull/7084/head
Jakub Onderka 2021-02-24 16:59:57 +01:00
parent 8dc9407009
commit 46ac09aacb
1 changed files with 0 additions and 12 deletions

View File

@ -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
*/