diff options
author | Filip Komar <filip@mageia.org> | 2014-03-31 20:45:45 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-03-31 20:45:45 +0000 |
commit | 508b8bab531a1bf5941bbbdc8ef5db51448bb444 (patch) | |
tree | 1e1b058f9e54fb4d063c543f3ca812b6a16bd9b8 /langs | |
parent | dec16fcfc20d9268418c04beff83183b7a784ff9 (diff) | |
download | www-508b8bab531a1bf5941bbbdc8ef5db51448bb444.tar www-508b8bab531a1bf5941bbbdc8ef5db51448bb444.tar.gz www-508b8bab531a1bf5941bbbdc8ef5db51448bb444.tar.bz2 www-508b8bab531a1bf5941bbbdc8ef5db51448bb444.tar.xz www-508b8bab531a1bf5941bbbdc8ef5db51448bb444.zip |
fix of l10n report for mognase conversion to gettext
Diffstat (limited to 'langs')
-rw-r--r-- | langs/report.php | 12 |
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> & <a class="action partial" href="//svnweb.mageia.org/web/nav/langs/">2</a>'; } |