aboutsummaryrefslogtreecommitdiffstats
path: root/en/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/index.php')
-rw-r--r--en/index.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/en/index.php b/en/index.php
index b1b848196..851676247 100644
--- a/en/index.php
+++ b/en/index.php
@@ -1,14 +1,10 @@
<?php
-$locale = explode('/', $_SERVER['REQUEST_URI']);
-$locale = $locale[1];
-
+define('HLANG', true);
+require '../langs.php';
include 'index_locales.php';
-if (!array_key_exists($locale, $_t))
- $locale = 'en';
-
-$_t = array_merge($_t['en'], $_t[$locale]);
+$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules);
?>
<!DOCTYPE html>
@@ -24,7 +20,7 @@ $_t = array_merge($_t['en'], $_t[$locale]);
<?php include '../analytics.php'; ?>
</head>
<body class="release">
- <?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>