Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -325,21 +325,17 @@ |
326 | 326 | if ( $this->defaults['task'] === $id ) { |
327 | 327 | return ''; |
328 | 328 | } |
329 | | - return $sep . Xml::radioLabel( |
330 | | - wfMessage( "translate-taskui-$id" )->text(), |
331 | | - 'task', $id, 'task', // Name, value, id |
332 | | - true // Selected |
| 329 | + return $sep . Html::rawElement( 'label', null, |
| 330 | + Xml::radio( 'task', $id, true ) . ' ' . |
| 331 | + wfMessage( "translate-taskui-$id" )->escaped() |
333 | 332 | ); |
334 | 333 | } else { |
335 | 334 | $output = ''; |
336 | 335 | foreach ( $tasks as $index => $id ) { |
337 | | - $output .= Xml::radioLabel( |
338 | | - wfMessage( "translate-taskui-$id" )->text(), |
339 | | - 'task', // Name |
340 | | - $id, |
341 | | - "task-$index", // id |
342 | | - $this->options['task'] === $id |
343 | | - ); |
| 336 | + $output .= Html::rawElement( 'label', null, |
| 337 | + Xml::radio( 'task', $id, $this->options['task'] === $id ) . ' ' . |
| 338 | + wfMessage( "translate-taskui-$id" )->escaped() |
| 339 | + ) . ' '; |
344 | 340 | } |
345 | 341 | return $sep . $output; |
346 | 342 | } |