aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/missing.php')
-rw-r--r--langs/missing.php90
1 files changed, 0 insertions, 90 deletions
diff --git a/langs/missing.php b/langs/missing.php
deleted file mode 100644
index 552cf4abe..000000000
--- a/langs/missing.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
-*/
-define('HLANG', true);
-include 'lib.php';
-
-$s = isset($_GET['s']) ? strip_tags(trim($_GET['s'])) : null;
-$l = isset($_GET['l']) ? strip_tags(trim($_GET['l'])) : null;
-
-if (is_null($s)) {
- header('Location: /langs/report.php');
- die;
-}
-
-$resource = _extract_resource($s);
-$to_translate = '<a href="/langs/' . $s . '">/langs/' .$s . '</a>';
-
-if($resource =='about/constitution') {
- $constitution = true;
-} else {
- $constitution = false;
-}
-
-if($resource =='about/license') {
- $license = true;
-} else {
- $license = false;
-}
-
-if ($s == '../_nav/langs/en.pot') {
- $file = substr(_po_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>';
- $commit = '<a href="http://gitweb.mageia.org/web/nav/tree/langs/' . $file . '">/_nav/langs/' . $file . '</a>';
- $file = '/_nav/langs/' . $file;
- $to_translate = '<a href="../_nav/langs/en.pot">/_nav/langs/en.pot</a>';
-} else {
- $file = '/langs/' . _po_file_switch($s, $l);
- $note = '';
- $commit = '<a href="http://gitweb.mageia.org/web/www/tree' . $file . '">' . $file . '</a>';
-}
-
-$constitution_or_license = '';
-if($constitution) {
- $constitution_or_license .= '<h2 style="color: red;">Please translate <a href="http://gitweb.mageia.org/web/www/tree/en/about/constitution/">separate constitution file</a> fully into ' . $langs[$l] . ' first</h2>';
- $constitution_or_license .= '<p>You can find it in <a href="http://gitweb.mageia.org/web/www/tree/en/about/constitution/">git</a>.';
-}
-
-$num_of_untranslated_strings = 0;
-if($license) {
- $constitution_or_license .= '<h2 style="color: red;">Please translate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/">separate license file</a> into ' . $langs[$l] . ' first</h2>';
- $constitution_or_license .= '<p>You can find it as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $l . '.po">drakx translation file in git</a> or in <a href="https://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $l . '/#1/?s=drakx_share">Transifex</a> (it starts before the line with the string "1. License Agreement").'; // 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<?php echo '?l=' . $l ?>">&laquo; back to the report page for <?php echo $langs[$l] ?></a></p>
-<h1>Missing language file - <?php echo $file ?></h1>
-
-<p>Note that you can translate most of our web page resources online in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/<?php echo $l ?>/#1/?c=Webpages">Transifex</a>.</p>
-<p>Please take a look off the translation guide on the <a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)#Website_translation">localization Wiki page</a> too.</p>
-
-<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>
-<?php
-echo ' <li>You can start translating the source file ' . $to_translate . ' in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $l . '/#1/?c=Webpages">Transifex</a> or any other gettext editor of your choice and rename it to <code>' . $file . '</code>.' . $note . '</li>' . PHP_EOL;
-?>
- <li>Then:
- <ul>
- <li>if you're in <a href="http://people.mageia.org/g/mga-i18n-committers.html">mga-i18n-committers group</a>, you may commit it directly in <code><?php echo $commit ?></code>;</li>
- <li>or attach it to a mail to <a href="https://ml.mageia.org/l/info/i18n-discuss">Mageia localization team</a> (<code>mageia-i18n</code>, <a href="irc://irc.freenode.net/#mageia-i18n">#mageia-i18n</a> on Freenode).</li>
- </ul>
- </li>
-</ol>
-
-<p>Thanks!</p>
-<hr>
-</body>
-</html>