Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1939,10 +1939,11 @@ |
1940 | 1940 | 'import', |
1941 | 1941 | 'importinterwiki', |
1942 | 1942 | 'import-interwiki-text', |
| 1943 | + 'import-interwiki-source', |
1943 | 1944 | 'import-interwiki-history', |
1944 | 1945 | 'import-interwiki-submit', |
1945 | 1946 | 'import-interwiki-namespace', |
1946 | | - 'import-upload-comment', |
| 1947 | + 'import-upload-filename', |
1947 | 1948 | 'import-comment', |
1948 | 1949 | 'importtext', |
1949 | 1950 | 'importstart', |
Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -141,19 +141,25 @@ |
142 | 142 | Xml::openElement( 'table', array( 'id' => 'mw-import-table' ) ) . |
143 | 143 | |
144 | 144 | "<tr> |
145 | | - <td>" . |
146 | | - Xml::input( 'xmlimport', 50, '', array( 'type' => 'file' ) ) . ' ' . |
| 145 | + <td class='mw-label'>" . |
| 146 | + Xml::label( wfMsg( 'import-upload-filename' ), 'xmlimport' ) . |
147 | 147 | "</td> |
| 148 | + <td class='mw-input'>" . |
| 149 | + Xml::input( 'xmlimport', 50, '', array( 'type' => 'file' ) ) . ' ' . |
| 150 | + "</td> |
148 | 151 | </tr> |
149 | 152 | <tr> |
150 | | - <td>" . |
151 | | - Xml::label( wfMsg('import-upload-comment'), 'log-comment' ) . |
152 | | - Xml::input( 'log-comment', 50, '', array( 'id' => 'log-comment', 'type' => 'text' ) ) . ' ' . |
| 153 | + <td class='mw-label'>" . |
| 154 | + Xml::label( wfMsg( 'import-comment' ), 'log-comment' ) . |
153 | 155 | "</td> |
| 156 | + <td class='mw-input'>" . |
| 157 | + Xml::input( 'log-comment', 50, '', array( 'id' => 'log-comment', 'type' => 'text' ) ) . ' ' . |
| 158 | + "</td> |
154 | 159 | </tr> |
155 | 160 | <tr> |
156 | | - <td>" . |
157 | | - Xml::submitButton( wfMsg( 'uploadbtn' ) ) . |
| 161 | + <td></td> |
| 162 | + <td class='mw-input'>" . |
| 163 | + Xml::submitButton( wfMsg( 'uploadbtn' ) ) . |
158 | 164 | "</td> |
159 | 165 | </tr>" . |
160 | 166 | Xml::closeElement( 'table' ). |
— | — | @@ -178,7 +184,10 @@ |
179 | 185 | Xml::hidden( 'editToken', $wgUser->editToken() ) . |
180 | 186 | Xml::openElement( 'table', array( 'id' => 'mw-import-table' ) ) . |
181 | 187 | "<tr> |
182 | | - <td>" . |
| 188 | + <td class='mw-label'>" . |
| 189 | + Xml::label( wfMsg( 'import-interwiki-source' ), 'interwiki' ) . |
| 190 | + "</td> |
| 191 | + <td class='mw-input'>" . |
183 | 192 | Xml::openElement( 'select', array( 'name' => 'interwiki' ) ) |
184 | 193 | ); |
185 | 194 | foreach( $wgImportSources as $prefix ) { |
— | — | @@ -187,38 +196,36 @@ |
188 | 197 | } |
189 | 198 | $wgOut->addHTML( |
190 | 199 | Xml::closeElement( 'select' ) . |
191 | | - "</td> |
192 | | - <td>" . |
193 | 200 | Xml::input( 'frompage', 50, $this->frompage ) . |
194 | 201 | "</td> |
195 | 202 | </tr> |
196 | 203 | <tr> |
197 | 204 | <td> |
198 | 205 | </td> |
199 | | - <td>" . |
| 206 | + <td class='mw-input'>" . |
200 | 207 | Xml::checkLabel( wfMsg( 'import-interwiki-history' ), 'interwikiHistory', 'interwikiHistory', $this->history ) . |
201 | 208 | "</td> |
202 | 209 | </tr> |
203 | 210 | <tr> |
204 | | - <td> |
205 | | - </td> |
206 | 211 | <td>" . |
207 | 212 | Xml::label( wfMsg( 'import-interwiki-namespace' ), 'namespace' ) . |
| 213 | + "</td> |
| 214 | + <td class='mw-input'>" . |
208 | 215 | Xml::namespaceSelector( $this->namespace, '' ) . |
209 | 216 | "</td> |
210 | 217 | </tr> |
211 | 218 | <tr> |
212 | | - <td>" . |
| 219 | + <td class='mw-label'>" . |
213 | 220 | Xml::label( wfMsg( 'import-comment' ), 'comment' ) . |
214 | 221 | "</td> |
215 | | - <td>" . |
| 222 | + <td class='mw-input'>" . |
216 | 223 | Xml::input( 'log-comment', 50, '', array( 'type' => 'text' ) ) . ' ' . |
217 | 224 | "</td> |
218 | 225 | </tr> |
219 | 226 | <tr> |
220 | 227 | <td> |
221 | 228 | </td> |
222 | | - <td>" . |
| 229 | + <td class='mw-input'>" . |
223 | 230 | Xml::submitButton( wfMsg( 'import-interwiki-submit' ), array( 'accesskey' => 's' ) ) . |
224 | 231 | "</td> |
225 | 232 | </tr>" . |
— | — | @@ -270,8 +277,8 @@ |
271 | 278 | if( $this->mIsUpload ) { |
272 | 279 | $detail = wfMsgExt( 'import-logentry-upload-detail', array( 'content', 'parsemag' ), |
273 | 280 | $contentCount ); |
274 | | - if ($this->reason) { |
275 | | - $detail .= ' (' . $this->reason .')'; |
| 281 | + if ( $this->reason ) { |
| 282 | + $detail .= wfMsgForContent( 'colon-separator' ) . $this->reason; |
276 | 283 | } |
277 | 284 | $log->addEntry( 'upload', $title, $detail ); |
278 | 285 | } else { |
— | — | @@ -279,8 +286,8 @@ |
280 | 287 | $origTitle->getPrefixedText() . ']]'; |
281 | 288 | $detail = wfMsgExt( 'import-logentry-interwiki-detail', array( 'content', 'parsemag' ), |
282 | 289 | $contentCount, $interwiki ); |
283 | | - if ($this->reason) { |
284 | | - $detail .= ' (' . $this->reason .')'; |
| 290 | + if ( $this->reason ) { |
| 291 | + $detail .= wfMsgForContent( 'colon-separator' ) . $this->reason; |
285 | 292 | } |
286 | 293 | $log->addEntry( 'interwiki', $title, $detail ); |
287 | 294 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2788,10 +2788,11 @@ |
2789 | 2789 | 'import-interwiki-text' => "Select a wiki and page title to import. |
2790 | 2790 | Revision dates and editors' names will be preserved. |
2791 | 2791 | All transwiki import actions are logged at the [[Special:Log/import|import log]].", |
| 2792 | +'import-interwiki-source' => 'Source wiki/page:', |
2792 | 2793 | 'import-interwiki-history' => 'Copy all history versions for this page', |
2793 | 2794 | 'import-interwiki-submit' => 'Import', |
2794 | | -'import-interwiki-namespace' => 'Transfer pages into namespace:', |
2795 | | -'import-upload-comment' => 'Comment:', |
| 2795 | +'import-interwiki-namespace' => 'Destination namespace:', |
| 2796 | +'import-upload-filename' => 'Filename:', |
2796 | 2797 | 'import-comment' => 'Comment:', |
2797 | 2798 | 'importtext' => 'Please export the file from the source wiki using the [[Special:Export|export utility]]. |
2798 | 2799 | Save it to your computer and upload it here.', |