X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fextract.php;h=b3aa12ebf0e0a54301ea2551466fef2534e3fdd0;hb=c4d3ab68785122ff070c65a444aaa0833b746b2b;hp=92ec8501cef4913826d2326a0d5fc45ddcc26e7a;hpb=c26463b65b4b98f9aca77781fd74a7fe99f73814;p=friendica.git diff --git a/util/extract.php b/util/extract.php index 92ec8501ce..b3aa12ebf0 100644 --- a/util/extract.php +++ b/util/extract.php @@ -1,8 +1,8 @@ strings[' . $a . '] = ' . $a . ';' . "\n"; + foreach($arr as $a) { + if (is_array($a)){ + if(substr($a[1],0,1) == '$') + continue; + $s .= '$a->strings[' . $a[0] . "] = array(\n"; + $s .= "\t0 => ". $a[0]. ",\n"; + $s .= "\t1 => ". $a[1]. ",\n"; + $s .= ");\n"; + } else { + if(substr($a,0,1) == '$') + continue; + $s .= '$a->strings[' . $a . '] = '. $a . ';' . "\n"; + } } $zones = timezone_identifiers_list(); foreach($zones as $zone) $s .= '$a->strings[\'' . $zone . '\'] = \'' . $zone . '\';' . "\n"; - + echo $s; \ No newline at end of file