aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads/prerelease
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 23:35:08 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 23:35:08 +0100
commit1cf6d701deabf09b44fc02d998701c60576549f1 (patch)
tree3544151870d0c167efa2e5e01a815939f94d90e6 /en/downloads/prerelease
parentd2ded82aa80cfb00b810062d0b9bce602f3d11d5 (diff)
downloadwww-1cf6d701deabf09b44fc02d998701c60576549f1.tar
www-1cf6d701deabf09b44fc02d998701c60576549f1.tar.gz
www-1cf6d701deabf09b44fc02d998701c60576549f1.tar.bz2
www-1cf6d701deabf09b44fc02d998701c60576549f1.tar.xz
www-1cf6d701deabf09b44fc02d998701c60576549f1.zip
adding RTL support for cauldron page
Diffstat (limited to 'en/downloads/prerelease')
-rw-r--r--en/downloads/prerelease/download_index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/en/downloads/prerelease/download_index.php b/en/downloads/prerelease/download_index.php
index 507bf43b7..703eaab04 100644
--- a/en/downloads/prerelease/download_index.php
+++ b/en/downloads/prerelease/download_index.php
@@ -13,6 +13,7 @@ define('ALIGNMENT', 'Center');
require '../../../langs.php';
$dictionary = read_translation_file($locale, array('cauldron', 'common_footer'));
+$rtl = is_locale_rtl($locale);
function get_mageia($name, $version, $release)
{
@@ -57,7 +58,7 @@ function get_image($ttl, $src, $sty){
?>
<!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 echo sprintf(_g('Download').' '. '%s %s %s', $name, $version, $release)?></title>
@@ -85,7 +86,7 @@ input[type="radio"], input[type="submit"], .popover-content {
}
</style>
</head>
-<body class="release downloads">
+<body class="release downloads" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php echo sprintf(_g('Download') . ' <strong>%s %s %s</strong>',$name, $version, $release)?></h1>