aboutsummaryrefslogtreecommitdiffstats
path: root/404.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-03-10 22:17:22 +0000
committerFilip Komar <filip@mageia.org>2014-03-10 22:17:22 +0000
commit9ef7e0528a30575551f74a4d3d35961b8b2c0222 (patch)
treed009b533c3c124b23ec5ea253c7ef4aae612d644 /404.php
parent0825f96fb0275ca9573aa819967c1136ce7cbce9 (diff)
downloadwww-9ef7e0528a30575551f74a4d3d35961b8b2c0222.tar
www-9ef7e0528a30575551f74a4d3d35961b8b2c0222.tar.gz
www-9ef7e0528a30575551f74a4d3d35961b8b2c0222.tar.bz2
www-9ef7e0528a30575551f74a4d3d35961b8b2c0222.tar.xz
www-9ef7e0528a30575551f74a4d3d35961b8b2c0222.zip
404 2nd page migrated to gettext system + small bugfix of toolchain needed
Diffstat (limited to '404.php')
-rw-r--r--404.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/404.php b/404.php
index 57ae1cc27..a579260a6 100644
--- a/404.php
+++ b/404.php
@@ -1,7 +1,7 @@
<?php
define('HLANG', true);
require 'langs.php'; // needs absolute path in some form to be link depth independent
-_lang_load($locale, '404');
+$dictionary = read_translation_file($locale, '404');
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
@@ -10,7 +10,7 @@ $locale = ($locale == '404' ? 'en' : $locale);
<html dir="ltr" lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
- <title><?php _e('Sorry, we could not find this page.')?></title>
+ <title><?php _g('Sorry, we could not find this page.')?></title>
<meta http-equiv="expires" content="0">
<meta name="robots" content="noindex, nofollow">
<meta name="author" content="Mageia">
@@ -19,14 +19,14 @@ $locale = ($locale == '404' ? 'en' : $locale);
</head>
<body>
<?php echo $hsnav; ?>
- <h1 id="mgnavt"><?php _e('Sorry, we could not find this page.')?></h1>
+ <h1 id="mgnavt"><?php _g('Sorry, we could not find this page.')?></h1>
<div id="doc" class="yui-t7">
<div id="bd" role="main">
<div class="yui-g">
<div class="para values">
<ul class="hl"><?php
- _h('Try searching it on <a href="%s">mageia.org site map</a>,', array("/$locale/map/"), 'li');
- _h('or try to <a href="%s">search with Google</a>.', array('https://www.google.com/?q=site:mageia.org'), 'li');
+ _g('Try searching it on <a href="%s">mageia.org site map</a>,', array("/$locale/map/"), 'li');
+ _g('or try to <a href="%s">search with DuckDuckGo</a>.', array('https://duckduckgo.com/?q=site%mageia.org'), 'li');
?></ul>
</div>
</div>