* Added $wgSend404Code, true by default, which can be set to false to send a
200 status code instead of 404 for nonexistent articles.
* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id
-* Use jqueryMsg wikitext parser to parse interface messages at client side.
- Support for PLURAL in javascript.
=== Bug fixes in 1.19 ===
* $wgUploadNavigationUrl should be used for file redlinks if.
}
return '<' + this.key + '>';
}
-
- var text = mw.jqueryMsg.getMessageFunction( )( this.key, this.parameters );
-
+ var text = this.map.get( this.key ),
+ parameters = this.parameters;
+
+ text = text.replace( /\$(\d+)/g, function ( str, match ) {
+ var index = parseInt( match, 10 ) - 1;
+ return parameters[index] !== undefined ? parameters[index] : '$' + match;
+ } );
+
if ( this.format === 'plain' ) {
return text;
}