aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorddtddt <ddtddt@piwigo.org>2012-05-28 14:22:19 +0000
committerddtddt <ddtddt@piwigo.org>2012-05-28 14:22:19 +0000
commitfcd83e78399af866fc8501702b1af055b7630898 (patch)
tree4b6204c3c6c0445cc0a66f58cf120f9079ca694e /include/functions_html.inc.php
parent931483970ad884c472fc92b1bcf5a80ccdb80c21 (diff)
[trunk] - l10n page no found message 1
git-svn-id: http://piwigo.org/svn/trunk@15381 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 84a4a8f05..ae9eb1bb0 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -342,11 +342,12 @@ function access_denied()
function page_forbidden($msg, $alternate_url=null)
{
set_status_header(403);
+ $forbidden=l10n('Forbidden');
if ($alternate_url==null)
$alternate_url = make_index_url();
redirect_html( $alternate_url,
'<div style="text-align:left; margin-left:5em;margin-bottom:5em;">
-<h1 style="text-align:left; font-size:36px;">Forbidden</h1><br>'
+<h1 style="text-align:left; font-size:36px;">'.$forbidden.'</h1><br>'
.$msg.'</div>',
5 );
}
@@ -359,11 +360,12 @@ function page_forbidden($msg, $alternate_url=null)
function bad_request($msg, $alternate_url=null)
{
set_status_header(400);
+ $bad=l10n('Bad request');
if ($alternate_url==null)
$alternate_url = make_index_url();
redirect_html( $alternate_url,
'<div style="text-align:left; margin-left:5em;margin-bottom:5em;">
-<h1 style="text-align:left; font-size:36px;">Bad request</h1><br>'
+<h1 style="text-align:left; font-size:36px;">'.$bad.'</h1><br>'
.$msg.'</div>',
5 );
}
@@ -376,11 +378,12 @@ function bad_request($msg, $alternate_url=null)
function page_not_found($msg, $alternate_url=null)
{
set_status_header(404);
+ $found=l10n('Page not found');
if ($alternate_url==null)
$alternate_url = make_index_url();
redirect_html( $alternate_url,
'<div style="text-align:left; margin-left:5em;margin-bottom:5em;">
-<h1 style="text-align:left; font-size:36px;">Page not found</h1><br>'
+<h1 style="text-align:left; font-size:36px;">'.$found.'</h1><br>'
.$msg.'</div>',
5 );
}
@@ -394,7 +397,7 @@ function fatal_error($msg, $title=null, $show_trace=true)
{
if (empty($title))
{
- $title = 'Piwigo encountered a non recoverable error';
+ $title = l10n('Piwigo encountered a non recoverable error');
}
$btrace_msg = '';