From 54dd2d7d83c85fa0218f3f6a99799cd0c2c0f409 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 22 Jun 2020 09:15:30 +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 681adf2d2..b9b4290a5 100644 --- a/plugins/dynamix/include/Translations.php +++ b/plugins/dynamix/include/Translations.php @@ -44,7 +44,7 @@ function _($text, $do=-1) { } function parse_lang_file($file) { // parser for translation files, includes some trickery to handle PHP quirks. - return array_safe((array)parse_ini_string(preg_replace(['/^(null|yes|no|true|false|on|off|none)=/mi','/^([^>].*)=(.*)$/m','/^:(.+_(help|plug)):$/m','/^:end$/m'],['$1.=','$1="$2"','_$1_="','"'],escapeQuotes(file_get_contents($file))))); + return array_safe((array)parse_ini_string(preg_replace(['/^(null|yes|no|true|false|on|off|none)=/mi','/^([^>].*?)=(.*)$/m','/^:(.+_(help|plug)):$/m','/^:end$/m'],['$1.=','$1="$2"','_$1_="','"'],escapeQuotes(file_get_contents($file))))); } function parse_help_file($file) { // parser for help text files, includes some trickery to handle PHP quirks.