Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -145,13 +145,16 @@ |
146 | 146 | protected function eRadio( $name, FormOptions $opts, array $alts ) { |
147 | 147 | $value = $opts[$name]; |
148 | 148 | |
149 | | - $s = '<tr><td>' . $this->eLabel( $name ) . '</td><td>'; |
| 149 | + $label = 'translate-statsf-' . $name; |
| 150 | + $label = wfMsgExt( $label, array( 'parsemag', 'escapenoentities' ) ); |
| 151 | + $s = '<tr><td>' . $label . '</td><td>'; |
150 | 152 | |
151 | 153 | $options = array(); |
152 | 154 | foreach ( $alts as $alt ) { |
153 | | - $radio = Xml::radio( $name, $alt, $alt === $opts[$name] ) . ' '; |
154 | | - $label = wfMsgExt( "translate-statsf-$name-$alt", array( 'parsemag', 'escapenoentities' ) ); |
155 | | - $options[] = Xml::tags( 'label', null, "$radio $label" ); |
| 155 | + $id = "$name-$alt"; |
| 156 | + $radio = Xml::radio( $name, $alt, $alt === $opts[$name], |
| 157 | + array( 'id' => $id ) ) . ' '; |
| 158 | + $options[] = $radio . ' ' . $this->eLabel( $id ); |
156 | 159 | } |
157 | 160 | |
158 | 161 | $s .= Xml::tags( 'span', array( 'id' => $name ), implode( ' ', $options ) ); |