diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 81b40d11..aa033e79 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -14,7 +14,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { $protocol = ($HTTPS ? "https" : "http"); ?> - + @@ -25,7 +25,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { -', '');"> +', '');"> diff --git a/adminer/lang/ar.inc.php b/adminer/lang/ar.inc.php index d46f9b8f..e87fd6a9 100644 --- a/adminer/lang/ar.inc.php +++ b/adminer/lang/ar.inc.php @@ -259,4 +259,5 @@ $translations = array( 'Attachments' => 'ملفات مرفقة.', 'Item%s has been inserted.' => 'تم إدراج العنصر.', 'now' => 'الآن', + 'ltr' => 'rtl', ); diff --git a/adminer/static/default.css b/adminer/static/default.css index 0ccbb81a..5badf8b4 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -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; } diff --git a/adminer/static/functions.js b/adminer/static/functions.js index fa0c7b4f..065626f0 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -1,5 +1,5 @@ // to hide elements displayed by JavaScript -document.body.className = 'js'; +document.body.className += ' js'; /** Toggle visibility * @param string diff --git a/changes.txt b/changes.txt index 0ca4729d..c3c7d7c3 100644 --- a/changes.txt +++ b/changes.txt @@ -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):