From ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sat, 7 Jun 2014 11:36:18 +0000 Subject: a workaround for navigation & license resource --- langs/report.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'langs/report.php') diff --git a/langs/report.php b/langs/report.php index a16d2ee1a..b9ecd4ad6 100644 --- a/langs/report.php +++ b/langs/report.php @@ -45,6 +45,13 @@ $restore_languages = FALSE; $restore_resources = FALSE; + if (isset($one_language) && $one_language != 'all') { + $otherLangs = array('en', $one_language); + $restore_languages = TRUE; + } else { + $otherLangs = get_other_langs(); + } + if (isset($one_resource) && $one_resource != 'all') { $enFiles = array($one_resource); $restore_resources = TRUE; @@ -52,7 +59,7 @@ $enFiles = array_merge(array('../_nav/langs/en.pot'), get_lang_references('*.lang'), get_lang_references('*.pot')); // added navigation file /* START OF A WORKAROUND FOR TIMEOUTS */ // temporary disabling license and navigation foreach($enFiles as $enFile) { - if($enFile != 'en/about/license.pot' && $enFile != '../_nav/langs/en.pot') { + if ($restore_languages || ($enFile != 'en/about/license.pot' && $enFile != '../_nav/langs/en.pot')) { $enFiles_tmp[] = $enFile; } } @@ -62,13 +69,6 @@ } $num_of_enFiles = count($enFiles); - if (isset($one_language) && $one_language != 'all') { - $otherLangs = array('en', $one_language); - $restore_languages = TRUE; - } else { - $otherLangs = get_other_langs(); - } - $enStringsCount = array(); $report = array(); $stats = array(); @@ -337,6 +337,10 @@ } $thfiles = '' . implode('', $lang_line) . '' . PHP_EOL; + if (!$restore_languages && !$restore_resources) { + echo '

Note that navigation resource and license resource are currently not shown in this full report as they take a significant amount of time to process.

'; + $count = ' '; + } if ($restore_languages) { echo '

Restore all languages.

'; $count = ' '; -- cgit v1.2.1