diff options
Diffstat (limited to 'langs/diff.php')
-rw-r--r-- | langs/diff.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/langs/diff.php b/langs/diff.php index 518dc211a..462b72a4c 100644 --- a/langs/diff.php +++ b/langs/diff.php @@ -31,6 +31,12 @@ if($source_file =='en/about/constitution.en.lang') { $constitution = false; } +if($source_file =='en/about/license.en.lang') { + $license = true; +} else { + $license = false; +} + $source_file = realpath($source_file); $target_file = realpath($target_file); @@ -48,12 +54,21 @@ $s .= sprintf('<h1>Differences between %s source and %s target</h1>', if($constitution) { $s .= '<h2 style="color: red;">Please translate constitution first</h2>'; - $s .= '<p>You can find it in <a href="http://svnweb.mageia.org/org/constitution/">svn</a>. Please read <a href="https://wiki.mageia.org/en/Internationalisation_Team_%28i18n%29#Special_cases_of_web_pages">page on wiki for more information</a> about that.</p>'; + $s .= '<p>You can find it in <a href="http://svnweb.mageia.org/org/constitution/">svn</a>. '; +} + +if($license) { + $s .= '<h2 style="color: red;">Please translate license first</h2>'; + $s .= '<p>You can find it in <a href="http://svnweb.mageia.org/soft/drakx/trunk/perl-install/share/po/">svn</a>. '; +} + +if($constitution || $license) { + $s .= 'Please read <a href="https://wiki.mageia.org/en/Internationalisation_Team_%28i18n%29#Special_cases_of_web_pages">page on wiki for more information</a> about that.</p>'; } -foreach (array('missing', 'notrans', 'extra') as $type) { +foreach (array('missing' => 'missing strings', 'notrans' => 'untranslated strings', 'extra' => 'unused (old) strings') as $type => $name) { if (count($diff[$type]) > 0) { - $s .= sprintf('<h2>%d %s:</h2>', count($diff[$type]), $type); + $s .= sprintf('<h2>%d %s:</h2>', count($diff[$type]), $name); $s .= '<pre>'; foreach ($diff[$type] as $l) $s .= sprintf(";%s\n\n", htmlspecialchars($l)); |