diff options
Diffstat (limited to 'en/contribute/index.php')
-rw-r--r-- | en/contribute/index.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/en/contribute/index.php b/en/contribute/index.php index 839eeded7..0a383b88f 100644 --- a/en/contribute/index.php +++ b/en/contribute/index.php @@ -1,14 +1,11 @@ <?php -$locale = explode('/', $_SERVER['REQUEST_URI']); -$locale = $locale[1]; -require 'locales.php'; -if (!array_key_exists($locale, $_t)) { - $locale = 'en'; -} +define('HLANG', true); +require '../../langs.php'; +include 'locales.php'; -$_t = $_t[$locale]; +$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules); ?> <!DOCTYPE html> @@ -24,7 +21,7 @@ $_t = $_t[$locale]; <?php include '../../analytics.php'; ?> </head> <body id="top"> - <?php include '../../langs.php'; ?> + <?php echo $hsnav; ?> <div id="doc" class="yui-t7"> <div id="hd" role="banner"><h1><a id="logo" href="/<?php echo $locale; ?>/"><span>Mageia</span></a> <span class="lsep">|</span> <span class="subh"><?php echo $_t['page_h1']; ?></span></h1></div> <div id="bd" role="main"> |