Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | if ( $opts['scale'] === 'hours' ) $opts->validateIntBounds( 'days', 1, 4 ); |
41 | 41 | |
42 | 42 | foreach ( array( 'group', 'language' ) as $t ) { |
43 | | - $values = array_map( 'trim', explode( ',', strtolower( $opts[$t] ) ) ); |
| 43 | + $values = array_map( 'trim', explode( ',', $opts[$t] ) ); |
44 | 44 | $values = array_splice( $values, 0, 4 ); |
45 | 45 | $opts[$t] = implode( ',', $values ); |
46 | 46 | } |
— | — | @@ -73,9 +73,9 @@ |
74 | 74 | |
75 | 75 | $wgOut->addHTML( |
76 | 76 | Xml::fieldset( wfMsg( 'translate-statsf-options' ) ) . |
77 | | - Xml::openElement( 'form', array( 'action' => $wgScript ) ) . |
78 | | - Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
79 | | - Xml::hidden( 'preview', 1 ) . |
| 77 | + Html::openElement( 'form', array( 'action' => $wgScript ) ) . |
| 78 | + Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
| 79 | + Html::hidden( 'preview', 1 ) . |
80 | 80 | '<table>' |
81 | 81 | ); |
82 | 82 | |
— | — | @@ -115,13 +115,13 @@ |
116 | 116 | $titleText = $this->getTitle()->getPrefixedText(); |
117 | 117 | |
118 | 118 | $wgOut->addHTML( |
119 | | - '<hr />' . |
120 | | - Xml::element( 'pre', null, "{{{$titleText}{$spiParams}}}" ) |
| 119 | + Html::element( 'hr' ) . |
| 120 | + Html::element( 'pre', null, "{{{$titleText}{$spiParams}}}" ) |
121 | 121 | ); |
122 | 122 | |
123 | 123 | $wgOut->addHTML( |
124 | | - '<hr />' . |
125 | | - Xml::tags( 'div', array( 'style' => 'margin: 1em auto; text-align: center;' ), $this->image( $opts ) ) |
| 124 | + Html::element( 'hr' ) . |
| 125 | + Html::rawElement( 'div', array( 'style' => 'margin: 1em auto; text-align: center;' ), $this->image( $opts ) ) |
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | $options[] = $radio . ' ' . $this->eLabel( $id ); |
157 | 157 | } |
158 | 158 | |
159 | | - $s .= Xml::tags( 'span', array( 'id' => $name ), implode( ' ', $options ) ); |
| 159 | + $s .= implode( ' ', $options ); |
160 | 160 | |
161 | 161 | $s .= '</td></tr>' . "\n"; |
162 | 162 | return $s; |
— | — | @@ -443,7 +443,7 @@ |
444 | 444 | if ( !max( $this->filters ) ) return 0; |
445 | 445 | if ( strpos( $row->rc_title, '/' ) === false ) return - 1; |
446 | 446 | |
447 | | - list( $key, $code ) = explode( '/', $wgContLang->lcfirst( $row->rc_title ), 2 ); |
| 447 | + list( $key, $code ) = TranslateUtils::figureMessage( $row->rc_title ); |
448 | 448 | $indexKey = ''; |
449 | 449 | |
450 | 450 | if ( $this->filters['group'] ) { |
— | — | @@ -468,4 +468,4 @@ |
469 | 469 | $labels = array_keys( $this->cache ); |
470 | 470 | } |
471 | 471 | } |
472 | | -} |
\ No newline at end of file |
| 472 | +} |