aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-01-05 16:01:51 +0000
committerFilip Komar <filip@mageia.org>2014-01-05 16:01:51 +0000
commit268da1986e106fd8763beea61bfe0fff75ee97ee (patch)
treef752b22e123124fa5c31b2e4ac0ff51b3be99e63 /langs/missing.php
parenta09e145791a75ca7b939fa5e4ee8062c263b0b5b (diff)
downloadwww-268da1986e106fd8763beea61bfe0fff75ee97ee.tar
www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.gz
www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.bz2
www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.xz
www-268da1986e106fd8763beea61bfe0fff75ee97ee.zip
some usability improvements
Diffstat (limited to 'langs/missing.php')
-rw-r--r--langs/missing.php33
1 files changed, 31 insertions, 2 deletions
diff --git a/langs/missing.php b/langs/missing.php
index 0514be1c3..44016693a 100644
--- a/langs/missing.php
+++ b/langs/missing.php
@@ -12,6 +12,18 @@ if (is_null($s)) {
include 'lib.php';
+if($s =='en/about/constitution.en.lang') {
+ $constitution = true;
+} else {
+ $constitution = false;
+}
+
+if($s =='en/about/license.en.lang') {
+ $license = true;
+} else {
+ $license = false;
+}
+
if ($s == '../_nav/langs/en.lang') {
$file = substr(_lang_file_switch($s, $l), 14);
$note = '<span style="color: red; font-weight: bold"> NOTE: THIS IS TRANSLATION OF NAVIGATION SO LOCATION FOR COMMIT IS DIFFERENT!</span>';
@@ -24,18 +36,35 @@ if ($s == '../_nav/langs/en.lang') {
$iframe = '//www.mageia.org/langs/'.$s;
}
+$constitution_or_license = '';
+if($constitution) {
+ $constitution_or_license .= '<h2 style="color: red;">Please translate constitution first</h2>';
+ $constitution_or_license .= '<p>You can find it in <a href="//svnweb.mageia.org/org/constitution/">svn</a>. ';
+}
+
+$num_of_untranslated_strings = 0;
+if($license) {
+ $constitution_or_license .= '<h2 style="color: red;">Please translate license into ' . $langs[$target_lang] . ' first</h2>';
+ $constitution_or_license .= sprintf('<p>You can find it in <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/%s.po">git</a>. ', $target_lang); // git doesn't work yet on https
+}
+
+if($constitution || $license) {
+ $constitution_or_license .= '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><p>Then:</p>';
+}
+
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow,nosnippet">
+ <title>Missing language file</title>
</head>
<body>
<p><a href="report.php">&laquo; back to the report page</a></p>
-
+<h1>Missing language file</h1>
<p>So, <code><?php echo $file ?></code> language file is missing in <?php echo $langs[$l], ' (<code>', $l, '</code>)' ?>. What can you do to help us?</p>
-
+<?php echo $constitution_or_license; ?>
<ol>
<li>Copy the source file from the frame below in a text editor and rename it <code><?php echo $file?></code>.<?php echo $note ?></li>
<li>Replace and translate the strings that are just after the lines starting with a ";". Be careful to always keep your translated text on a single line.</li>