aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--404.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/404.php b/404.php
index 6ed9dd9cd..d16c61917 100644
--- a/404.php
+++ b/404.php
@@ -4,10 +4,11 @@ define('ALIGNMENT', 'Center');
require 'langs.php'; // needs absolute path in some form to be link depth independent
$locale = ($locale == '404.php' ? 'en' : $locale);
$dictionary = read_translation_file($locale, array('404', 'common_footer'));
+$rtl = is_locale_rtl($locale);
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
?><!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php _g('Sorry, we could not find this page.')?></title>
@@ -17,7 +18,7 @@ header('Status: 404 Not Found');
<?php echo common_header(); ?>
<?php include 'analytics.php'; ?>
</head>
-<body>
+<body<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Sorry, we could not find this page.')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">