aboutsummaryrefslogtreecommitdiffstats
path: root/en/1/next
diff options
context:
space:
mode:
Diffstat (limited to 'en/1/next')
-rw-r--r--en/1/next/index.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/en/1/next/index.php b/en/1/next/index.php
index f45b71ef6..187f0b548 100644
--- a/en/1/next/index.php
+++ b/en/1/next/index.php
@@ -1,14 +1,10 @@
<?php
-$locale = explode('/', $_SERVER['REQUEST_URI']);
-$locale = $locale[1];
+define('HLANG', true);
+require '../../../langs.php';
+include 'locales.php';
-require 'locales.php';
-if (!array_key_exists($locale, $_t)) {
- $locale = 'en';
-}
-
-$_t = $_t[$locale];
+$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules);
?>
@@ -25,7 +21,7 @@ $_t = $_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="/"><span>Mageia</span></a> <span class="lsep">|</span> <span class="subh"><?php echo $_t['page_h1']; ?></span></h1>