Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -65,13 +65,14 @@ |
66 | 66 | * (bug 29109) Allow the automatic edit summary for redirect creation |
67 | 67 | show the first bit of the new redirect page. |
68 | 68 | * (bug 5800) Added $formCallback as a parameter to the hook |
69 | | - EditPage::showEditForm:initial |
| 69 | + EditPage::showEditForm:initial. |
70 | 70 | * (bug 29723) mw.util.wikiGetlink() now defaults to wgPageName. |
71 | 71 | * (bug 29680) Add GetDefaultSortkey hook to override the default sortkey. |
72 | 72 | * (bug 16699) {{#language:}} accepts second parameter to specify the language in |
73 | 73 | which the language name is wanted. Coverage depends on the cldr extension. |
74 | 74 | * (bug 15802) An easy way to look up messages: language qqx which returns |
75 | | - the message keys |
| 75 | + the message keys. |
| 76 | +* (bug 29868) Add support for passing parameters to mw.msg in jquery.localize. |
76 | 77 | |
77 | 78 | === Bug fixes in 1.19 === |
78 | 79 | * (bug 28868) Show total pages in the subtitle of an image on the |
Index: trunk/phase3/resources/jquery/jquery.localize.js |
— | — | @@ -32,9 +32,9 @@ |
33 | 33 | */ |
34 | 34 | |
35 | 35 | $.fn.localize = function( options ) { |
36 | | - options = $.extend( { 'prefix': '', 'keys': {} }, options ); |
| 36 | + options = $.extend( { 'prefix': '', 'keys': {}, 'params': {} }, options ); |
37 | 37 | function msg( key ) { |
38 | | - return mw.msg( options.prefix + ( key in options.keys ? options.keys[key] : key ) ) |
| 38 | + return mw.msg( options.prefix + ( key in options.keys ? options.keys[key] : key ), ( key in options.params ? options.params[key] : [] ) ) |
39 | 39 | }; |
40 | 40 | return $(this) |
41 | 41 | .find( 'msg,html\\:msg' ) |