aboutsummaryrefslogtreecommitdiffstats
path: root/en/5/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/5/index.php')
-rw-r--r--en/5/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/en/5/index.php b/en/5/index.php
index c93db2491..d8af2bb6e 100644
--- a/en/5/index.php
+++ b/en/5/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('5', 'common_footer'));
?>
<!DOCTYPE html>
-<html 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 5.1')?></title>
@@ -15,7 +16,7 @@ $dictionary = read_translation_file($locale, array('5', 'common_footer'));
<?php include '../../analytics.php'; ?>
<style> .fixed-img{ max-height:342px } </style>
</head>
-<body class="downloads">
+<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="downloads">
<?php echo $hsnav; ?>
<h1 id="mgnavt"><a href="../5/">Mageia 5.1</a></h1>