aboutsummaryrefslogtreecommitdiffstats
path: root/en/about
diff options
context:
space:
mode:
Diffstat (limited to 'en/about')
-rw-r--r--en/about/code-of-conduct/index.php6
-rw-r--r--en/about/constitution/index.php13
-rw-r--r--en/about/index.php9
-rw-r--r--en/about/license/index.php15
-rw-r--r--en/about/media/index.php6
-rw-r--r--en/about/policies/privacy/index.php5
-rw-r--r--en/about/reports/index.php10
-rw-r--r--en/about/values/index.php6
8 files changed, 42 insertions, 28 deletions
diff --git a/en/about/code-of-conduct/index.php b/en/about/code-of-conduct/index.php
index 2acad4887..21fd0695b 100644
--- a/en/about/code-of-conduct/index.php
+++ b/en/about/code-of-conduct/index.php
@@ -3,8 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/code-of-conduct', 'common_footer'));
+$rtl = is_locale_rtl($locale);
+
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
@@ -16,7 +18,7 @@ $dictionary = read_translation_file($locale, array('about/code-of-conduct', 'com
<?php include '../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Code of Conduct')?></h1>
<div id="doc" class="yui-t7">
diff --git a/en/about/constitution/index.php b/en/about/constitution/index.php
index df4533e21..e736f097f 100644
--- a/en/about/constitution/index.php
+++ b/en/about/constitution/index.php
@@ -2,13 +2,13 @@
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
-
+$rtl = is_locale_rtl($locale);
$dictionary = read_translation_file($locale, array('about/constitution', 'common_footer'));
// Note to translators: _r('Note to translators! PLEASE READ THIS LINE! YOU DON\'T NEED TO TRANSLATE IT! Please translate constitution in file "mageia.org_statutes_fr.md" or "mageia.org_statutes_en.md" as a fallback first. Check wiki for details.')
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia.Org constitution'); ?></title>
@@ -18,7 +18,7 @@ $dictionary = read_translation_file($locale, array('about/constitution', 'common
<?php include '../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about constitution">
+<body class="about constitution" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Mageia.Org constitution')?></h1>
<div id="doc4" class="yui-t7" style="margin-bottom: 0px;">
@@ -33,11 +33,12 @@ $dictionary = read_translation_file($locale, array('about/constitution', 'common
</div>
<div class="para">
<?php
- include G_APP_ROOT . '/_nav/lib/php-markdown/markdown.php';
+ include G_APP_ROOT . '/_nav/lib/Parsedown/Parsedown.php';
+ $Parsedown = new Parsedown();
if(in_array($locale, array('en', 'fr', 'sl', 'tr', 'ro', 'de', 'pt-br', 'el', 'id', 'uk', 'ru', 'es', 'eu'))) {
- echo Markdown(file_get_contents('mageia.org_statutes_' . $locale . '.md'));
+ echo $Parsedown->text(file_get_contents('mageia.org_statutes_' . $locale . '.md'));
} else {
- echo Markdown(file_get_contents('mageia.org_statutes_en.md'));
+ echo $Parsedown->text(file_get_contents('mageia.org_statutes_en.md'));
}
?>
</div>
diff --git a/en/about/index.php b/en/about/index.php
index bf0da10c5..a03250419 100644
--- a/en/about/index.php
+++ b/en/about/index.php
@@ -2,11 +2,12 @@
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
+$rtl = is_locale_rtl($locale);
$dictionary = read_translation_file($locale, array('about', 'common_footer'));
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('About Mageia'); ?></title>
@@ -24,7 +25,7 @@ $dictionary = read_translation_file($locale, array('about', 'common_footer'));
</style>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="about">
<?php echo $hsnav; ?>
<h1 id="mgnavtitle"><?php _g('About Mageia')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">
@@ -46,7 +47,7 @@ $dictionary = read_translation_file($locale, array('about', 'common_footer'));
_r('gathered <a href="../community/">hundreds of careful individuals and several companies worldwide</a>,', ' '),
_r('who coproduce the infrastructure, the distribution itself, <a href="https://wiki.mageia.org/">documentation</a>, <a href="../downloads/">delivery</a> and <a href="../support/">support</a>, using Free Software tools;');
echo '</li>';
- _g('released seven major stable releases <a href="../1/">in June 2011</a>, <a href="../2/">in May 2012</a>, <a href="../3/">in May 2013</a>, <a href="../4/">in February 2014</a>, <a href="../5/">in June 2015</a>, <a href="../6/">in July 2017</a> and <a href="../7/">in June 2019</a>',null,'li');
+ _g('released eight major stable releases <a href="../1/">in June 2011</a>, <a href="../2/">in May 2012</a>, <a href="../3/">in May 2013</a>, <a href="../4/">in February 2014</a>, <a href="../5/">in June 2015</a>, <a href="../6/">in July 2017</a>, <a href="../7/">in June 2019</a> and <a href="../8/">in February 2021</a>',null,'li');
?></ul>
<!--
<ul>
@@ -93,7 +94,7 @@ $dictionary = read_translation_file($locale, array('about', 'common_footer'));
<hr>
<h3 ><?php _g('Mageia history archive')?></h3>
- <?php _g('For historical records you can find a <a href=%s>list of Mageia founders</a> and a<a href=%s>Mageia project announcement</a> from back in september 2010.',
+ <?php _g('For historical records you can find a <a href=%s>list of Mageia founders</a> and a <a href=%s>Mageia project announcement</a> from back in september 2010.',
array('"../about/founders.html"', '"../about/2010-sept-announcement.html"')); ?>
<hr>
diff --git a/en/about/license/index.php b/en/about/license/index.php
index a42946ee4..cd8147cc7 100644
--- a/en/about/license/index.php
+++ b/en/about/license/index.php
@@ -2,6 +2,7 @@
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
+$rtl = is_locale_rtl($locale);
$dictionary = read_translation_file($locale, array('about/license', 'common_footer'));
@@ -11,7 +12,7 @@ $prepared_license_strings = read_license_from_vcs($locale);
// Note to translators: _r('Note to translators! PLEASE READ THIS LINE! YOU DON\'T NEED TO TRANSLATE IT! Please translate license in your po file "http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/" first. Check wiki for details.')
?>
<!DOCTYPE html>
-<html lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<?php include '../../../analytics.php'; ?>
@@ -24,29 +25,29 @@ $prepared_license_strings = read_license_from_vcs($locale);
</head>
<body class="about">
<?php echo $hsnav; ?>
- <h1 id="mgnavtitle"><?php _g('Mageia license')?></h1>
+ <h1 id="mgnavtitle" <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?>><?php _g('Mageia license')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">
<div id="bd" role="main" class="para">
<section>
<?php
echo '<div id="preamble">';
// _('An introduction text ... (summarizing, explaining the core principles, and why this license was chosen).');
- echo '<p>' . sprintf(_r('You can get more information about our licensing policy %shere</a>.'),
+ echo '<p'. ($rtl ? ' align="right"' : '') . '>' . sprintf(_r('You can get more information about our licensing policy %shere</a>.'),
'<a href="https://wiki.mageia.org/en/Licensing_policy">') . '</p>';
$unofficial_translation = array_shift($prepared_license_strings);
$patents_warning = array_pop($prepared_license_strings);
if($locale != 'en') {
- echo sprintf('<%s>' . $unofficial_translation[0] . '</%s>' . PHP_EOL, $unofficial_translation[1], $unofficial_translation[1]);
+ echo sprintf('<%s'. ($rtl ? ' align="right"' : '') . '>' . $unofficial_translation[0] . '</%s>' . PHP_EOL, $unofficial_translation[1], $unofficial_translation[1]);
}
echo '</div><br>';
foreach($prepared_license_strings as $string) {
- echo sprintf('<%s>' . $string[0] . '</%s>' . PHP_EOL, $string[1], $string[1]);
+ echo sprintf('<%s'. ($rtl ? ' align="right"' : '') . '>' . $string[0] . '</%s>' . PHP_EOL, $string[1], $string[1]);
}
- _g('Warning about patents', null, 'h2');
+ _g('Warning about patents', null, 'h2'. ($rtl ? ' align="right"' : ''));
$patents = str_replace('http://www.mp3licensing.com', '<a href="http://www.mp3licensing.com">www.mp3licensing.com</a>', $patents_warning[0]);
- echo '<p>' . $patents . '</p>' . PHP_EOL;
+ echo '<p'. ($rtl ? ' align="right"' : '') . '>' . $patents . '</p>' . PHP_EOL;
?>
</section>
</div>
diff --git a/en/about/media/index.php b/en/about/media/index.php
index 8c0385310..f5e76fc87 100644
--- a/en/about/media/index.php
+++ b/en/about/media/index.php
@@ -5,8 +5,10 @@ require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/media', 'common_footer'));
$underscore_locale = locale_hyphen_underscore($locale, true); // create pt_BR from pt-br and alike
+$rtl = is_locale_rtl($locale);
+
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia media files')?></title>
@@ -16,7 +18,7 @@ $underscore_locale = locale_hyphen_underscore($locale, true); // create pt_BR fr
<?php echo common_header(); ?>
<?php include '../../../analytics.php'; ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavtitle"><?php _g('Media files')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">
diff --git a/en/about/policies/privacy/index.php b/en/about/policies/privacy/index.php
index 21e66f8cc..99159edc9 100644
--- a/en/about/policies/privacy/index.php
+++ b/en/about/policies/privacy/index.php
@@ -4,9 +4,10 @@ define('ALIGNMENT', 'Center');
require '../../../../langs.php';
$dictionary = read_translation_file($locale, array('about/policies/privacy', 'common_footer'));
+$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('Privacy policy')?></title>
@@ -14,7 +15,7 @@ $dictionary = read_translation_file($locale, array('about/policies/privacy', 'co
<?php include '../../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Policies')?></h1>
<div id="doc" class="yui-t7">
diff --git a/en/about/reports/index.php b/en/about/reports/index.php
index b3384bcdb..ee8e98384 100644
--- a/en/about/reports/index.php
+++ b/en/about/reports/index.php
@@ -3,8 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/reports', 'common_footer'));
+$rtl = is_locale_rtl($locale);
+
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia activity &amp; financial reports')?></title>
@@ -14,7 +16,7 @@ $dictionary = read_translation_file($locale, array('about/reports', 'common_foot
<?php include '../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Activity Reports')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">
@@ -24,7 +26,9 @@ $dictionary = read_translation_file($locale, array('about/reports', 'common_foot
<p><?php _g('Here you will find our various activity and financial reports for every year.')?></p>
<ul>
- <li>2020: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2020.html">', ' ' . _r('(in progress)')));?></li>
+ <li>2022: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2022.html">', ' ' . _r('(in progress)')));?></li>
+ <li>2021: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2021.html">', ' ' . _r('(in progress)')));?></li>
+ <li>2020: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2020.html">', ''));?></li>
<li>2019: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2019.html">', ''));?></li>
<li>2018: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2018.html">', ''));?></li>
<li>2017: <?php _g('%sFinancial report</a>%s.', array('<a href="https://treasurer.mageia.org/y_2017.html">', ''));?></li>
diff --git a/en/about/values/index.php b/en/about/values/index.php
index 5d177d370..9491ea540 100644
--- a/en/about/values/index.php
+++ b/en/about/values/index.php
@@ -3,8 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/values', 'common_footer'));
+$rtl = is_locale_rtl($locale);
+
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Mageia Values')?></title>
@@ -14,7 +16,7 @@ $dictionary = read_translation_file($locale, array('about/values', 'common_foote
<?php include '../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Values')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">