aboutsummaryrefslogtreecommitdiffstats
path: root/en/doc
diff options
context:
space:
mode:
Diffstat (limited to 'en/doc')
-rw-r--r--en/doc/archive.php24
-rw-r--r--en/doc/doc.php17
-rw-r--r--en/doc/index.php37
3 files changed, 62 insertions, 16 deletions
diff --git a/en/doc/archive.php b/en/doc/archive.php
index c80abf8d1..96cf76a37 100644
--- a/en/doc/archive.php
+++ b/en/doc/archive.php
@@ -4,9 +4,10 @@ define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('documentation', 'common_footer'));
require 'doc.php';
+$rtl = is_locale_rtl($locale);
?><!DOCTYPE html>
-<html lang="<?php echo $locale; ?>" dir="ltr">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia Documentation\'s Archive')?></title>
@@ -14,8 +15,9 @@ require 'doc.php';
<meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>">
<?php echo common_header(); ?>
<?php include '../../analytics.php'; ?>
-</head
-<body class="doc">
+ <?php echo $rtl ? '<style> caption { text-align: right; } </style>' : ''?>
+</head>
+<body class="doc" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Mageia Documentation\'s Archive')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">
@@ -27,6 +29,22 @@ require 'doc.php';
<?php _g('If you are looking for the current versions, see <a href="index.php">here</a>.')?></p>
<?php _g('Documentation built using the <a href="%s">Calenco tool from NeoDoc</a>.', 'http://www.neodoc.biz/', 'p')?>
<hr>
+ <h3>Mageia 7</h3>
+ <div class="row">
+ <div class="col">
+ <?php doc_list(_r('Control Center'), 'control_center', 7); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Installer'), 'installer', 7); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Installation from LIVE medium'), 'draklive', 7); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Network installation'), 'netinstall', 7); ?>
+ </div>
+ </div>
+ <hr>
<h3>Mageia 6</h3>
<div class="row">
<div class="col">
diff --git a/en/doc/doc.php b/en/doc/doc.php
index 49f46f63d..1e91f6ce5 100644
--- a/en/doc/doc.php
+++ b/en/doc/doc.php
@@ -1,5 +1,16 @@
<?php
+//blind copy from 8, dont know if it's correct
+$documentation['installer' ][9] = array('ca','cs','de','el','en','eo','es','et','eu','fr','hr','hu','ja','nb','nl','pl','pt_br','ro','ru','sk','sl','sq','sr','sv','tr','uk','zh_cn');
+$documentation['control_center'][9] = array('ca','cs','da','de','el','en','es','et','eu','fr','id','it','ja','nb','nl','pl','pt_br','ro','ru','sl','sq','sr','sv','tr','uk','zh_cn');
+$documentation['draklive' ][9] = array('cs','de','el','en','es','et','eu','fr','hr','ja','nl','pt_br','ro','ru','sk','sl','sq','sr','sv','uk');
+$documentation['netinstall' ][9] = array('ca','de','el','en','es','et','eu','fr','hu','ja','nb','nl','pt_br','ru','sl','sq','sr','sv','tr','uk','zh_cn');
+
+$documentation['installer' ][8] = array('ca','cs','de','el','en','eo','es','et','eu','fr','hr','hu','ja','nb','nl','pl','pt_br','ro','ru','sk','sl','sq','sr','sv','tr','uk','zh_cn');
+$documentation['control_center'][8] = array('ca','cs','da','de','el','en','es','et','eu','fr','id','it','ja','nb','nl','pl','pt_br','ro','ru','sl','sq','sr','sv','tr','uk','zh_cn');
+$documentation['draklive' ][8] = array('cs','de','el','en','es','et','eu','fr','hr','ja','nl','pt_br','ro','ru','sk','sl','sq','sr','sv','uk');
+$documentation['netinstall' ][8] = array('ca','de','el','en','es','et','eu','fr','hu','ja','nb','nl','pt_br','ru','sl','sq','sr','sv','tr','uk','zh_cn');
+
$documentation['installer' ][7] = array('ca','cs','de','el','en','eo','es','et','eu','fr','hr','hu','ja','nb','nl','pl','pt_br','ro','ru','sk','sl','sq','sv','tr','uk','zh_cn');
$documentation['control_center'][7] = array('ca','cs','da','de','el','en','es','et','eu','fr','id','it','ja','nb','nl','pl','pt_br','ro','ru','sl','sq','sv','tr','uk','zh_cn');
$documentation['draklive' ][7] = array('cs','de','el','en','es','et','eu','fr','hr','ja','nl','pt_br','ro','sk','sl','sq','sv','uk','zh_cn');
@@ -135,7 +146,7 @@ function doc_list($documentation_name, $type, $version)
if ($your_language_present) {
$text_your_language = '<span style="font-weight:bold">' . _r('Documentation in your language:') . '</span><br/>';
if ($other_languages_present) {
- $text_others = '<a class="btn btn-sm btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' &#x2198; </a>';
+ $text_others = '<a class="text-muted font-weight-light" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' &#x2198; </a>';
}
$table .= sprintf("\t<caption class=\"caption-top\">%s</caption>" . PHP_EOL .
"\t<thead><tr><th class=\"border-0\">%s</th></tr></thead>" . PHP_EOL .
@@ -152,9 +163,9 @@ function doc_list($documentation_name, $type, $version)
$language_present_before = '';
}
}
- $text_your_language = _r('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>';
+ $text_your_language = _r('Not <a href="../community/">yet</a> available in your language.') . ' ' . _r('Click below for alternative available languages.') . '<br/>';
$table .= sprintf("\t<caption class=\"caption-top\">%s<br/>" . PHP_EOL .
- "\t%s<a class=\"btn btn-sm btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> &#x2198; </a></caption>" . PHP_EOL . '%s' .
+ "\t%s<a class=\"text-muted font-weight-light\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> &#x2198; </a></caption>" . PHP_EOL . '%s' .
"\t<tbody class=\"collapse\" id=table-%s-%s>" . PHP_EOL ,
'<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name, $version);
}
diff --git a/en/doc/index.php b/en/doc/index.php
index 38e381c7d..163fe8ced 100644
--- a/en/doc/index.php
+++ b/en/doc/index.php
@@ -5,10 +5,10 @@ require '../../langs.php';
$dictionary = read_translation_file($locale, array('documentation', 'common_footer'));
require 'doc.php';
-
+$rtl = is_locale_rtl($locale);
?><!DOCTYPE html>
-<html lang="<?php echo $locale; ?>" dir="ltr">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia Documentation')?></title>
@@ -16,8 +16,9 @@ require 'doc.php';
<meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>">
<?php echo common_header(); ?>
<?php include '../../analytics.php'; ?>
+ <?php echo $rtl ? '<style> caption { text-align: right; } </style>' : ''?>
</head>
-<body class="doc">
+<body class="doc" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Mageia Documentation')?></h1>
<div id="doc" class="yui-t7">
@@ -27,23 +28,39 @@ require 'doc.php';
<h2><?php _g('Find your documentation')?></h2>
<p><?php _g('Select the manual, the release of Mageia and the language you want to see.')?><br/>
<?php _g('Documentation of old versions are available in the <a href="archive.php">archive page</a>.')?></p>
- <p><?php _g('Those manuals are the result of common work of <a href="https://wiki.mageia.org/en/Documentation_team">documentation</a> and <a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)">translation</a> teams.')?><br/>
- <?php _g('Feel free to help us improving it!')?></p>
+ <p><?php _g('These manuals are the result of common work by the <a href="https://wiki.mageia.org/en/Documentation_team">documentation</a> and <a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)">translation</a> teams.')?><br/>
+ <?php _g('Feel free to help <a href="../community/">us improve</a> them, or to assist in translating them into your language.')?></p>
<?php _g('Documentation built using the <a href="%s">Calenco tool from NeoDoc</a>.', 'http://www.neodoc.biz/', 'p')?>
<hr>
- <h3>Mageia 7</h3>
+ <h3>Mageia 9</h3>
+ <div class="row">
+ <div class="col">
+ <?php doc_list(_r('Control Center'), 'control_center', 9); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Installer'), 'installer', 9); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Installation from LIVE medium'), 'draklive', 9); ?>
+ </div>
+ <div class="col">
+ <?php doc_list(_r('Network installation'), 'netinstall', 9); ?>
+ </div>
+ </div>
+ <hr>
+ <h3>Mageia 8</h3>
<div class="row">
<div class="col">
- <?php doc_list(_r('Installer'), 'installer', 7); ?>
+ <?php doc_list(_r('Control Center'), 'control_center', 8); ?>
</div>
<div class="col">
- <?php doc_list(_r('Control Center'), 'control_center', 7); ?>
+ <?php doc_list(_r('Installer'), 'installer', 8); ?>
</div>
<div class="col">
- <?php doc_list(_r('Installation from LIVE medium'), 'draklive', 7); ?>
+ <?php doc_list(_r('Installation from LIVE medium'), 'draklive', 8); ?>
</div>
<div class="col">
- <?php doc_list(_r('Network installation'), 'netinstall', 7); ?>
+ <?php doc_list(_r('Network installation'), 'netinstall', 8); ?>
</div>
</div>
<hr>