localization parser fix

Co-authored-by: Jill Stingray
This commit is contained in:
veselcraft 2020-10-31 19:00:33 -04:00
parent 5b0f5bb06c
commit 1e5e9d7080

View file

@ -32,7 +32,7 @@ class Localizator
if(isset($GLOBALS["localizationCache_$hash"])) return $GLOBALS["localizationCache_$hash"];
$string = file_get_contents($file);
$string = preg_replace("%^\%{.*\%}$%m", "", $string); #Remove comments
$string = preg_replace("%^\%{.*\%}\r?$%m", "", $string); #Remove comments
$array = [];
foreach(preg_split("%;[\\r\\n]++%", $string) as $statement) {