Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -111,9 +111,7 @@ |
112 | 112 | $hidden[] = Html::hidden( 'format', 'json' ); |
113 | 113 | $hidden[] = Html::hidden( 'action', 'edit' ); |
114 | 114 | |
115 | | - // Allow links and "sup" in MediaWiki:Summary to work here, so do not use Xml::inputLabel(). |
116 | | - $summary = Html::rawElement( 'label', array( 'for' => 'summary' ), wfMessage( 'summary' )->text() ); |
117 | | - $summaryInput = Xml::input( 'summary', 40, false, array( 'id' => 'summary' ) ); |
| 115 | + $summary = Xml::inputLabel( wfMsg( 'summary' ), 'summary', 'summary', 40 ); |
118 | 116 | $save = Xml::submitButton( wfMsg( 'savearticle' ), array( 'class' => 'mw-translate-save' ) ); |
119 | 117 | $saveAndNext = Xml::submitButton( wfMsg( 'translate-js-next' ), array( 'class' => 'mw-translate-next' ) ); |
120 | 118 | $skip = Html::element( 'input', array( 'class' => 'mw-translate-skip', 'type' => 'button', 'value' => wfMsg( 'translate-js-skip' ) ) ); |
— | — | @@ -134,7 +132,7 @@ |
135 | 133 | $support = $this->getSupportButton( $this->getTitle() ); |
136 | 134 | |
137 | 135 | if ( $wgUser->isAllowed( 'translate' ) ) { |
138 | | - $bottom = "$summary$summaryInput$save$saveAndNext$skip$history$support"; |
| 136 | + $bottom = "$summary$save$saveAndNext$skip$history$support"; |
139 | 137 | } else { |
140 | 138 | $text = wfMessage( 'translate-edit-nopermission' )->escaped(); |
141 | 139 | $button = $this->getPermissionPageButton(); |