From: Niklas Laxström Date: Fri, 18 Apr 2008 06:31:37 +0000 (+0000) Subject: * Parse messages in correct language, so plurals and grammar might even work correctly X-Git-Tag: 1.31.0-rc.0~48211 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=404e0c1a5eb496401cce1b6674d12b10cf1e67cf;p=lhc%2Fweb%2Fwiklou.git * Parse messages in correct language, so plurals and grammar might even work correctly * Deprecated one unneeded parameter in one message --- 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 ) ); } }