aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-01-26 15:16:46 +0000
committerFilip Komar <filip@mageia.org>2013-01-26 15:16:46 +0000
commitdf30c14b633898b27bc9019b1fdf17061918d603 (patch)
tree21180ed790ef1f737db5d8b66cad466d10dd5865 /langs/diff.php
parent1873fb8ced086ac5b8a77f894921f872511dab5d (diff)
downloadwww-df30c14b633898b27bc9019b1fdf17061918d603.tar
www-df30c14b633898b27bc9019b1fdf17061918d603.tar.gz
www-df30c14b633898b27bc9019b1fdf17061918d603.tar.bz2
www-df30c14b633898b27bc9019b1fdf17061918d603.tar.xz
www-df30c14b633898b27bc9019b1fdf17061918d603.zip
stronger warning about untranslated constitution
Diffstat (limited to 'langs/diff.php')
-rw-r--r--langs/diff.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/langs/diff.php b/langs/diff.php
index 89ec341a1..518dc211a 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -25,6 +25,12 @@ if (!file_exists($target_file)) {
die('no target');
}
+if($source_file =='en/about/constitution.en.lang') {
+ $constitution = true;
+} else {
+ $constitution = false;
+}
+
$source_file = realpath($source_file);
$target_file = realpath($target_file);
@@ -40,6 +46,10 @@ $s = '<a href="report.php">&laquo; back to langs report</a>';
$s .= sprintf('<h1>Differences between %s source and %s target</h1>',
substr($source_file, strpos($source_file, '/langs/')+7), $target_lang);
+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>';
+}
foreach (array('missing', 'notrans', 'extra') as $type) {
if (count($diff[$type]) > 0) {