<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Developer; class LangUtil { public static function extractFileLangScripts($RLMU5) { goto GZ740; mF2Rj: $DTnPC = file_get_contents($RLMU5); goto K50M9; TYGFH: return ''; goto JarlX; K50M9: preg_match_all('/L\\((([^()]*|\\([^()]*\\))*)\\)/', $DTnPC, $FH50y); goto lSclh; SFyuA: if (!file_exists($RLMU5)) { return ''; } goto mF2Rj; GZ740: $RLMU5 = base_path($RLMU5); goto SFyuA; lSclh: if (!empty($FH50y[1])) { goto GbJaU; Oozwx: ksort($mte7P); goto ewTOj; GbJaU: $mte7P = array(); goto H5JCB; ewTOj: return '
{!! \\ModStart\\Developer\\LangUtil::langScriptPrepare(' . json_encode(array_keys($mte7P), JSON_PRETTY_PRINT) . ') !!}'; goto HqVtf; H5JCB: foreach ($FH50y[0] as $nsWl0) { if (preg_match('/^L\\([\'|"](.*?)[\'|"].*?\\)/', $nsWl0, $fkBRb)) { $mte7P[$fkBRb[1]] = L($fkBRb[1]); } } goto Oozwx; HqVtf: } goto TYGFH; JarlX: } public static function langScriptPrepare($mte7P) { goto rSe3J; SYbu8: $BcREp[] = '  window.lang = window.lang||{};'; goto jOnLo; JyI47: $BcREp[] = '})();'; goto IhMx6; jOnLo: foreach ($mte7P as $x88EM) { $BcREp[] = '  window.lang[' . json_encode($x88EM) . ']=' . json_encode(L($x88EM), JSON_UNESCAPED_UNICODE) . ';'; } goto JyI47; wWV8r: $BcREp[] = '
(function(){'; goto SYbu8; IhMx6: return join('
', $BcREp); goto ta5wV; rSe3J: $BcREp = array(); goto wWV8r; ta5wV: } }