aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-06-07 11:36:18 +0000
committerFilip Komar <filip@mageia.org>2014-06-07 11:36:18 +0000
commitea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6 (patch)
tree509d4435254a6cb1e7df9aa116da9392d6236878 /langs/report.php
parentfe31c40f0ad09fd061a42b26a118e33b9b7ba010 (diff)
downloadwww-ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6.tar
www-ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6.tar.gz
www-ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6.tar.bz2
www-ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6.tar.xz
www-ea9f9f89e9bd6c5a89b1bfb6174a1672040c4ef6.zip
a workaround for navigation & license resource
Diffstat (limited to 'langs/report.php')
-rw-r--r--langs/report.php20
1 files changed, 12 insertions, 8 deletions
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 = '<th>' . implode('</th><th>', $lang_line) . '</th>' . PHP_EOL;
+ if (!$restore_languages && !$restore_resources) {
+ echo '<p>Note that <a href="?r=../_nav/langs/en.pot" title="navigation resource">navigation resource</a> and <a href="?r=en/about/license.pot" title="license resource">license resource</a> are currently not shown in this full report as they take a significant amount of time to process.</p>';
+ $count = '&nbsp;';
+ }
if ($restore_languages) {
echo '<p>Restore <a href="?l=all" title="see all languages">all languages</a>.</p>';
$count = '&nbsp;';