Index: trunk/phase3/includes/SpecialBlockip.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | } |
67 | 67 | |
68 | 68 | function showForm( $err ) { |
69 | | - global $wgOut, $wgUser, $wgSysopUserBans; |
| 69 | + global $wgOut, $wgUser, $wgSysopUserBans, $wgContLang; |
70 | 70 | |
71 | 71 | $wgOut->setPagetitle( wfMsg( 'blockip' ) ); |
72 | 72 | $wgOut->addWikiText( wfMsg( 'blockiptext' ) ); |
— | — | @@ -84,6 +84,7 @@ |
85 | 85 | |
86 | 86 | $titleObj = SpecialPage::getTitleFor( 'Blockip' ); |
87 | 87 | $action = $titleObj->escapeLocalURL( "action=submit" ); |
| 88 | + $alignRight = $wgContLang->isRtl() ? 'left' : 'right'; |
88 | 89 | |
89 | 90 | if ( "" != $err ) { |
90 | 91 | $wgOut->setSubtitle( wfMsgHtml( 'formerror' ) ); |
— | — | @@ -150,8 +151,8 @@ |
151 | 152 | <form id=\"blockip\" method=\"post\" action=\"{$action}\"> |
152 | 153 | <table border='0'> |
153 | 154 | <tr> |
154 | | - <td align=\"right\">{$mIpaddress}:</td> |
155 | | - <td align=\"left\"> |
| 155 | + <td align=\"$alignRight\">{$mIpaddress}</td> |
| 156 | + <td> |
156 | 157 | " . Xml::input( 'wpBlockAddress', 45, $this->BlockAddress, |
157 | 158 | array( |
158 | 159 | 'tabindex' => '1', |
— | — | @@ -162,8 +163,8 @@ |
163 | 164 | <tr>"); |
164 | 165 | if ($showblockoptions) { |
165 | 166 | $wgOut->addHTML(" |
166 | | - <td align=\"right\">{$mIpbexpiry}:</td> |
167 | | - <td align=\"left\"> |
| 167 | + <td align=\"$alignRight\">{$mIpbexpiry}</td> |
| 168 | + <td> |
168 | 169 | <select tabindex='2' id='wpBlockExpiry' name=\"wpBlockExpiry\" onchange=\"considerChangingExpiryFocus()\"> |
169 | 170 | $blockExpiryFormOptions |
170 | 171 | </select> |
— | — | @@ -173,8 +174,8 @@ |
174 | 175 | $wgOut->addHTML(" |
175 | 176 | </tr> |
176 | 177 | <tr id='wpBlockOther'> |
177 | | - <td align=\"right\">{$mIpbother}:</td> |
178 | | - <td align=\"left\"> |
| 178 | + <td align=\"$alignRight\">{$mIpbother}</td> |
| 179 | + <td> |
179 | 180 | " . Xml::input( 'wpBlockOther', 45, $this->BlockOther, |
180 | 181 | array( 'tabindex' => '3', 'id' => 'mw-bi-other' ) ) . " |
181 | 182 | </td> |
— | — | @@ -182,8 +183,8 @@ |
183 | 184 | if ( $blockReasonList != '' ) { |
184 | 185 | $wgOut->addHTML(" |
185 | 186 | <tr> |
186 | | - <td align=\"right\">{$mIpbreasonother}:</td> |
187 | | - <td align=\"left\"> |
| 187 | + <td align=\"$alignRight\">{$mIpbreasonother}</td> |
| 188 | + <td> |
188 | 189 | <select tabindex='4' id=\"wpBlockReasonList\" name=\"wpBlockReasonList\"> |
189 | 190 | $blockReasonList |
190 | 191 | </select> |
— | — | @@ -192,15 +193,15 @@ |
193 | 194 | } |
194 | 195 | $wgOut->addHTML(" |
195 | 196 | <tr id=\"wpBlockReason\"> |
196 | | - <td align=\"right\">{$mIpbreason}:</td> |
197 | | - <td align=\"left\"> |
| 197 | + <td align=\"$alignRight\">{$mIpbreason}</td> |
| 198 | + <td> |
198 | 199 | " . Xml::input( 'wpBlockReason', 45, $this->BlockReason, |
199 | 200 | array( 'tabindex' => '5', 'id' => 'mw-bi-reason' ) ) . " |
200 | 201 | </td> |
201 | 202 | </tr> |
202 | 203 | <tr id='wpAnonOnlyRow'> |
203 | 204 | <td> </td> |
204 | | - <td align=\"left\"> |
| 205 | + <td> |
205 | 206 | " . wfCheckLabel( wfMsgHtml( 'ipbanononly' ), |
206 | 207 | 'wpAnonOnly', 'wpAnonOnly', $this->BlockAnonOnly, |
207 | 208 | array( 'tabindex' => '6' ) ) . " |
— | — | @@ -208,7 +209,7 @@ |
209 | 210 | </tr> |
210 | 211 | <tr id='wpCreateAccountRow'> |
211 | 212 | <td> </td> |
212 | | - <td align=\"left\"> |
| 213 | + <td> |
213 | 214 | " . wfCheckLabel( wfMsgHtml( 'ipbcreateaccount' ), |
214 | 215 | 'wpCreateAccount', 'wpCreateAccount', $this->BlockCreateAccount, |
215 | 216 | array( 'tabindex' => '7' ) ) . " |
— | — | @@ -216,7 +217,7 @@ |
217 | 218 | </tr> |
218 | 219 | <tr id='wpEnableAutoblockRow'> |
219 | 220 | <td> </td> |
220 | | - <td align=\"left\"> |
| 221 | + <td> |
221 | 222 | " . wfCheckLabel( wfMsgHtml( 'ipbenableautoblock' ), |
222 | 223 | 'wpEnableAutoblock', 'wpEnableAutoblock', $this->BlockEnableAutoblock, |
223 | 224 | array( 'tabindex' => '8' ) ) . " |
— | — | @@ -228,7 +229,7 @@ |
229 | 230 | $wgOut->addHTML(" |
230 | 231 | <tr> |
231 | 232 | <td> </td> |
232 | | - <td align=\"left\"> |
| 233 | + <td> |
233 | 234 | " . wfCheckLabel( wfMsgHtml( 'ipbhidename' ), |
234 | 235 | 'wpHideName', 'wpHideName', $this->BlockHideName, |
235 | 236 | array( 'tabindex' => '9' ) ) . " |
— | — | @@ -239,7 +240,7 @@ |
240 | 241 | $wgOut->addHTML(" |
241 | 242 | <tr> |
242 | 243 | <td style='padding-top: 1em'> </td> |
243 | | - <td style='padding-top: 1em' align=\"left\"> |
| 244 | + <td style='padding-top: 1em'> |
244 | 245 | " . Xml::submitButton( wfMsg( 'ipbsubmit' ), |
245 | 246 | array( 'name' => 'wpBlock', 'tabindex' => '10' ) ) . " |
246 | 247 | </td> |
Index: trunk/phase3/includes/SpecialIpblocklist.php |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | } |
79 | 79 | |
80 | 80 | function showForm( $err ) { |
81 | | - global $wgOut, $wgUser, $wgSysopUserBans; |
| 81 | + global $wgOut, $wgUser, $wgSysopUserBans, $wgContLang; |
82 | 82 | |
83 | 83 | $wgOut->setPagetitle( wfMsg( 'unblockip' ) ); |
84 | 84 | $wgOut->addWikiText( wfMsg( 'unblockiptext' ) ); |
— | — | @@ -87,6 +87,7 @@ |
88 | 88 | $ipus = wfMsgHtml( 'ipusubmit' ); |
89 | 89 | $titleObj = SpecialPage::getTitleFor( "Ipblocklist" ); |
90 | 90 | $action = $titleObj->getLocalURL( "action=submit" ); |
| 91 | + $alignRight = $wgContLang->isRtl() ? 'left' : 'right'; |
91 | 92 | |
92 | 93 | if ( "" != $err ) { |
93 | 94 | $wgOut->setSubtitle( wfMsg( "formerror" ) ); |
— | — | @@ -111,24 +112,24 @@ |
112 | 113 | Xml::openElement( 'form', array( 'method' => 'post', 'action' => $action, 'id' => 'unblockip' ) ) . |
113 | 114 | Xml::openElement( 'table', array( 'border' => '0' ) ). |
114 | 115 | "<tr> |
115 | | - <td align='right'> |
116 | | - {$ipa}: |
| 116 | + <td align='$alignRight'> |
| 117 | + {$ipa} |
117 | 118 | </td> |
118 | | - <td align='left'> |
| 119 | + <td> |
119 | 120 | {$addressPart} |
120 | 121 | </td> |
121 | 122 | </tr> |
122 | 123 | <tr> |
123 | | - <td align='right'> |
124 | | - {$ipr}: |
| 124 | + <td align='$alignRight'> |
| 125 | + {$ipr} |
125 | 126 | </td> |
126 | | - <td align='left'>" . |
| 127 | + <td>" . |
127 | 128 | Xml::input( 'wpUnblockReason', 40, $this->reason, array( 'type' => 'text', 'tabindex' => '2' ) ) . |
128 | 129 | "</td> |
129 | 130 | </tr> |
130 | 131 | <tr> |
131 | 132 | <td> </td> |
132 | | - <td align='left'>" . |
| 133 | + <td>" . |
133 | 134 | Xml::submitButton( $ipus, array( 'name' => 'wpBlock', 'tabindex' => '3' ) ) . |
134 | 135 | "</td> |
135 | 136 | </tr>" . |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1963,10 +1963,10 @@ |
1964 | 1964 | accordance with [[{{MediaWiki:policy-url}}|policy]]. |
1965 | 1965 | Fill in a specific reason below (for example, citing particular |
1966 | 1966 | pages that were vandalized).", |
1967 | | -'ipaddress' => 'IP Address', |
1968 | | -'ipadressorusername' => 'IP Address or username', |
1969 | | -'ipbexpiry' => 'Expiry', |
1970 | | -'ipbreason' => 'Reason', |
| 1967 | +'ipaddress' => 'IP Address:', |
| 1968 | +'ipadressorusername' => 'IP Address or username:', |
| 1969 | +'ipbexpiry' => 'Expiry:', |
| 1970 | +'ipbreason' => 'Reason:', |
1971 | 1971 | 'ipbreasonotherlist' => 'Other reason', |
1972 | 1972 | |
1973 | 1973 | // These are examples only. They can be translated but should be adjusted via |
— | — | @@ -1988,10 +1988,10 @@ |
1989 | 1989 | 'ipbcreateaccount' => 'Prevent account creation', |
1990 | 1990 | 'ipbenableautoblock' => 'Automatically block the last IP address used by this user, and any subsequent IPs they try to edit from', |
1991 | 1991 | 'ipbsubmit' => 'Block this user', |
1992 | | -'ipbother' => 'Other time', |
| 1992 | +'ipbother' => 'Other time:', |
1993 | 1993 | 'ipboptions' => '2 hours:2 hours,1 day:1 day,3 days:3 days,1 week:1 week,2 weeks:2 weeks,1 month:1 month,3 months:3 months,6 months:6 months,1 year:1 year,infinite:infinite', |
1994 | 1994 | 'ipbotheroption' => 'other', |
1995 | | -'ipbotherreason' => 'Other/additional reason', |
| 1995 | +'ipbotherreason' => 'Other/additional reason:', |
1996 | 1996 | 'ipbhidename' => 'Hide username/IP from the block log, active block list and user list', |
1997 | 1997 | 'badipaddress' => 'Invalid IP address', |
1998 | 1998 | 'blockipsuccesssub' => 'Block succeeded', |
Index: trunk/phase3/languages/messages/MessagesDe.php |
— | — | @@ -1538,10 +1538,10 @@ |
1539 | 1539 | 'blockiptext' => 'Benutzen Sie das Formular, um einen Benutzer oder eine IP-Adresse zu sperren. |
1540 | 1540 | Dies sollte nur erfolgen, um Vandalismus zu verhindern und in Übereinstimmung mit den [[{{MediaWiki:policy-url}}|Richtlinien]]. |
1541 | 1541 | Bitte geben Sie den Grund für die Sperre an.', |
1542 | | -'ipaddress' => 'IP-Adresse oder Benutzername', |
1543 | | -'ipadressorusername' => 'IP-Adresse oder Benutzername', |
1544 | | -'ipbexpiry' => 'Sperrdauer', |
1545 | | -'ipbreason' => 'Begründung', |
| 1542 | +'ipaddress' => 'IP-Adresse oder Benutzername:', |
| 1543 | +'ipadressorusername' => 'IP-Adresse oder Benutzername:', |
| 1544 | +'ipbexpiry' => 'Sperrdauer:', |
| 1545 | +'ipbreason' => 'Begründung:', |
1546 | 1546 | 'ipbreasonotherlist' => 'Andere Begründung', |
1547 | 1547 | 'ipbreason-dropdown' => ' |
1548 | 1548 | * Allgemeine Sperrgründe |
— | — | @@ -1558,10 +1558,10 @@ |
1559 | 1559 | 'ipbcreateaccount' => 'Erstellung von Benutzerkonten verhindern', |
1560 | 1560 | 'ipbenableautoblock' => 'Sperre die aktuell von diesem Benutzer genutzte IP-Adresse sowie automatisch alle folgenden, von denen aus er Bearbeitungen oder das Anlegen von Benutzeraccounts versucht', |
1561 | 1561 | 'ipbsubmit' => 'IP-Adresse/Benutzer sperren', |
1562 | | -'ipbother' => 'Andere Dauer (englisch)', |
| 1562 | +'ipbother' => 'Andere Dauer (englisch):', |
1563 | 1563 | 'ipboptions' => '1 Stunde:1 hour,2 Stunden:2 hours,6 Stunden:6 hours,1 Tag:1 day,3 Tage:3 days,1 Woche:1 week,2 Wochen:2 weeks,1 Monat:1 month,3 Monate:3 months,1 Jahr:1 year,Unbeschränkt:infinite', |
1564 | 1564 | 'ipbotheroption' => 'Andere Dauer', |
1565 | | -'ipbotherreason' => 'Andere/ergänzende Begründung', |
| 1565 | +'ipbotherreason' => 'Andere/ergänzende Begründung:', |
1566 | 1566 | 'ipbhidename' => 'Benutzername/IP-Adresse im Sperr-Logbuch, der Liste aktiver Sperren und dem Benutzerverzeichnis verstecken.', |
1567 | 1567 | 'badipaddress' => 'Die IP-Adresse hat ein falsches Format.', |
1568 | 1568 | 'blockipsuccesssub' => 'Sperre erfolgreich', |