diff --git a/site/admin/translate.php b/site/admin/translate.php index 894e0cd3..fd945664 100644 --- a/site/admin/translate.php +++ b/site/admin/translate.php @@ -37,7 +37,7 @@ function save_message($locale,$key,$value) { $fp = fopen(dirname(__FILE__)."/../locales/$locale/properties", "r"); while (!feof($fp)) { $line = fgets($fp, 4096); - $keyval = split("=", $line, 2 ); + $keyval = preg_split("/=/", $line, 2 ); if( isset($keyval[1]) ) { if($keyval[0] == 'encoding') { $current_encoding = trim($keyval[1]); diff --git a/site/libs/common.php b/site/libs/common.php index fa098e94..69fd39a7 100644 --- a/site/libs/common.php +++ b/site/libs/common.php @@ -118,7 +118,7 @@ function load_messages($locale) { if(!$fp) { die("wrong locale"); } while (!feof($fp)) { $line = fgets($fp, 4096); - $keyval = split("=", $line, 2 ); + $keyval = preg_split("/=/", $line, 2 ); if( isset($keyval[1]) ) { if($keyval[0] == 'encoding') { $current_encoding = trim($keyval[1]);