aboutsummaryrefslogtreecommitdiffstats
path: root/en/support/index.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 17:19:33 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 17:19:33 +0100
commit73bb9c0de331f7e8451b5e462383efa12e5cd6cf (patch)
tree4c62cb88a2c9420c512f905b6106de14b575fc37 /en/support/index.php
parent5c6789a878c6fd81c4251ac491ea8b754564e349 (diff)
downloadwww-73bb9c0de331f7e8451b5e462383efa12e5cd6cf.tar
www-73bb9c0de331f7e8451b5e462383efa12e5cd6cf.tar.gz
www-73bb9c0de331f7e8451b5e462383efa12e5cd6cf.tar.bz2
www-73bb9c0de331f7e8451b5e462383efa12e5cd6cf.tar.xz
www-73bb9c0de331f7e8451b5e462383efa12e5cd6cf.zip
adding RTL support for support page
Diffstat (limited to 'en/support/index.php')
-rw-r--r--en/support/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/en/support/index.php b/en/support/index.php
index 9ee009a50..5f5f30e44 100644
--- a/en/support/index.php
+++ b/en/support/index.php
@@ -3,9 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('support', '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('Support for Mageia distribution')?></title>
@@ -15,7 +16,7 @@ $dictionary = read_translation_file($locale, array('support', 'common_footer'));
<?php include '../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="support">
+<body class="support" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<header id="mgnavt">
<h1><?php _g('Support')?></h1>