diff options
Diffstat (limited to 'en/doc/index.php')
-rw-r--r-- | en/doc/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/en/doc/index.php b/en/doc/index.php index 38e381c7d..b15692056 100644 --- a/en/doc/index.php +++ b/en/doc/index.php @@ -5,10 +5,10 @@ require '../../langs.php'; $dictionary = read_translation_file($locale, array('documentation', 'common_footer')); require 'doc.php'; - +$rtl = is_locale_rtl($locale); ?><!DOCTYPE html> -<html lang="<?php echo $locale; ?>" dir="ltr"> +<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>"> <head> <meta charset="utf-8"> <title><?php _g('Mageia Documentation')?></title> @@ -16,8 +16,9 @@ require 'doc.php'; <meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>"> <?php echo common_header(); ?> <?php include '../../analytics.php'; ?> + <?php echo $rtl ? '<style> caption { text-align: right; } </style>' : ''?> </head> -<body class="doc"> +<body class="doc" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <h1 id="mgnavt"><?php _g('Mageia Documentation')?></h1> <div id="doc" class="yui-t7"> |