aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--langs/report.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/langs/report.php b/langs/report.php
index cd127e583..103bf7a12 100644
--- a/langs/report.php
+++ b/langs/report.php
@@ -48,7 +48,7 @@
$enFiles = array($one_resource);
$restore_resources = TRUE;
} else {
- $enFiles = array_merge(array('../_nav/langs/en.lang'), get_lang_references('*.lang'), get_lang_references('*.pot')); // added navigation file
+ $enFiles = array_merge(array('../_nav/langs/en.pot'), get_lang_references('*.lang'), get_lang_references('*.pot')); // added navigation file
sort($enFiles);
}
$num_of_enFiles = count($enFiles);
@@ -103,15 +103,15 @@
$enStringsCount[$f] = 0;
if (false !== strstr($f, '../_nav/langs/en.')) {
$nav = true;
- $langF = '../_nav/langs/' . $l . '.lang';
+ $langF = '../_nav/langs/' . $l . '.po' . (($l == 'en') ? 't' : '');
} else {
$nav = false;
}
$link = str_replace('index', '', $resource);
if ($nav) {
- $dest_en = sprintf('%s/%s/%s', G_APP_ROOT, '_nav/langs', 'en.lang');
- $dest_l = sprintf('%s/%s/%s', G_APP_ROOT, '_nav/langs', $l . '.lang');
+ $dest_en = sprintf('%s/%s/%s', G_APP_ROOT, '_nav/langs', 'en.pot');
+ $dest_l = sprintf('%s/%s/%s', G_APP_ROOT, '_nav/langs', $l . '.po');
} else {
$dest_en = sprintf('%s/%s/%s/%s', G_APP_ROOT, 'en', $link, 'index.php');
$dest_l = sprintf('%s/%s/%s/%s', G_APP_ROOT, $l, $link, 'index.php');
@@ -166,8 +166,8 @@
if ($nav) {
$mga = array();
- $local_f = @file_get_contents('../_nav/langs/' . $l . '.lang');
- $mognas_f = @file_get_contents('http://nav.mageia.org/langs/' . $l . '.lang');
+ $local_f = @file_get_contents('../_nav/langs/' . $l . '.po');
+ $mognas_f = @file_get_contents('http://nav.mageia.org/langs/' . $l . '.po');
if ($local_f != $mognas_f) {
$page_not_linked = 'difference in svn <a class="action partial" href="//svnweb.mageia.org/web/www/trunk/_nav/langs/">1</a> &amp; <a class="action partial" href="//svnweb.mageia.org/web/nav/langs/">2</a>';
}