aboutsummaryrefslogtreecommitdiffstats
path: root/en/contribute
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-06-30 15:10:18 +0000
committerRomain d'Alverny <rda@mageia.org>2011-06-30 15:10:18 +0000
commit878c14d7d118f209a3b86559c53c982fd666c1d7 (patch)
tree47fe4d9ef369ec0bd654723830f8f9544f11ff27 /en/contribute
parent6a6a5fde07965aa0cced799d0d314a0151db6027 (diff)
downloadwww-878c14d7d118f209a3b86559c53c982fd666c1d7.tar
www-878c14d7d118f209a3b86559c53c982fd666c1d7.tar.gz
www-878c14d7d118f209a3b86559c53c982fd666c1d7.tar.bz2
www-878c14d7d118f209a3b86559c53c982fd666c1d7.tar.xz
www-878c14d7d118f209a3b86559c53c982fd666c1d7.zip
i18n/nav fix
Diffstat (limited to 'en/contribute')
-rw-r--r--en/contribute/index.php13
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">