diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-22 19:47:07 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-22 19:47:07 +0000 |
commit | a001683b955f224fcd73b8448ba40451e0408204 (patch) | |
tree | 99e4f3804e4d7575b65816181c2f17c2a434a295 /en/2/nav.php | |
parent | 33e9c62270cee8e528c8fbc82aa55bccc6eabaf4 (diff) | |
download | www-a001683b955f224fcd73b8448ba40451e0408204.tar www-a001683b955f224fcd73b8448ba40451e0408204.tar.gz www-a001683b955f224fcd73b8448ba40451e0408204.tar.bz2 www-a001683b955f224fcd73b8448ba40451e0408204.tar.xz www-a001683b955f224fcd73b8448ba40451e0408204.zip |
new pages for /2
Diffstat (limited to 'en/2/nav.php')
-rw-r--r-- | en/2/nav.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/en/2/nav.php b/en/2/nav.php new file mode 100644 index 000000000..e64e9b6b8 --- /dev/null +++ b/en/2/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}/2/" => 'Mageia 2', + "/{$locale}/downloads/" => 'Download', + "/{$locale}/for-pc/" => 'For PC', + "/{$locale}/for-server/" => '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; |