Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -228,11 +228,13 @@ |
229 | 229 | $undotext = $this->mArticle->getUndoText( $undorev, $oldrev ); |
230 | 230 | if ( $undotext === false ) { |
231 | 231 | # Warn the user that something went wrong |
232 | | - $this->editFormPageTop .= $wgOut->parse( '<div class="error mw-undo-failure">' . wfMsgNoTrans( 'undo-failure' ) . '</div>' ); |
| 232 | + $this->editFormPageTop .= $wgOut->parse( '<div class="error mw-undo-failure">' . |
| 233 | + wfMsgNoTrans( 'undo-failure' ) . '</div>', true, /* interface */true ); |
233 | 234 | } else { |
234 | 235 | $text = $undotext; |
235 | 236 | # Inform the user of our success and set an automatic edit summary |
236 | | - $this->editFormPageTop .= $wgOut->parse( '<div class="mw-undo-success">' . wfMsgNoTrans( 'undo-success' ) . '</div>' ); |
| 237 | + $this->editFormPageTop .= $wgOut->parse( '<div class="mw-undo-success">' . |
| 238 | + wfMsgNoTrans( 'undo-success' ) . '</div>', true, /* interface */true ); |
237 | 239 | $firstrev = $oldrev->getNext(); |
238 | 240 | # If we just undid one rev, use an autosummary |
239 | 241 | if ( $firstrev->mId == $undo ) { |
— | — | @@ -245,7 +247,8 @@ |
246 | 248 | // Failed basic sanity checks. |
247 | 249 | // Older revisions may have been removed since the link |
248 | 250 | // was created, or we may simply have got bogus input. |
249 | | - $this->editFormPageTop .= $wgOut->parse( '<div class="error mw-undo-norev">' . wfMsgNoTrans( 'undo-norev' ) . '</div>' ); |
| 251 | + $this->editFormPageTop .= $wgOut->parse( '<div class="error mw-undo-norev">' . |
| 252 | + wfMsgNoTrans( 'undo-norev' ) . '</div>'true, /* interface */true ); |
250 | 253 | } |
251 | 254 | } elseif ( $section != '' ) { |
252 | 255 | if ( $section == 'new' ) { |
— | — | @@ -2080,7 +2083,7 @@ |
2081 | 2084 | // string, which happens when you initially edit |
2082 | 2085 | // a category page, due to automatic preview-on-open. |
2083 | 2086 | $parsedNote = $wgOut->parse( "<div class='previewnote'>" . |
2084 | | - wfMsg( 'session_fail_preview_html' ) . "</div>" ); |
| 2087 | + wfMsg( 'session_fail_preview_html' ) . "</div>", true, /* interface */true ); |
2085 | 2088 | } |
2086 | 2089 | wfProfileOut( __METHOD__ ); |
2087 | 2090 | return $parsedNote; |
— | — | @@ -2154,7 +2157,7 @@ |
2155 | 2158 | |
2156 | 2159 | $previewhead = "<div class='previewnote'>\n" . |
2157 | 2160 | '<h2 id="mw-previewheader">' . htmlspecialchars( wfMsg( 'preview' ) ) . "</h2>" . |
2158 | | - $wgOut->parse( $note ) . $conflict . "</div>\n"; |
| 2161 | + $wgOut->parse( $note, true, /* interface */true ) . $conflict . "</div>\n"; |
2159 | 2162 | |
2160 | 2163 | $pageLang = $this->mTitle->getPageLanguage(); |
2161 | 2164 | $attribs = array( 'lang' => $pageLang->getCode(), 'dir' => $pageLang->getDir(), |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1459,7 +1459,8 @@ |
1460 | 1460 | * @param $linestart Boolean: is this the start of a line? |
1461 | 1461 | * @param $interface Boolean: use interface language ($wgLang instead of |
1462 | 1462 | * $wgContLang) while parsing language sensitive magic |
1463 | | - * words like GRAMMAR and PLURAL |
| 1463 | + * words like GRAMMAR and PLURAL. This also disables |
| 1464 | + * LanguageConverter. |
1464 | 1465 | * @param $language Language object: target language object, will override |
1465 | 1466 | * $interface |
1466 | 1467 | * @return String: HTML |