aboutsummaryrefslogtreecommitdiffstats
path: root/en/5
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 16:53:21 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 16:53:21 +0100
commit8c5770b5078f573edddb642bd4799d46e30a4927 (patch)
tree6b706e37be439d9b772732cd3f88b4aac69e676e /en/5
parenta47a58f1aac6b8cd9be40b8cb4875a8bf182a9d7 (diff)
downloadwww-8c5770b5078f573edddb642bd4799d46e30a4927.tar
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.gz
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.bz2
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.xz
www-8c5770b5078f573edddb642bd4799d46e30a4927.zip
adding RTL support for mga5 page
Diffstat (limited to 'en/5')
-rw-r--r--en/5/download_index.php83
-rw-r--r--en/5/index.php5
2 files changed, 45 insertions, 43 deletions
diff --git a/en/5/download_index.php b/en/5/download_index.php
index 05e7c03b8..8ad2683f3 100644
--- a/en/5/download_index.php
+++ b/en/5/download_index.php
@@ -13,6 +13,7 @@ define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('5', '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>
@@ -103,42 +104,42 @@ input[type="radio"], input[type="submit"] {
}
</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>
<?php include '../5/nav.php'; ?>
- <div id="doc4" class="yui-t7" style="margin-bottom: 0px;">
+ <div id="doc4" class="yui-t7" style="margin-bottom: 0px;"<?php echo $rtl ? ' text-align: right;"' : ''?>">
<div id="bd" role="main">
<div class="yui-ge bb1 row">
<div class="yui-u first col-md-8">
<noscript>
-<div class="para warn"><?php _g('It looks like you have JavaScript disable. Please <a href="%s">enable</a> it to have better render. At the <a href="%s">end</a> of this page there will be download link for you. But what is written between is important.',array('http://www.enable-javascript.com/','#Fclassical'),'p'); ?></div>
+<div class="para warn"><?php _g('It looks like you have JavaScript disable. Please <a href="%s">enable</a> it to have better render. At the <a href="%s">end</a> of this page there will be download link for you. But what is written between is important.',array('http://www.enable-javascript.com/','#Fclassical'),'p' . ($rtl ? ' style="text-align: right;"' : '')); ?></div>
<style>.radiobutton .ui-button{display: none;}</style>
</noscript>
<div class="para">
- <?php _g('But please remember that it already <a href="%s">reached EOL</a>.', array(_r('https://blog.mageia.org/en/2018/09/15/summers-end-roundup-2018/')), 'h2 class="warn"'); ?>
- <p>
+ <?php _g('But please remember that it already <a href="%s">reached EOL</a>.', array(_r('https://blog.mageia.org/en/2018/09/15/summers-end-roundup-2018/')), 'h2 class="warn"' . ($rtl ? ' style="text-align: right;"' : '')); ?>
+ <p<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php _g('Mageia is provided as ISO image files that have to be written to blank <a href="%s">CD or DVD discs</a>.', array(_r('https://wiki.mageia.org/en/Writing_CD_and_DVD_images')), ' '); ?>
<br>
<?php _g('The important addition is that Mageia 5.1 can be installed on <a href="%s"><abbr title="NVM Express">NVMe</abbr> hardware</a>.', array(_r('https://en.wikipedia.org/wiki/NVM_Express'))); ?>
<br><br>
<?php _g('All ISOs can also be launched from a <a %s>USB drive</a>.', array('href="' . _r('https://wiki.mageia.org/en/Installation_Media#Dump_Mageia_ISO_on_a_USB_flash_drive') . '"'));
echo '</p>';
- _g('To <a %s>dump</a> a Mageia installation ISO on a USB stick, you may try one of several tools:', array('class="iso2usb"'),'p');
+ _g('To <a %s>dump</a> a Mageia installation ISO on a USB stick, you may try one of several tools:', array('class="iso2usb"'),'p' . ($rtl ? ' style="text-align: right;"' : ''));
echo '<ul><li>';
- _g('For Linux, IsoDumper, available inside repo. Or any tools based on %sdd%s.', array('<span class="italic" >', '</span>'), ' ');
+ _g('For Linux, IsoDumper, available inside repo. Or any tools based on %sdd%s.', array('<span class="italic" ' . ($rtl ? ' style="text-align: right;"' : '') . '>', '</span>'), ' ');
_g('Unetbootin is not supported.', null, 'span class="warn"'); ?>
</li>
- <?php _g('For Windows please have a look on our <a href="%s">wiki</a> for your options.', array(_r('https://wiki.mageia.org/en/Dump_Mageia_ISO_on_a_USB_flash_drive_-_Alternative_tools')), 'li'); ?>
+ <?php _g('For Windows please have a look on our <a href="%s">wiki</a> for your options.', array(_r('https://wiki.mageia.org/en/Dump_Mageia_ISO_on_a_USB_flash_drive_-_Alternative_tools')), 'li' . ($rtl ? ' style="text-align: right;"' : '')); ?>
</ul>
- <div id="iso2usbEx"><p>
+ <div id="iso2usbEx"><p<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php _g('"Dumping" an image onto a flash device destroys any prior file-system in the partition; access to any data not destroyed will be lost, and partition capacity will be reduced to the image size. In other words, all prior data on the device is at risk.'); ?>
</p></div>
- <p>
+ <p<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php _g('If you have <a href="%s">UEFI</a>, a procedure is available in the <a href="%s">wiki</a>.', array(_r('http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface'),_r('https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware' /*this will be changed to tooltip, so no more url*/))) ;?>
</p>
</div>
@@ -147,22 +148,22 @@ input[type="radio"], input[type="submit"] {
<?php if($classical == true){?>
<div id="classicalEx">
- <?php _g('Classical Installation Flavours',null,'h2')?>
+ <?php _g('Classical Installation Flavours',null,'h2' . ($rtl ? ' style="text-align: right;"' : ''))?>
- <?php _g('The Classical ISO is the traditional way to install Mageia directly. Take a look at the complete <a href="%s">documentation</a> for this installer.', array('../doc/'), 'p'); ?>
- <p>
+ <?php _g('The Classical ISO is the traditional way to install Mageia directly. Take a look at the complete <a href="%s">documentation</a> for this installer.', array('../doc/'), 'p' . ($rtl ? ' style="text-align: right;"' : '')); ?>
+ <p<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php _g('Up to 167 locales are supported:'); ?>
Deutsch, English, Español, Français, Italiano, Português, Svenska, Nederlands, Polski, Dansk, Pусский
<?php _g('and so much more!'); ?>
<a href="https://wiki.mageia.org/en/Available_locales" hreflang="en"><?php _g('See the comprehensive list')?></a>.
</p>
- <p><?php
+ <p<?php echo $rtl ? ' style="text-align: right;"' : ''?>><?php
_g('These ISOs contains Free Software and some proprietary drivers.');
_g('You will be asked of which kind of Software you want to install.');
_g('The installer includes the capability of adding the online Mageia repositories during the installation, which means you can install even more packages than those available on the ISO.');?>
</p>
- <?php _g('For 32 and 64bit, size of the ISOs is about %sGB.',array('3.7'),'p class="dlinfo"');?>
+ <?php _g('For 32 and 64bit, size of the ISOs is about %sGB.',array('3.7'),'p class="dlinfo"' . ($rtl ? ' style="text-align: right;"' : ''));?>
</div>
<?php } ?>
@@ -170,26 +171,26 @@ input[type="radio"], input[type="submit"] {
<?php if($live == true){?>
<div id="liveEx">
- <?php _g('LiveDVDs',null,'h3');?>
+ <?php _g('LiveDVDs',null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));?>
- <?php _g('Live ISO\'s let you try %s without installation. You can run Mageia directly from a CD, DVD or USB device, and try it using one of the graphical user interfaces such as GNOME or KDE.', array("$name $version"), 'p');
- _g('If you are happy with the Mageia experience, you can then install it onto your hard drive from the Live media.', null, 'p');?>
+ <?php _g('Live ISO\'s let you try %s without installation. You can run Mageia directly from a CD, DVD or USB device, and try it using one of the graphical user interfaces such as GNOME or KDE.', array("$name $version"), 'p' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('If you are happy with the Mageia experience, you can then install it onto your hard drive from the Live media.', null, 'p' . ($rtl ? ' style="text-align: right;"' : ''));?>
- <p><?php _g('Use LiveDVDs for fresh new installs ONLY.');?>
+ <p<?php echo $rtl ? ' style="text-align: right;"' : ''?>><?php _g('Use LiveDVDs for fresh new installs ONLY.');?>
<span class="warn"><?php _g('DO NOT use these LiveDVDs to upgrade from the prior Mageia release!'); ?></span>
<?php _g('Use a classical installation and see <a href="%s" hreflang="en">upgrade guide</a>.', array($upgradeguide));?>
</p>
- <?php _g('For LiveDVDs, size of the ISOs is about %sGB.',array('1.6'),'p class="dlinfo"');?>
+ <?php _g('For LiveDVDs, size of the ISOs is about %sGB.',array('1.6'),'p class="dlinfo"' . ($rtl ? ' style="text-align: right;"' : ''));?>
</div>
<?php } ?>
<div id="lanEx">
- <?php _g('Wired Network-based Installation CD',null,'h3');
- _g('Download quickly and immediately boot into install mode from <em>wired</em> network or a local disk.',null,'p');
- _g('Have a look in the <a href="%s">wiki</a> to get a list of possibilities.',array(_r('https://wiki.mageia.org/en/Boot.iso_install')),'p');
+ <?php _g('Wired Network-based Installation CD',null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('Download quickly and immediately boot into install mode from <em>wired</em> network or a local disk.',null,'p' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('Have a look in the <a href="%s">wiki</a> to get a list of possibilities.',array(_r('https://wiki.mageia.org/en/Boot.iso_install')),'p' . ($rtl ? ' style="text-align: right;"' : ''));
- _g('Size of the ISOs is about 50MB.',null,'p class="dlinfo"');?>
+ _g('Size of the ISOs is about 50MB.',null,'p class="dlinfo"' . ($rtl ? ' style="text-align: right;"' : ''));?>
</div>
<div class="radiobutton">
@@ -202,7 +203,7 @@ input[type="radio"], input[type="submit"] {
</div>
<?php if( !$dual || !$live || !$classical ){?>
-<p style="margin-top:1.5em;" class="warn">
+<p style="margin-top:1.5em;<?php echo $rtl ? ' text-align: right;' : ''?>" class="warn">
<?php if(!$live) {_g('LiveCDs and LiveDVDs are not yet available.');}?>
<?php if(!$classical){ _g('Classical Installation flavours is not yet available.');}?>
</p>
@@ -233,15 +234,15 @@ input[type="radio"], input[type="submit"] {
</div><?php }/*live*/?>
<div class="para" id="nat">
- <?php _g('Network installer',null,'h2');?>
+ <?php _g('Network installer',null,'h2' . ($rtl ? ' style="text-align: right;"' : ''));?>
<div id="freeEx">
- <?php _g('Network installer, Free Software CD', null,'h3');
- _g('Contain only free software',null,'p')?>
+ <?php _g('Network installer, Free Software CD', null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('Contain only free software',null,'p' . ($rtl ? ' style="text-align: right;"' : ''))?>
</div>
<div id="nonfreeEx">
- <?php _g('Network installer + nonfree firmware CD', null,'h3');
- _g('Contain nonfree drivers needed for some disc controllers, some network cards, etc.',null,'p')?>
+ <?php _g('Network installer + nonfree firmware CD', null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('Contain nonfree drivers needed for some disc controllers, some network cards, etc.',null,'p' . ($rtl ? ' style="text-align: right;"' : ''))?>
</div>
<div class="radiobutton">
<input type="radio" id="free" value="-" name="nat" />
@@ -252,14 +253,14 @@ input[type="radio"], input[type="submit"] {
</div>
<div class="para" id="arch">
- <?php _g('Supported Architecture',null,'h2');?>
+ <?php _g('Supported Architecture',null,'h2' . ($rtl ? ' style="text-align: right;"' : ''));?>
<div id='64bEx'>
- <?php _g('64 bit',null,'h3');
- _g('Most new computers support x86-64 (also known as AMD64 and Intel64), but some laptop processors and netbook processors do not support it.',null,'p')?>
+ <?php _g('64 bit',null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('Most new computers support x86-64 (also known as AMD64 and Intel64), but some laptop processors and netbook processors do not support it.',null,'p' . ($rtl ? ' style="text-align: right;"' : ''))?>
</div>
<div id='32bEx'>
- <?php _g('32 bit',null,'h3');
- _g('This version runs on all PCs including those that support 64 Bit. If you have more than 3 GB of RAM you should prefer the 64 Bit version though.',null,'p')?>
+ <?php _g('32 bit',null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('This version runs on all PCs including those that support 64 Bit. If you have more than 3 GB of RAM you should prefer the 64 Bit version though.',null,'p' . ($rtl ? ' style="text-align: right;"' : ''))?>
</div>
<div class="radiobutton">
@@ -271,18 +272,18 @@ input[type="radio"], input[type="submit"] {
</div>
<div class="dllink para" id="dllink" >
- <?php _g('Download Method',null,'h2');?>
+ <?php _g('Download Method',null,'h2' . ($rtl ? ' style="text-align: right;"' : ''));?>
<div id="directEx">
- <?php _g('Direct Link',null,'h3');
- _g('You will be redirected to a HTTP or FTP mirror.',null,'p') ?>
+ <?php _g('Direct Link',null,'h3' . ($rtl ? ' style="text-align: right;"' : ''));
+ _g('You will be redirected to a HTTP or FTP mirror.',null,'p' . ($rtl ? ' style="text-align: right;"' : '')) ?>
</div>
<div id="torrentEx">
<?php if($torrentavailable){ ?>
<?php _g('BitTorrent',null,'h3');
- _g('We recommend you to use <a href=%s>BitTorrent</a> for downloading as it usually give a higher speeds and more reliable download of large files.',array(_r('http://en.wikipedia.org/wiki/BitTorrent')),'p');?>
-<?php } else { echo _g('BitTorrent link are not yet available.',null, 'p style="margin-top:1.5em;" class="warn"'); } ?>
+ _g('We recommend you to use <a href=%s>BitTorrent</a> for downloading as it usually give a higher speeds and more reliable download of large files.',array(_r('http://en.wikipedia.org/wiki/BitTorrent')),'p' . ($rtl ? ' style="text-align: right;"' : ''));?>
+<?php } else { echo _g('BitTorrent link are not yet available.',null, 'p style="margin-top:1.5em;" class="warn"' . ($rtl ? ' style="text-align: right;"' : '')); } ?>
</div>
<div class="radiobutton">
diff --git a/en/5/index.php b/en/5/index.php
index c93db2491..d8af2bb6e 100644
--- a/en/5/index.php
+++ b/en/5/index.php
@@ -2,11 +2,12 @@
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
+$rtl = is_locale_rtl($locale);
$dictionary = read_translation_file($locale, array('5', 'common_footer'));
?>
<!DOCTYPE html>
-<html 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 5.1')?></title>
@@ -15,7 +16,7 @@ $dictionary = read_translation_file($locale, array('5', 'common_footer'));
<?php include '../../analytics.php'; ?>
<style> .fixed-img{ max-height:342px } </style>
</head>
-<body class="downloads">
+<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="downloads">
<?php echo $hsnav; ?>
<h1 id="mgnavt"><a href="../5/">Mageia 5.1</a></h1>