aboutsummaryrefslogtreecommitdiffstats
path: root/en
diff options
context:
space:
mode:
authorClaire Revillet <grenoya@mageia.org>2014-01-09 22:42:14 +0000
committerClaire Revillet <grenoya@mageia.org>2014-01-09 22:42:14 +0000
commit2a84ec61d9661f60aa29b98a60e4106d67506ea9 (patch)
treecc3b5247a65e5ecc5121d886c72041436ae33317 /en
parent000aa7f742687f4d59014acddef894089c5a0bb2 (diff)
downloadwww-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar
www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.gz
www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.bz2
www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.xz
www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.zip
- creation of the archive page for the documentation of old mga versions
Diffstat (limited to 'en')
-rw-r--r--en/doc/archive.php80
-rw-r--r--en/doc/index.php12
2 files changed, 82 insertions, 10 deletions
diff --git a/en/doc/archive.php b/en/doc/archive.php
new file mode 100644
index 000000000..3e1f111a3
--- /dev/null
+++ b/en/doc/archive.php
@@ -0,0 +1,80 @@
+<?php
+define('HLANG', true);
+require '../../langs.php';
+_lang_load($locale, 'documentation');
+
+function doc_list($languages, $link)
+{
+ global $locale;
+ global $langs;
+ $your_language = '';
+ $others = '';
+ $text_others = '';
+ $your_language_present = FALSE;
+ $other_languages_present = FALSE;
+ foreach ($languages as $lng) {
+ // hopefully temporary exception for pt-br as convention for lang-abbrev in /langs.inc.php is different as link in doc.mageia.org
+ if ($lng == 'pt_br') {
+ $lng_name = $langs['pt-br'];
+ } else {
+ $lng_name = $langs[$lng];
+ }
+
+ if ($locale == $lng) {
+ $your_language_present = TRUE;
+ $your_language = sprintf($link . '<br/><br/>', $lng, $lng_name);
+ } else {
+ $other_languages_present = TRUE;
+ $others .= sprintf($link . '<br/>', $lng, $lng_name);
+ }
+ }
+ if ($your_language_present) {
+ $text_your_language = _t('Documentation in your language:');
+ if ($other_languages_present) {
+ $text_others = _t('There are also:') . '<br/>';
+ }
+ } else {
+ $text_your_language = _t('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>';
+ }
+ echo $text_your_language . $your_language . $text_others . $others;
+}
+
+?><!DOCTYPE html>
+<html lang="<?php echo $locale; ?>" dir="ltr">
+<head>
+ <meta charset="utf-8">
+ <title><?php _e("Mageia Documentation's Archive")?></title>
+ <meta name="description" content="<?php _e('Old documentation for Mageia distribution and its tools.')?>">
+ <meta name="keywords" content="<?php _e('doc,documentation,help,guide,installer,installation,mageia,linux')?>">
+ <link rel="stylesheet" href="/g/style/all.css" type="text/css">
+</head>
+<body class="doc">
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavt"><?php _e("Mageia Documentation's Archive")?></h1>
+ <div id="doc" class="yui-t7">
+ <div id="bd" role="main">
+ <div class="yui-g">
+ <div class="para donate" style="padding-top: 2em;">
+ <h2><?php _e('Some More documentation')?></h2>
+ <p><?php _e('You will find here the documentations for the versions of Mageia that have reached their End-Of-Life.')?><br/>
+ <?php _e('If you are looking for the current versions, see <a href="index.php">here</a>)')?></p>
+ <hr>
+ <h3>Mageia 2</h3>
+ <div style="float: left; margin: 2em;">
+ <h4><?php _e('Installer')?></h4>
+ <p><?php
+ $mga2_installer = array('de','el','en','eo','fr','nl','pt_br','uk');
+ doc_list($mga2_installer, '<a href="//doc.mageia.org/installer/2/%s/content/index.html">%s</a>');
+ ?></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div style="margin-left: 2em;">
+ <hr>
+ <p><a href="//www.mageia.org/<?php echo $locale; ?>/map/"><?php _e('Mageia sitemap')?></a>
+ | <a href="//www.mageia.org/<?php echo $locale; ?>/support/"><?php _e('Support')?></a></p>
+ </div>
+</body>
+</html>
diff --git a/en/doc/index.php b/en/doc/index.php
index ca6f09676..0e9dad056 100644
--- a/en/doc/index.php
+++ b/en/doc/index.php
@@ -56,7 +56,8 @@ function doc_list($languages, $link)
<div class="yui-g">
<div class="para donate" style="padding-top: 2em;">
<h2><?php _e('Find your documentation')?></h2>
- <p><?php _e('Select the manual, the release of Mageia and the language you want to see.')?></p>
+ <p><?php _e('Select the manual, the release of Mageia and the language you want to see.')?><br/>
+ <?php _e('(If no documentation is availlable in your language, try with the old versions <a href="archive.php">here</a>)')?></p>
<hr>
<h3>Mageia 3</h3>
<div style="float: left; margin: 2em;">
@@ -73,15 +74,6 @@ function doc_list($languages, $link)
doc_list($mga3_control_center, '<a href="//doc.mageia.org/mcc/3/%s/content/index.html">%s</a>');
?></p>
</div>
- <hr style="clear: both;">
- <h3>Mageia 2</h3>
- <div style="float: left; margin: 2em;">
- <h4><?php _e('Installer')?></h4>
- <p><?php
- $mga2_installer = array('de','el','en','eo','fr','nl','pt_br','uk');
- doc_list($mga2_installer, '<a href="//doc.mageia.org/installer/2/%s/content/index.html">%s</a>');
- ?></p>
- </div>
</div>
</div>
</div>