From: <sy...@us...> - 2003-07-13 21:20:43
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1:/tmp/cvs-serv26907 Modified Files: get_strings.php Log Message: backslash \ Index: get_strings.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/get_strings.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- get_strings.php 6 Jul 2003 20:26:39 -0000 1.17 +++ get_strings.php 13 Jul 2003 21:20:40 -0000 1.18 @@ -112,8 +112,8 @@ } print('"'.'##end###'.'" => "'.'###end###'.'"'.");?>\n<br/>"); foreach($lang as $key=>$val) { - fwrite($fw,'"'.str_replace("\$", "\\\$",$key).'" => "'.str_replace("\$", "\\\$", $val).'",'); - //fwrite($fw,'"'.str_replace("\$", "\\\$",$key).'" => "'.utf8_decode(str_replace("\$", "\\\$", $val)).'",'); + // backslash $ and \ + fwrite($fw,'"'.str_replace("\$", "\\\$",str_replace("\\", "\\\\", $key)).'" => "'.str_replace("\$", "\\\$", str_replace("\\", "\\\\", $val)).'",'); if (isset($used[$key])) fwrite($fw, "\n"); else |