protected function execute(InputInterface $input, OutputInterface $output) { $packagePath = $input->getArgument('kwf-path'); $trlFolder = "{$packagePath}/trl"; if (!is_dir($trlFolder)) { mkdir($trlFolder); } $parseScript = new Parser($packagePath, "{$trlFolder}/en.po", 'kwf', $output); $parseScript->setIgnoredFiles(array("{$packagePath}/Kwf/Trl.php", "{$packagePath}/Kwf/Component/Data.php", "{$packagePath}/Kwf/Controller/Action/Debug/ApcController.php")); $parseScript->parse(); }
protected function execute(InputInterface $input, OutputInterface $output) { $packageName = $input->getArgument('package-name'); $packagePath = "vendor/{$packageName}"; $trlFolder = "{$packagePath}/trl"; if (!is_dir($trlFolder)) { mkdir($trlFolder); } $parseScript = new Parser($packagePath, "{$trlFolder}/en.po", 'kwf', $output, 'vendor/koala-framework/koala-framework/trl/en.po'); $parseScript->parse(); }
protected function execute(InputInterface $input, OutputInterface $output) { $config = parse_ini_file('config.ini'); $webcodeLanguage = $config['webCodeLanguage']; $poFilePath = "trl/{$webcodeLanguage}.po"; if (!is_dir('trl')) { mkdir('trl'); } $parseScript = new Parser(getcwd(), $poFilePath, 'web', $output); $parseScript->parse(); }