diff options
Diffstat (limited to 'en/about/license/index.php')
-rw-r--r-- | en/about/license/index.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/en/about/license/index.php b/en/about/license/index.php index a42946ee4..cd8147cc7 100644 --- a/en/about/license/index.php +++ b/en/about/license/index.php @@ -2,6 +2,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../../langs.php'; +$rtl = is_locale_rtl($locale); $dictionary = read_translation_file($locale, array('about/license', 'common_footer')); @@ -11,7 +12,7 @@ $prepared_license_strings = read_license_from_vcs($locale); // Note to translators: _r('Note to translators! PLEASE READ THIS LINE! YOU DON\'T NEED TO TRANSLATE IT! Please translate license in your po file "http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/" first. Check wiki for details.') ?> <!DOCTYPE html> -<html lang="<?php echo $locale; ?>"> +<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>"> <head> <meta charset="utf-8"> <?php include '../../../analytics.php'; ?> @@ -24,29 +25,29 @@ $prepared_license_strings = read_license_from_vcs($locale); </head> <body class="about"> <?php echo $hsnav; ?> - <h1 id="mgnavtitle"><?php _g('Mageia license')?></h1> + <h1 id="mgnavtitle" <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?>><?php _g('Mageia license')?></h1> <div id="doc" class="yui-t7" style="margin-bottom: 0px;"> <div id="bd" role="main" class="para"> <section> <?php echo '<div id="preamble">'; // _('An introduction text ... (summarizing, explaining the core principles, and why this license was chosen).'); - echo '<p>' . sprintf(_r('You can get more information about our licensing policy %shere</a>.'), + echo '<p'. ($rtl ? ' align="right"' : '') . '>' . sprintf(_r('You can get more information about our licensing policy %shere</a>.'), '<a href="https://wiki.mageia.org/en/Licensing_policy">') . '</p>'; $unofficial_translation = array_shift($prepared_license_strings); $patents_warning = array_pop($prepared_license_strings); if($locale != 'en') { - echo sprintf('<%s>' . $unofficial_translation[0] . '</%s>' . PHP_EOL, $unofficial_translation[1], $unofficial_translation[1]); + echo sprintf('<%s'. ($rtl ? ' align="right"' : '') . '>' . $unofficial_translation[0] . '</%s>' . PHP_EOL, $unofficial_translation[1], $unofficial_translation[1]); } echo '</div><br>'; foreach($prepared_license_strings as $string) { - echo sprintf('<%s>' . $string[0] . '</%s>' . PHP_EOL, $string[1], $string[1]); + echo sprintf('<%s'. ($rtl ? ' align="right"' : '') . '>' . $string[0] . '</%s>' . PHP_EOL, $string[1], $string[1]); } - _g('Warning about patents', null, 'h2'); + _g('Warning about patents', null, 'h2'. ($rtl ? ' align="right"' : '')); $patents = str_replace('http://www.mp3licensing.com', '<a href="http://www.mp3licensing.com">www.mp3licensing.com</a>', $patents_warning[0]); - echo '<p>' . $patents . '</p>' . PHP_EOL; + echo '<p'. ($rtl ? ' align="right"' : '') . '>' . $patents . '</p>' . PHP_EOL; ?> </section> </div> |