aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 23:33:12 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 23:33:12 +0100
commit6ac6de9518483855e112c4b37105fed495660b8e (patch)
treecf58aa6ea77caabca3efded3c91ac1ef5be9a9c9
parented3a795d34f7cd816fa8d633aa6be0e588bbdd31 (diff)
downloadwww-6ac6de9518483855e112c4b37105fed495660b8e.tar
www-6ac6de9518483855e112c4b37105fed495660b8e.tar.gz
www-6ac6de9518483855e112c4b37105fed495660b8e.tar.bz2
www-6ac6de9518483855e112c4b37105fed495660b8e.tar.xz
www-6ac6de9518483855e112c4b37105fed495660b8e.zip
adding RTL support for about/values page
-rw-r--r--en/about/values/index.php6
1 files changed, 4 insertions, 2 deletions
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;">