From 404e0c1a5eb496401cce1b6674d12b10cf1e67cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 18 Apr 2008 06:31:37 +0000 Subject: [PATCH] * Parse messages in correct language, so plurals and grammar might even work correctly * Deprecated one unneeded parameter in one message --- includes/OutputPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f39e6b7367..e760d648b0 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1544,6 +1544,8 @@ class OutputPage { * The special named parameter 'options' in a message specification array is passed * through to the $options parameter of wfMsgExt(). * + * Don't use this for messages that are not in users interface language. + * * For example: * * $wgOut->wrapWikiMsg( '
$1
', 'some-error' ); @@ -1572,6 +1574,6 @@ class OutputPage { } $s = str_replace( '$' . ($n+1), wfMsgExt( $name, $options, $args ), $s ); } - $this->addHTML( $this->parse( $s ) ); + $this->addHTML( $this->parse( $s, /*linestart*/true, /*uilang*/true ) ); } } -- 2.20.1