aboutsummaryrefslogtreecommitdiffstats
path: root/en/4/index.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 15:01:26 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 15:01:26 +0100
commit905f284262663df6a0974d06f8a1a33dda17cea5 (patch)
treebe681aa86c10f8fe5f374c5153f0d9d61618037f /en/4/index.php
parent3460f073747b4955e1a65deb1f716c691e637c43 (diff)
downloadwww-905f284262663df6a0974d06f8a1a33dda17cea5.tar
www-905f284262663df6a0974d06f8a1a33dda17cea5.tar.gz
www-905f284262663df6a0974d06f8a1a33dda17cea5.tar.bz2
www-905f284262663df6a0974d06f8a1a33dda17cea5.tar.xz
www-905f284262663df6a0974d06f8a1a33dda17cea5.zip
adding RTL support for mga4 pages
Diffstat (limited to 'en/4/index.php')
-rw-r--r--en/4/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/en/4/index.php b/en/4/index.php
index ac3d499d3..09de355a1 100644
--- a/en/4/index.php
+++ b/en/4/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('4', '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 4')?></title>