This avoids outputing bunch of unhelpful (parentheses) messages.
Change-Id: I55fab4f132f28be3fe7e4bc8f51d403b11d24284
return '<' . $key . '>';
}
return '<' . $key . '>';
}
+ # Replace $* with a list of parameters for &uselang=qqx.
+ if ( strpos( $string, '$*' ) !== false ) {
+ $paramlist = '';
+ if ( $this->parameters !== array() ) {
+ $paramlist = ': $' . implode( ', $', range( 1, count( $this->parameters ) ) );
+ }
+ $string = str_replace( '$*', $paramlist, $string );
+ }
+
# Replace parameters before text parsing
$string = $this->replaceParameters( $string, 'before' );
# Replace parameters before text parsing
$string = $this->replaceParameters( $string, 'before' );
* @return string
*/
function getMessage( $key ) {
* @return string
*/
function getMessage( $key ) {