From 62055e9b176c3e24cb0a5a009fb0f8381dddfda3 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 14 May 2020 12:20:22 +0200 Subject: [PATCH] Revert "Multi-language support" This reverts commit 48600a1a36e88ef1619553faaa5eb5608d1ff1f2. --- plugins/dynamix/include/Translations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/include/Translations.php b/plugins/dynamix/include/Translations.php index 0ce0b0c0f..44cd0a8ec 100644 --- a/plugins/dynamix/include/Translations.php +++ b/plugins/dynamix/include/Translations.php @@ -21,10 +21,10 @@ function _($text) { return strpos($data,'*')===false ? $data : preg_replace(['/\*\*(.+?)\*\*/','/\*(.+?)\*/'],['$1','$1'],$data); } function parse_lang_file($file) { - return array_filter(parse_ini_string(preg_replace(['/^(null|yes|no|true|false|on|off|none)=/mi','/^([^>].*)=(.*)$/m','/^:(.+_(help|plug)):$/m','/^:end$/m'],['$1.=','$1="$2"','_$1_="','"'],str_replace('"','"',file_get_contents($file))),false,INI_SCANNER_RAW),'secured',ARRAY_FILTER_USE_BOTH); + return array_filter(parse_ini_string(preg_replace(['/^(null|yes|no|true|false|on|off|none)=/mi','/^([^>].*)=(.*)$/m','/^:(.+_(help|plug)):$/m','/^:end$/m'],['$1.=','$1="$2"','_$1_="','"'],str_replace('"','"',file_get_contents($file)))),'secured',ARRAY_FILTER_USE_BOTH); } function parse_help_file($file) { - return parse_ini_string(preg_replace(['/^([^:;].+)/m','/^:(.+_help):$/m','/^:end$/m'],['>$1','_$1_="','"'],str_replace('"','"',file_get_contents($file))),false,INI_SCANNER_RAW); + return parse_ini_string(preg_replace(['/^([^:;].+)/m','/^:(.+_help):$/m','/^:end$/m'],['>$1','_$1_="','"'],str_replace('"','"',file_get_contents($file)))); } function parse_text($text) { return preg_replace_callback('/_\((.+?)\)_/m',function($m){return _($m[1]);},preg_replace(["/^:(.+_help):$/m","/^:(.+_plug):$/m","/^:end$/m"],["","",""],$text));