$files = array_merge($files,glob('mod/*'),glob('include/*'),glob('addon/*/*'));
$files = array_merge($files,glob('mod/*'),glob('include/*'),glob('addon/*/*'));
preg_match_all($pat,$str,$matches);
preg_match_all($patt, $str, $matchestt);
preg_match_all($pat,$str,$matches);
preg_match_all($patt, $str, $matchestt);
- if (count($matches)){
- foreach ($matches[1] as $match) {
- if (! in_array($match,$arr))
+
+ if(count($matches)){
+ foreach($matches[1] as $match) {
+ if(! in_array($match,$arr))
$matchtkns = preg_split("|[ \t\r\n]*,[ \t\r\n]*|",$match);
if (count($matchtkns)==3 && !in_array($matchtkns,$arr)){
$arr[] = $matchtkns;
$matchtkns = preg_split("|[ \t\r\n]*,[ \t\r\n]*|",$match);
if (count($matchtkns)==3 && !in_array($matchtkns,$arr)){
$arr[] = $matchtkns;
$s .= '$a->strings[' . $a[0] . "] = array(\n";
$s .= "\t0 => ". $a[0]. ",\n";
$s .= "\t1 => ". $a[1]. ",\n";
$s .= ");\n";
} else {
$s .= '$a->strings[' . $a[0] . "] = array(\n";
$s .= "\t0 => ". $a[0]. ",\n";
$s .= "\t1 => ". $a[1]. ",\n";
$s .= ");\n";
} else {