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