From 42d540a56e4459a9157e7fb8f95160182d5e2e6f Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sun, 14 Jul 2013 18:34:25 +0000 Subject: license page refactored, updated, included in i18n report and linked in map. map.en.lang sync. small addition on community page --- langs/diff.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'langs/diff.php') 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('

Differences between %s source and %s target

', if($constitution) { $s .= '

Please translate constitution first

'; - $s .= '

You can find it in svn. Please read page on wiki for more information about that.

'; + $s .= '

You can find it in svn. '; +} + +if($license) { + $s .= '

Please translate license first

'; + $s .= '

You can find it in svn. '; +} + +if($constitution || $license) { + $s .= 'Please read page on wiki for more information about that.

'; } -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('

%d %s:

', count($diff[$type]), $type); + $s .= sprintf('

%d %s:

', count($diff[$type]), $name); $s .= '
';
         foreach ($diff[$type] as $l)
             $s .= sprintf(";%s\n\n", htmlspecialchars($l));
-- 
cgit v1.2.1