diff options
Diffstat (limited to 'en/index.php')
-rw-r--r-- | en/index.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/en/index.php b/en/index.php index 7ff3ea0a7..30ee473b0 100644 --- a/en/index.php +++ b/en/index.php @@ -4,12 +4,12 @@ define('HLANG', true); require '../langs.php'; -_lang_load($locale, 'index'); +$dictionary = read_translation_file($locale, 'index'); $nav = array( - 'nav-support' => array('support/', _t('Support')), - 'nav-community' => array('community/', _t('Community')), - 'nav-about' => array('about/', _t('About Mageia.Org')) + 'nav-support' => array('support/', _r('Support')), + 'nav-community' => array('community/', _r('Community')), + 'nav-about' => array('about/', _r('About Mageia.Org')) ); ?><!DOCTYPE html> @@ -17,16 +17,16 @@ $nav = array( <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title><?php _e('Home of the Mageia project'); ?></title> - <meta name="description" content="<?php _e('Mageia is a community-based Linux distribution, for desktop & server.'); ?>"> - <meta name="keywords" content="<?php _e('linux, mageia, free software, operating system, computer, laptop, desktop, server, headless, device, mobile, mandriva, mandrake'); ?>"> + <title><?php _g('Home of the Mageia project'); ?></title> + <meta name="description" content="<?php _g('Mageia is a community-based Linux distribution, for desktop & server.'); ?>"> + <meta name="keywords" content="<?php _g('linux, mageia, free software, operating system, computer, laptop, desktop, server, headless, device, mobile, mandriva, mandrake'); ?>"> <link type="text/plain" rel="author" href="/humans.txt"> <?php foreach ($langs as $l => $name) if ($l != $locale) echo sprintf('<link rel="alternate" hreflang="%s" href="//www.mageia.org/%s/">', $l, $l); ?> - <link rel="alternate" type="application/rss+xml" title="<?php _e('Mageia Blog (English)'); ?>" href="<?php _e('https://blog.mageia.org/en/?feed=rss'); ?>"> + <link rel="alternate" type="application/rss+xml" title="<?php _g('Mageia Blog (English)'); ?>" href="<?php _g('https://blog.mageia.org/en/?feed=rss'); ?>"> <?php require '../analytics.php'; ?> <style> html, body { @@ -215,18 +215,18 @@ $nav = array( <body> <?php echo $hsnav?> <div id="master"> - <h1><a href="about/"><?php _e('Mageia, a free, community-based Linux distribution for desktop & server.'); ?></a></h1> + <h1><a href="about/"><?php _g('Mageia, a free, community-based Linux distribution for desktop & server.'); ?></a></h1> </div> <div id="up"> <div class="container"> <div id="b1"> - <h2><?php _e('Change your perspective'); ?></h2> + <h2><?php _g('Change your perspective'); ?></h2> <ul id="p"><?php - _h('Stable, secure operating system for desktop & server', null, 'li'); - _h('Free Software, coproduced by hundreds of people', null, 'li'); - _h('Elected governance, nonprofit organization', null, 'li'); - _h('You can be part of it', null, 'li'); + _g('Stable, secure operating system for desktop & server', null, 'li'); + _g('Free Software, coproduced by hundreds of people', null, 'li'); + _g('Elected governance, nonprofit organization', null, 'li'); + _g('You can be part of it', null, 'li'); ?></ul> </div> <div id="b2"> @@ -234,17 +234,17 @@ $nav = array( <li><a href="downloads/" id="dl-btn"> <span id="dl-btn-mageia">Mageia 3</span> <span style="font-size: 32px; color: green; float: right;" class="icon-download-alt"></span> - <span class="dl-btn free-dl"><?php _e('Free Download'); ?></span> - <span class="dl-btn"><?php _e('version 4 (February 2014)'); ?></span> + <span class="dl-btn free-dl"><?php _g('Free Download'); ?></span> + <span class="dl-btn"><?php _g('version 4 (February 2014)'); ?></span> </a> <p class="dl-info"> - <?php _e('<a href="%s" hreflang="en">Release notes</a>', array('https://wiki.mageia.org/en/Mageia_4_Release_Notes')); ?>, - <?php _e('<a href="%s" hreflang="en">errata</a>', array('https://wiki.mageia.org/en/Mageia_4_Errata')); ?>. + <?php _g('<a href="%s" hreflang="en">Release notes</a>', array('https://wiki.mageia.org/en/Mageia_4_Release_Notes')); ?>, + <?php _g('<a href="%s" hreflang="en">errata</a>', array('https://wiki.mageia.org/en/Mageia_4_Errata')); ?>. </p> </li> - <li><a href="contribute/" class="dl-btn-other"><?php _e('<strong>Get involved</strong> in the next version'); ?></a> + <li><a href="contribute/" class="dl-btn-other"><?php _g('<strong>Get involved</strong> in the next version'); ?></a> </li> - <!--<li><a href="4/" class="dl-btn-other"><?php _e('Test'); ?> Mageia 5 alpha 1</a> + <!--<li><a href="4/" class="dl-btn-other"><?php _g('Test'); ?> Mageia 5 alpha 1</a> </li>--> </ul> </div> @@ -261,8 +261,8 @@ $nav = array( ?></ul> <hr> <p id="fnotes"> - <a href="/<?php echo $locale ?>/map/"><?php _e('Sitemap')?></a> - | <a href="/<?php echo $locale ?>/about/policies/privacy/"><?php _e('Privacy policy')?></a> + <a href="/<?php echo $locale ?>/map/"><?php _g('Sitemap')?></a> + | <a href="/<?php echo $locale ?>/about/policies/privacy/"><?php _g('Privacy policy')?></a> </p> </div> </div> |