getAvailableProject(); while( list($key, $project) = each($availableProject) ) { // We must delete this var to be re-generated unset($rm->existingLanguage); // Define it as a project $pm->setProject($project['code']); if ($isCLI) { echo "\n * Initial repository checkout for the " . $project['name'] . "..."; } else { echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Initial repository checkout for the ' . $project['name'] . '...";'); } flush(); // checkout repository from VCS $co_response = $rm->checkoutRepository(); if (0 != $co_response['err']) { // error found in checkout, print the output and skip processing echo "\n * Repository checkout failed.\n"; echo implode("\n", $co_response['output']); continue; } if ($isCLI) { echo "\n * Applying tools on repository..."; } else { echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Applying tools on repository...";'); } flush(); //We apply all tools for all language $rm->applyRevCheck(); // Search for NotInEN old Files $rm->updateNotInEN(); if ($isCLI) { echo "\n * Parsing translation data..."; } else { echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Parsing translation data...";'); } flush(); // Parse translators $rm->updateTranslatorInfo(); if ($isCLI) { echo "\n * Compute all statistics..."; } else { echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Compute all statistics...";'); } flush(); // Compute all summary TranslationStatistic::getInstance()->computeSummary('all'); TranslatorStatistic::getInstance()->computeSummary('all'); // Store this info $info = array(); $info['user'] = 'root'; $rm->setStaticValue('info', 'updateData', json_encode($info), true); } if ($isCLI) { echo "\n\nInstallation completed!\n"; } else { echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Installation completed !";'); echo footerTemplate(); }