芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/shimoda/vendor/gettext/gettext/src/Utils/FunctionsScanner.php
getFunctions($options['constants']) as $function) { list($name, $line, $args) = $function; if (!isset($functions[$name])) { continue; } $domain = $context = $original = $plural = null; switch ($functions[$name]) { case 'noop': case 'gettext': if (!isset($args[0])) { continue 2; } $original = $args[0]; break; case 'ngettext': if (!isset($args[1])) { continue 2; } list($original, $plural) = $args; break; case 'pgettext': if (!isset($args[1])) { continue 2; } list($context, $original) = $args; break; case 'dgettext': if (!isset($args[1])) { continue 2; } list($domain, $original) = $args; break; case 'dpgettext': if (!isset($args[2])) { continue 2; } list($domain, $context, $original) = $args; break; case 'npgettext': if (!isset($args[2])) { continue 2; } list($context, $original, $plural) = $args; break; case 'dnpgettext': if (!isset($args[3])) { continue 2; } list($domain, $context, $original, $plural) = $args; break; case 'dngettext': if (!isset($args[2])) { continue 2; } list($domain, $original, $plural) = $args; break; default: throw new Exception(sprintf('Not valid function %s', $functions[$name])); } if ((string) $original !== '' && ($domain === null || $domain === $translations->getDomain())) { $translation = $translations->insert($context, $original, $plural); $translation->addReference($file, $line); if (isset($function[3])) { foreach ($function[3] as $extractedComment) { $translation->addExtractedComment($extractedComment); } } } } } }