aboutsummaryrefslogtreecommitdiffstats
path: root/en/doc
diff options
context:
space:
mode:
authorMarek Laane <bald@smail.ee>2014-10-12 10:54:11 +0300
committerMarek Laane <bald@smail.ee>2014-10-12 10:54:11 +0300
commita0b2d09125d7911656fe4cb286f20643c4432281 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /en/doc
parente32d8242187534c387106ff344201c42ff6afb44 (diff)
downloadwww-a0b2d09125d7911656fe4cb286f20643c4432281.tar
www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.gz
www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.bz2
www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.xz
www-a0b2d09125d7911656fe4cb286f20643c4432281.zip
Updated Estonian translation
Diffstat (limited to 'en/doc')
-rw-r--r--en/doc/archive.php45
-rw-r--r--en/doc/doc.php110
-rw-r--r--en/doc/index.php70
3 files changed, 0 insertions, 225 deletions
diff --git a/en/doc/archive.php b/en/doc/archive.php
deleted file mode 100644
index 5ea7bfc9a..000000000
--- a/en/doc/archive.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-define('HLANG', true);
-require '../../langs.php';
-$dictionary = read_translation_file($locale, 'documentation');
-
-require 'doc.php';
-
-?><!DOCTYPE html>
-<html lang="<?php echo $locale; ?>" dir="ltr">
-<head>
- <meta charset="utf-8">
- <title><?php _g('Mageia Documentation\'s Archive')?></title>
- <meta name="description" content="<?php _g('Documentation for previous releases of Mageia distribution and its tools.')?>">
- <meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>">
- <link rel="stylesheet" href="/g/style/all.css" type="text/css">
- <?php include '../../analytics.php'; ?>
-</head>
-<body class="doc">
- <?php echo $hsnav; ?>
- <h1 id="mgnavt"><?php _g('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 _g('Some More documentation')?></h2>
- <p><?php _g('Here you will find the documentation for the versions of Mageia that have reached their End-Of-Life.')?><br/>
- <?php _g('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;">
- <p><?php
- doc_list(_r('Installer'), 'installer', 2, '<a href="//doc.mageia.org/installer/2/%s/content/index.html">HTML</a>');
- ?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="margin-left: 2em;">
- <hr>
- <p><a href="//www.mageia.org/<?php echo $locale; ?>/map/"><?php _g('Mageia sitemap')?></a>
- | <a href="//www.mageia.org/<?php echo $locale; ?>/support/"><?php _g('Support')?></a></p>
- </div>
-</body>
-</html>
diff --git a/en/doc/doc.php b/en/doc/doc.php
deleted file mode 100644
index b2b358a5b..000000000
--- a/en/doc/doc.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-$documentation['installer' ][4] = array('ca','cs','de','el','en','eo','es','et','fr','id','nl','pl','pt_br','ro','ru','sv','tr','uk');
-$documentation['control_center'][4] = array('en','et','fr','ru','tr','uk');
-
-$documentation['installer' ][3] = array('de','el','en','es','et','fr','nl','pt_br','ru','uk');
-$documentation['control_center'][3] = array('en','et','fr');
-
-$documentation['installer' ][2] = array('de','el','en','eo','fr','nl','pt_br','uk');
-
-function doc_present_in_locale($documentation_name, $version)
-{
- global $locale;
- global $documentation;
- $link_locale = locale_hyphen_underscore($locale); // create pt_br.po from pt-br and alike
- if(in_array($link_locale, $documentation[$documentation_name][$version])) {
- return $link_locale;
- } else {
- return 'en';
- }
-}
-
-function doc_list($documentation_name, $type, $version, $link, $epub_link = null, $pdf_link = null)
-{
- global $locale;
- global $langs;
- global $documentation;
- $link_locale = locale_hyphen_underscore($locale); // create pt_br.po from pt-br and alike
- $your_language = '';
- $others = '';
- $text_others = '';
- $your_language_present = FALSE;
- $other_languages_present = FALSE;
- $note_printed = FALSE;
- // temporary hidding of the EPUB and PDF links
- $hide_epub_pdf = TRUE;
- $table = PHP_EOL . '<table class="dlt2 dlinfo" style="font-size: 10pt;">' . PHP_EOL;
-// $table .= '<thead><tr><th></th></tr></thead>';
- $table .= "\t<tbody>" . PHP_EOL;
- foreach ($documentation[$type][$version] 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 if ($lng == 'sv') { // hopefully temporary exception for sv which does not exist yet in www.mageia.org
- $lng_name = 'Svenska';
- } else {
- $lng_name = $langs[$lng];
- }
-
- if ($link_locale == $lng) {
- $your_language_present = TRUE;
- if (is_null($epub_link) or is_null($pdf_link) or $hide_epub_pdf) {
- $your_language = sprintf(_r('%s available in %s') . '<br/>%s',
- '<span style="font-weight:bold">' . $documentation_name . '</span>', $lng_name, sprintf($link, $lng));
- } else {
- $your_language = sprintf(_r('%s available in %s') . '<br/>%s <span style="font-size: 07pt;">('.
- _r('also as') . '%s , %s)</span>',
- '<span style="font-weight:bold">' . $documentation_name . '</span>',
- $lng_name, sprintf($link, $lng), sprintf($epub_link, $lng), sprintf($pdf_link, $lng));
- }
- } else {
- $other_languages_present = TRUE;
- if (is_null($epub_link) or is_null($pdf_link) or $hide_epub_pdf) {
- $others[] = sprintf('%s<br/>%s', $lng_name, sprintf($link, $lng));
- } else {
- if(!$note_printed) {
- $note = _r('also as');
- $note_printed = TRUE;
- } else {
- $note = '';
- }
- $others[] = sprintf('%s<br/>%s <span style="font-size: 07pt;">(%s%s , %s)</span>',
- $lng_name, sprintf($link, $lng), $note, sprintf($epub_link, $lng), sprintf($pdf_link, $lng), sprintf($link, $lng));
- }
- }
- }
- 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 = '<span style="font-weight:bold">' . _r('Other languages:') . '</span>';
- }
- $table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL .
- "\t\t<tr><td>&nbsp;</td></tr>" . PHP_EOL .
- "\t\t<tr><td>%s</td></tr>" . PHP_EOL,
- $your_language, $text_others);
- } else {
- foreach($documentation[$type] as $single_version => $all_languages) {
- if($single_version < $version && in_array($link_locale, $all_languages)) {
- $language_present_before = "\t\t<tr><td>" .
- sprintf(_r('Translation was present in %s before.<br/>Maybe you can check documentation for %s in Mageia %s.'),
- $langs[$locale], $documentation_name, $single_version) . "</td></tr>" . PHP_EOL;
- break;
- } else {
- $language_present_before = '';
- }
- }
- $text_your_language = _r('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>';
- $table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL .
- "\t\t<tr><td>%s</td></tr>" . PHP_EOL . '%s' .
- "\t\t<tr><td>&nbsp;</td></tr>" . PHP_EOL,
- '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before);
- }
- foreach ($others as $other_languages) {
- $table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL, $other_languages);
- }
- $table .= "\t</tbody>" . PHP_EOL;
- $table .= "</table>" . PHP_EOL;
-
- echo $table;
-}
diff --git a/en/doc/index.php b/en/doc/index.php
deleted file mode 100644
index c8bc5cc98..000000000
--- a/en/doc/index.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-define('HLANG', true);
-require '../../langs.php';
-$dictionary = read_translation_file($locale, 'documentation');
-
-
-require 'doc.php';
-
-
-?><!DOCTYPE html>
-<html lang="<?php echo $locale; ?>" dir="ltr">
-<head>
- <meta charset="utf-8">
- <title><?php _g('Mageia Documentation')?></title>
- <meta name="description" content="<?php _g('Documentation for Mageia distribution and its tools.')?>">
- <meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>">
- <link rel="stylesheet" href="/g/style/all.css" type="text/css">
- <?php include '../../analytics.php'; ?>
-</head>
-<body class="doc">
- <?php echo $hsnav; ?>
- <h1 id="mgnavt"><?php _g('Mageia Documentation')?></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 _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>
- <hr>
- <h3>Mageia 4</h3>
- <div style="float: left; margin: 1em; width: 24em;">
- <p style="margin-left: 2em;"><?php
- doc_list(_r('Installer'), 'installer', 4, '<a href="//doc.mageia.org/installer/4/%s/content/index.html">HTML</a>',
- '<a href="//doc.mageia.org/installer/4/%s/content/index.html">EPUB</a>',
- '<a href="//doc.mageia.org/installer/4/%s/content/index.html">PDF</a>');
- ?></p>
- </div>
- <div style="float: right; margin: 1em; width: 24em;">
- <p style="margin-left: 2em;"><?php
- doc_list(_r('Control Center'), 'control_center', 4, '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">HTML</a>',
- '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">EPUB</a>',
- '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">PDF</a>');
- ?></p>
- </div>
- <hr style="clear: both;">
- <h3>Mageia 3</h3>
- <div style="float: left; margin: 1em; width: 24em;">
- <p style="margin-left: 2em;"><?php
- doc_list(_r('Installer'), 'installer', 3, '<a href="//doc.mageia.org/installer/3/%s/content/index.html">HTML</a>');
- ?></p>
- </div>
- <div style="float: right; margin: 1em; width: 24em;">
- <p style="margin-left: 2em;"><?php
- doc_list(_r('Control Center'), 'control_center', 3, '<a href="//doc.mageia.org/mcc/3/%s/content/index.html">HTML</a>');
- ?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="margin-left: 2em;">
- <hr>
- <p><a href="//www.mageia.org/<?php echo $locale; ?>/map/"><?php _g('Mageia sitemap')?></a>
- | <a href="//www.mageia.org/<?php echo $locale; ?>/support/"><?php _g('Support')?></a></p>
- </div>
-</body>
-</html>