diff options
author | Filip Komar <filip@mageia.org> | 2013-07-14 18:34:25 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2013-07-14 18:34:25 +0000 |
commit | 42d540a56e4459a9157e7fb8f95160182d5e2e6f (patch) | |
tree | f2a7e8369dac02014cddef19394da97d113fad5e /langs/diff.php | |
parent | afafa9510bfa64b1b055315e4ebbbb44a039b605 (diff) | |
download | www-42d540a56e4459a9157e7fb8f95160182d5e2e6f.tar www-42d540a56e4459a9157e7fb8f95160182d5e2e6f.tar.gz www-42d540a56e4459a9157e7fb8f95160182d5e2e6f.tar.bz2 www-42d540a56e4459a9157e7fb8f95160182d5e2e6f.tar.xz www-42d540a56e4459a9157e7fb8f95160182d5e2e6f.zip |
license page refactored, updated, included in i18n report and linked in map. map.en.lang sync. small addition on community page
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)); |