]> git.joonet.de Git - adminer.git/commitdiff
RTL text direction support
authorJakub Vrana <jakub@vrana.cz>
Thu, 11 Nov 2010 09:12:26 +0000 (10:12 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 11 Nov 2010 09:12:26 +0000 (10:12 +0100)
adminer/include/design.inc.php
adminer/lang/ar.inc.php
adminer/static/default.css
adminer/static/functions.js
changes.txt

index 81b40d115841825545495d64f390cb4cf320b0bc..aa033e79665fc1c89c2d9a5a5f52190301d2f173 100644 (file)
@@ -14,7 +14,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
        $protocol = ($HTTPS ? "https" : "http");
        ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html lang="<?php echo $LANG; ?>">
+<html lang="<?php echo $LANG; ?>" dir="<?php echo lang('ltr'); ?>">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <meta http-equiv="Content-Script-Type" content="text/javascript">
 <meta name="robots" content="noindex">
@@ -25,7 +25,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
 <link rel="stylesheet" type="text/css" href="adminer.css">
 <?php } ?>
 
-<body onload="bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info, 0, 3) : ""); ?>', '<?php echo $protocol; ?>');<?php echo (isset($_COOKIE["adminer_version"]) ? "" : " verifyVersion('$protocol');"); ?>">
+<body class="<?php echo lang('ltr'); ?>" onload="bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info, 0, 3) : ""); ?>', '<?php echo $protocol; ?>');<?php echo (isset($_COOKIE["adminer_version"]) ? "" : " verifyVersion('$protocol');"); ?>">
 <script type="text/javascript" src="../adminer/static/functions.js"></script>
 <script type="text/javascript" src="static/editing.js"></script>
 
index d46f9b8f910ff5cf7fe6907e5cb50ef17dd3ee36..e87fd6a9f61cfa9f23b7fbbf47c1d2b921c336b1 100644 (file)
@@ -259,4 +259,5 @@ $translations = array(
        'Attachments' => 'ملفات مرفقة.',
        'Item%s has been inserted.' => 'تم إدراج العنصر.',
        'now' => 'الآن',
+       'ltr' => 'rtl',
 );
index 0ccbb81aa4182f00a7556ad5f66d35dbef292358..5badf8b462853d80b9bc3a80a7c89c6eb1adb3d0 100644 (file)
@@ -47,6 +47,12 @@ pre { margin: 1em 0 0; }
 #schema .table { border: 1px solid silver; padding: 0 2px; cursor: move; position: absolute; }
 #schema .references { position: absolute; }
 
+.rtl h2 { margin: 0 -18px 20px 0; }
+.rtl p, .rtl table, .rtl .error, .rtl .message { margin: 1em 0 0 20px; }
+.rtl #content { margin: 2em 21em 0 0; padding: 10px 0 20px 20px; }
+.rtl #breadcrumb { left: auto; right: 21em; margin: 0 -18px 0 0; }
+.rtl #lang, .rtl #menu { left: auto; right: 0; }
+
 @media print {
        #lang, #menu { display: none; }
        #content { margin-left: 1em; }
index fa0c7b4fa6e3266d9b69bac2af19409cf3a3d157..065626f0631b215bfe4ef440d000e537413e7cb8 100644 (file)
@@ -1,5 +1,5 @@
 // to hide elements displayed by JavaScript
-document.body.className = 'js';
+document.body.className += ' js';
 
 /** Toggle visibility
 * @param string
index 0ca4729d3f4168ffe3b53e00d1c2bf7975b9b934..c3c7d7c3ca3286d89eba4f82acac47c93a4e1de7 100644 (file)
@@ -12,6 +12,7 @@ Support for virtual foreign keys
 Disable XSS "protection" of IE8
 Immunity against zend.ze1_compatibility_mode (bug #3089645)
 Fix last page with empty result set
+Arabic translation and RTL support
 Dual licensing: Apache or GPL
 
 Adminer 3.0.1 (released 2010-10-18):