From bbc77fcaaffccee267062db4a7ea088148545ec3 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 15 May 2020 09:17:38 +0200 Subject: [PATCH] Multi-language support --- plugins/dynamix/include/Translations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/Translations.php b/plugins/dynamix/include/Translations.php index 44cd0a8ec..0ad906945 100644 --- a/plugins/dynamix/include/Translations.php +++ b/plugins/dynamix/include/Translations.php @@ -24,7 +24,7 @@ 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)))),'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)))); + return parse_ini_string(preg_replace(['/^$/m','/^([^:;].+)$/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));