diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2013-05-18 16:36:53 +0000 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2013-05-18 16:36:53 +0000 |
commit | 2d7236cbfed7124cd82ddfab87fe00b23ed94648 (patch) | |
tree | 3e98770894a7fa0900aa4412b5565ae10c162e25 /en/3 | |
parent | 8b977a672a712558e3316f7f6c0ce14c0d9b2c5c (diff) | |
download | www-2d7236cbfed7124cd82ddfab87fe00b23ed94648.tar www-2d7236cbfed7124cd82ddfab87fe00b23ed94648.tar.gz www-2d7236cbfed7124cd82ddfab87fe00b23ed94648.tar.bz2 www-2d7236cbfed7124cd82ddfab87fe00b23ed94648.tar.xz www-2d7236cbfed7124cd82ddfab87fe00b23ed94648.zip |
prepare mageia 3 web site
Diffstat (limited to 'en/3')
-rwxr-xr-x | en/3/download_index.php | 4 | ||||
-rw-r--r-- | en/3/nav.php | 46 |
2 files changed, 48 insertions, 2 deletions
diff --git a/en/3/download_index.php b/en/3/download_index.php index 1130ac0e4..9c99ad024 100755 --- a/en/3/download_index.php +++ b/en/3/download_index.php @@ -23,7 +23,7 @@ require '../downloads/get/lib.php'; <body class="release downloads"> <?php echo $hsnav; ?> <h1 id="mgnavt"><?php _e('Download <strong>Mageia 3</strong>')?></h1> - <!--<?php include '../3/nav.php'; ?>--> + <?php include '../3/nav.php'; ?> <div id="doc4" class="yui-t7"> <div id="bd" role="main"> <div class="yui-ge bb1"> @@ -182,7 +182,7 @@ require '../downloads/get/lib.php'; <?php _h('Looking for Mageia 2?', null, 'h3'); echo '<p>'; - _e('It is <a href="%s">here now</a>.', array('../2/download_index.php')); + _e('It is <a href="%s">here now</a>.', array('/2/')); echo '</p>'; ?> <br> diff --git a/en/3/nav.php b/en/3/nav.php new file mode 100644 index 000000000..2b7e4628e --- /dev/null +++ b/en/3/nav.php @@ -0,0 +1,46 @@ +<?php + +$_nt = array( + 'cs' => array('for-you' => 'Pro vás', 'dl' => 'Stáhnout', 'next' => 'A dále?', 'notes' => 'Poznámky'), + 'de' => array('for-you' => 'Für Sie', 'dl' => 'Download', 'next' => 'Und nun?', 'notes' => 'Release-Notes'), + 'el' => array('for-you' => 'Για εσάς', 'dl' => 'Λήψη', 'next' => 'Και μετά;', 'notes' => 'Σημειώσεις'), + 'en' => array('for-you' => 'For you', 'dl' => 'Download', 'next' => 'And next?', 'notes' => 'Notes'), + 'es' => array('for-you' => 'Para usted', 'dl' => 'Descargar', 'next' => '¿Y qué sigue?', 'notes' => 'Notas'), + 'et' => array('for-you' => 'Teie jaoks', 'dl' => 'Allalaadimine', 'next' => 'Ja mis edasi?', 'notes' => 'Märkmed'), + 'fr' => array('for-you' => 'Pour vous', 'dl' => 'Télécharger', 'next' => 'Et après ?'), + 'it' => array('for-you' => 'Per voi', 'dl' => 'Scaricare', 'next' => 'E dopo ?', 'notes' => 'Note'), + 'nb' => array('for-you' => 'For deg', 'dl' => 'Last ned', 'next' => 'Neste steg?', 'notes' => 'Merknader'), + 'nl' => array('for-you' => 'Voor u', 'dl' => 'Download', 'next' => 'En nu?', 'notes' => 'Opmerkingen'), + 'pt' => array('for-you' => 'Para si', 'dl' => 'Transferir', 'next' => 'E depois?', 'notes' => 'Notas'), + 'ro' => array('for-you' => 'Pentru voi', 'dl' => 'Descărcați', 'next' => 'Și după?', 'notes' => 'Notele ediției'), + 'tr' => array('for-you' => 'Sizin için', 'dl' => 'İndirin', 'next' => 'Peki sonra?', 'notes' => 'Notlar'), + 'uk' => array('for-you' => 'Для вас', 'dl' => 'Звантаження', 'next' => 'Що далі?', 'notes' => 'Нотатки'), + 'zh-tw' => array('for-you' => '為了您', 'dl' => '下載', 'next' => '下一步呢?', 'notes' => '通告') +); + +if (array_key_exists($locale, $_nt)) + $_nt = array_merge($_nt['en'], $_nt[$locale]); +else + $_nt = $_nt['en']; + +$nav = array( + "/{$locale}/3/" => _t('Mageia 3'), + "/{$locale}/downloads/" => _t('Download'), + "/{$locale}/for-pc/" => _t('For PC'), + "/{$locale}/for-server/" => _t('For server'), +); + +$sru = trim($_SERVER['REQUEST_URI']); + +$pnav = array(); +foreach ($nav as $k => $v) { + $pnav[] = sprintf('<li><a href="%s"%s>%s</a></li>', + $k, + $k == $sru ? ' class="sel"' : null, + $v); +} +$pnav = implode($pnav); + +echo <<<S +<div id="mgnavsub"><ul id="mgnavsubl">{$pnav}</ul></div> +S; |