aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-29 15:09:19 +0100
committerfilip <filip.komar@gmail.com>2020-10-29 15:09:19 +0100
commit37931c8853f1e82a5f020056492e793eea81b195 (patch)
tree1513b3d9ab44b7d228d773e388318eec88cc4742
parent768929aad2b8535c0562e7fc93a7b5c810ee2f6e (diff)
downloadwww-37931c8853f1e82a5f020056492e793eea81b195.tar
www-37931c8853f1e82a5f020056492e793eea81b195.tar.gz
www-37931c8853f1e82a5f020056492e793eea81b195.tar.bz2
www-37931c8853f1e82a5f020056492e793eea81b195.tar.xz
www-37931c8853f1e82a5f020056492e793eea81b195.zip
adding RTL support for about/constitution page
-rw-r--r--en/about/constitution/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/en/about/constitution/index.php b/en/about/constitution/index.php
index df4533e21..42aaae82a 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;">