From: Aryeh Gregor Date: Sun, 9 Sep 2007 23:58:10 +0000 (+0000) Subject: Moved inline markup in signup and login forms to CSS, and dealt with some of the... X-Git-Tag: 1.31.0-rc.0~51458 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=ae23bbfc10de65efd9b0ac868b9cec9a31d48d77;p=lhc%2Fweb%2Fwiklou.git Moved inline markup in signup and login forms to CSS, and dealt with some of the associated directionality issues in the process. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b0db547ae0..a5c9eae785 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -30,6 +30,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN ImageMagick, diff3 et al. during installation [patch by Jan Reininghaus] * (bug 7027) Shift handling of deletion permissions-checking to getUserPermissionsErrors. +* Login and signup forms are now more correct for right-to-left languages. === API changes in 1.12 === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index b736039b33..b83b5cf2b0 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1214,7 +1214,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '97'; +$wgStyleVersion = '98'; # Server-side caching: diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index 127c30a0b0..5b41ba7fa6 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -33,16 +33,16 @@ class UserloginTemplate extends QuickTemplate { haveData( 'languages' ) ) { ?> - - + - - + - - + - -
+
+ @@ -55,8 +55,8 @@ class UserloginTemplate extends QuickTemplate { } ?>
msg( 'yourdomainname' ) ?> + msg( 'yourdomainname' ) ?>
+
+  data['useemail'] && $this->data['canreset']) { ?> @@ -117,16 +117,16 @@ class UsercreateTemplate extends QuickTemplate { haveData( 'languages' ) ) { ?> - - + - - + - - + - - + data['useemail'] ) { ?> - - + - - + - -
+
+ @@ -139,8 +139,8 @@ class UsercreateTemplate extends QuickTemplate { } ?>
msg( 'yourdomainname' ) ?> + msg( 'yourdomainname' ) ?>
+
+ @@ -172,8 +172,8 @@ class UsercreateTemplate extends QuickTemplate { data['userealname'] ) { ?>
+ @@ -185,7 +185,7 @@ class UsercreateTemplate extends QuickTemplate {
+
+ diff --git a/skins/common/shared.css b/skins/common/shared.css index f6d63ab89c..61f68395f0 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -46,3 +46,16 @@ table.filehistory td.mw-imagepage-filesize, table.filehistory th.mw-imagepage-filesize { white-space:nowrap; } + +/** + * Forms + */ +body.ltr td.mw-label { text-align: right; } +body.ltr td.mw-input { text-align: left; } +body.ltr td.mw-submit { text-align: left; } +body.rtl td.mw-label { text-align: left; } +body.rtl td.mw-input { text-align: right; } +body.rtl td.mw-submit { text-align: right; } + +td.mw-label { vertical-align: top; } +td.mw-submit { white-space: nowrap; }