Index: trunk/phase3/skins/common/ajaxwatch.js |
— | — | @@ -12,17 +12,17 @@ |
13 | 13 | if ( action == 'watch' || action == 'unwatch' ) { |
14 | 14 | // save the accesskey from the title |
15 | 15 | var keyCommand = $link.attr( 'title' ).match( /\[.*?\]$/ ) ? $link.attr( 'title' ).match( /\[.*?\]$/ )[0] : ''; |
16 | | - $link.attr( 'title', mediaWiki.message( 'tooltip-ca-' + action ) + ' ' + keyCommand ); |
| 16 | + $link.attr( 'title', mediaWiki.msg( 'tooltip-ca-' + action ) + ' ' + keyCommand ); |
17 | 17 | } |
18 | 18 | if ( $link.data( 'icon' ) ) { |
19 | | - $link.attr( 'alt', mediaWiki.message( action ) ); |
| 19 | + $link.attr( 'alt', mediaWiki.msg( action ) ); |
20 | 20 | if ( action == 'watching' || action == 'unwatching' ) { |
21 | 21 | $link.addClass( 'loading' ); |
22 | 22 | } else { |
23 | 23 | $link.removeClass( 'loading' ); |
24 | 24 | } |
25 | 25 | } else { |
26 | | - $link.html( mediaWiki.message( action ) ); |
| 26 | + $link.html( mediaWiki.msg( action ) ); |
27 | 27 | } |
28 | 28 | }; |
29 | 29 | |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | if( $link.parents( 'li' ).attr( 'id' ) == 'ca-' + action ) { |
112 | 112 | $link.parents( 'li' ).attr( 'id', 'ca-' + otheraction ); |
113 | 113 | // update the link text with the new message |
114 | | - $link.text( mediaWiki.message( otheraction ) ); |
| 114 | + $link.text( mediaWiki.msg( otheraction ) ); |
115 | 115 | } |
116 | 116 | }; |
117 | 117 | return false; |
Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | toggleLink.href = '#'; |
158 | 158 | addClickHandler( toggleLink, function( evt ) { toggleToc(); return killEvt( evt ); } ); |
159 | 159 | |
160 | | - toggleLink.appendChild( document.createTextNode( mediaWiki.message( 'hidetoc' ) ) ); |
| 160 | + toggleLink.appendChild( document.createTextNode( mediaWiki.msg( 'hidetoc' ) ) ); |
161 | 161 | |
162 | 162 | outerSpan.appendChild( document.createTextNode( '[' ) ); |
163 | 163 | outerSpan.appendChild( toggleLink ); |
— | — | @@ -198,12 +198,12 @@ |
199 | 199 | var toggleLink = document.getElementById( 'togglelink' ); |
200 | 200 | |
201 | 201 | if ( toc && toggleLink && toc.style.display == 'none' ) { |
202 | | - changeText( toggleLink, mediaWiki.message( 'hidetoc' ) ); |
| 202 | + changeText( toggleLink, mediaWiki.msg( 'hidetoc' ) ); |
203 | 203 | toc.style.display = 'block'; |
204 | 204 | document.cookie = "hidetoc=0"; |
205 | 205 | tocmain.className = 'toc'; |
206 | 206 | } else { |
207 | | - changeText( toggleLink, mediaWiki.message( 'showtoc' ) ); |
| 207 | + changeText( toggleLink, mediaWiki.msg( 'showtoc' ) ); |
208 | 208 | toc.style.display = 'none'; |
209 | 209 | document.cookie = "hidetoc=1"; |
210 | 210 | tocmain.className = 'toc tochidden'; |
Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | Message.prototype.toString = function() { |
144 | 144 | if ( !this.map.exists( this.key ) ) { |
145 | 145 | // Return <key> if key does not exist |
146 | | - return '<' + key + '>'; |
| 146 | + return '<' + this.key + '>'; |
147 | 147 | } |
148 | 148 | var text = this.map.get( this.key ); |
149 | 149 | var parameters = this.parameters; |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | * replacement |
248 | 248 | */ |
249 | 249 | this.msg = function( key, parameters ) { |
250 | | - return mediaWiki.message.apply( mediaWiki.message, arguments ); |
| 250 | + return mediaWiki.message.apply( mediaWiki.message, arguments ).toString(); |
251 | 251 | }; |
252 | 252 | |
253 | 253 | /** |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | </fieldset>', |
318 | 318 | init: function() { |
319 | 319 | $(this).find( '[rel]' ).each( function() { |
320 | | - $(this).text( mediaWiki.message( $(this).attr( 'rel' ) ) ); |
| 320 | + $(this).text( mediaWiki.msg( $(this).attr( 'rel' ) ) ); |
321 | 321 | } ); |
322 | 322 | }, |
323 | 323 | dialog: { |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js |
— | — | @@ -114,10 +114,10 @@ |
115 | 115 | configuration.title = $.wikiEditor.autoMsg( module, 'title' ); |
116 | 116 | // Transform messages in keys |
117 | 117 | // Stupid JS won't let us do stuff like |
118 | | - // foo = { mediaWiki.message( 'bar' ): baz } |
| 118 | + // foo = { mediaWiki.msg( 'bar' ): baz } |
119 | 119 | configuration.newButtons = {}; |
120 | 120 | for ( msg in configuration.buttons ) |
121 | | - configuration.newButtons[mediaWiki.message( msg )] = configuration.buttons[msg]; |
| 121 | + configuration.newButtons[mediaWiki.msg( msg )] = configuration.buttons[msg]; |
122 | 122 | configuration.buttons = configuration.newButtons; |
123 | 123 | // Create the dialog <div> |
124 | 124 | var dialogDiv = $( '<div />' ) |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | return false; |
117 | 117 | }, |
118 | 118 | /** |
119 | | - * Provides a way to extract messages from objects. Wraps the mediaWiki.message() function, which |
| 119 | + * Provides a way to extract messages from objects. Wraps the mediaWiki.msg() function, which |
120 | 120 | * may eventually become a wrapper for some kind of core MW functionality. |
121 | 121 | * |
122 | 122 | * @param object Object to extract messages from |
— | — | @@ -139,9 +139,9 @@ |
140 | 140 | } else if ( property + 'Msg' in object ) { |
141 | 141 | var p = object[property + 'Msg']; |
142 | 142 | if ( $.isArray( p ) && p.length >= 2 ) { |
143 | | - return mediaWiki.message.apply( p ).toString(); |
| 143 | + return mediaWiki.msg.apply( mediaWiki.msg, p ); |
144 | 144 | } else { |
145 | | - return mediaWiki.message( p ).toString(); |
| 145 | + return mediaWiki.msg( p ); |
146 | 146 | } |
147 | 147 | } else { |
148 | 148 | return ''; |
— | — | @@ -542,7 +542,7 @@ |
543 | 543 | /* Disabling our loading div for now |
544 | 544 | var $loader = $( '<div></div>' ) |
545 | 545 | .addClass( 'wikiEditor-ui-loading' ) |
546 | | - .append( $( '<span>' + mediaWiki.message( 'wikieditor-loading' ) + '</span>' ) |
| 546 | + .append( $( '<span>' + mediaWiki.msg( 'wikieditor-loading' ) + '</span>' ) |
547 | 547 | .css( 'marginTop', context.$textarea.height() / 2 ) ); |
548 | 548 | */ |
549 | 549 | // Encapsulate the textarea with some containers for layout |
Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js |
— | — | @@ -221,18 +221,18 @@ |
222 | 222 | }); |
223 | 223 | // Set labels of tabs based on rel values |
224 | 224 | $(this).find( '[rel]' ).each( function() { |
225 | | - $(this).text( mediaWiki.message( $(this).attr( 'rel' ) ) ); |
| 225 | + $(this).text( mediaWiki.msg( $(this).attr( 'rel' ) ) ); |
226 | 226 | }); |
227 | 227 | // Set tabindexes on form fields |
228 | 228 | $.wikiEditor.modules.dialogs.fn.setTabindexes( $(this).find( 'input' ).not( '[tabindex]' ) ); |
229 | 229 | // Setup the tooltips in the textboxes |
230 | 230 | $( '#wikieditor-toolbar-link-int-target' ) |
231 | | - .data( 'tooltip', mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-tooltip' ) ); |
| 231 | + .data( 'tooltip', mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-tooltip' ) ); |
232 | 232 | $( '#wikieditor-toolbar-link-int-text' ) |
233 | | - .data( 'tooltip', mediaWiki.message( 'wikieditor-toolbar-tool-link-int-text-tooltip' ) ); |
| 233 | + .data( 'tooltip', mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-text-tooltip' ) ); |
234 | 234 | $( '#wikieditor-toolbar-link-int-target, #wikieditor-toolbar-link-int-text' ) |
235 | 235 | .each( function() { |
236 | | - var tooltip = mediaWiki.message( $( this ).attr( 'id' ) + '-tooltip' ); |
| 236 | + var tooltip = mediaWiki.msg( $( this ).attr( 'id' ) + '-tooltip' ); |
237 | 237 | if ( $( this ).val() == '' ) |
238 | 238 | $( this ) |
239 | 239 | .addClass( 'wikieditor-toolbar-dialog-hint' ) |
— | — | @@ -301,11 +301,11 @@ |
302 | 302 | }); |
303 | 303 | // Add images to the page existence widget, which will be shown mutually exclusively to communicate if |
304 | 304 | // the page exists, does not exist or the title is invalid (like if it contains a | character) |
305 | | - var existsMsg = mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-status-exists' ); |
306 | | - var notexistsMsg = mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-status-notexists' ); |
307 | | - var invalidMsg = mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-status-invalid' ); |
308 | | - var externalMsg = mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-status-external' ); |
309 | | - var loadingMsg = mediaWiki.message( 'wikieditor-toolbar-tool-link-int-target-status-loading' ); |
| 305 | + var existsMsg = mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-status-exists' ); |
| 306 | + var notexistsMsg = mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-status-notexists' ); |
| 307 | + var invalidMsg = mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-status-invalid' ); |
| 308 | + var externalMsg = mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-status-external' ); |
| 309 | + var loadingMsg = mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-target-status-loading' ); |
310 | 310 | $( '#wikieditor-toolbar-link-int-target-status' ) |
311 | 311 | .append( $( '<div />' ) |
312 | 312 | .attr( 'id', 'wikieditor-toolbar-link-int-target-status-exists' ) |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | if ( $( '#wikieditor-toolbar-link-int-text' ).data( 'tooltip-mode' ) ) |
425 | 425 | text = ""; |
426 | 426 | if ( target == '' ) { |
427 | | - alert( mediaWiki.message( 'wikieditor-toolbar-tool-link-empty' ) ); |
| 427 | + alert( mediaWiki.msg( 'wikieditor-toolbar-tool-link-empty' ) ); |
428 | 428 | return; |
429 | 429 | } |
430 | 430 | if ( $.trim( text ) == '' ) { |
— | — | @@ -435,7 +435,7 @@ |
436 | 436 | // FIXME: Exactly how fragile is this? |
437 | 437 | if ( $( '#wikieditor-toolbar-link-int-target-status-invalid' ).is( ':visible' ) ) { |
438 | 438 | // Refuse to add links to invalid titles |
439 | | - alert( mediaWiki.message( 'wikieditor-toolbar-tool-link-int-invalid' ) ); |
| 439 | + alert( mediaWiki.msg( 'wikieditor-toolbar-tool-link-int-invalid' ) ); |
440 | 440 | return; |
441 | 441 | } |
442 | 442 | |
— | — | @@ -453,12 +453,12 @@ |
454 | 454 | if ( match && !$(this).data( 'ignoreLooksInternal' ) ) { |
455 | 455 | var buttons = { }; |
456 | 456 | var that = this; |
457 | | - buttons[ mediaWiki.message( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] = |
| 457 | + buttons[ mediaWiki.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] = |
458 | 458 | function() { |
459 | 459 | $( '#wikieditor-toolbar-link-int-target' ).val( match[1] ).change(); |
460 | 460 | $(this).dialog( 'close' ); |
461 | 461 | }; |
462 | | - buttons[ mediaWiki.message( 'wikieditor-toolbar-tool-link-lookslikeinternal-ext' ) ] = |
| 462 | + buttons[ mediaWiki.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-ext' ) ] = |
463 | 463 | function() { |
464 | 464 | $(that).data( 'ignoreLooksInternal', true ); |
465 | 465 | $(that).closest( '.ui-dialog' ).find( 'button:first' ).click(); |
— | — | @@ -466,7 +466,7 @@ |
467 | 467 | $(this).dialog( 'close' ); |
468 | 468 | }; |
469 | 469 | $.wikiEditor.modules.dialogs.quickDialog( |
470 | | - mediaWiki.message( 'wikieditor-toolbar-tool-link-lookslikeinternal', match[1] ), |
| 470 | + mediaWiki.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal', match[1] ), |
471 | 471 | { buttons: buttons } |
472 | 472 | ); |
473 | 473 | return; |
— | — | @@ -615,7 +615,7 @@ |
616 | 616 | init: function() { |
617 | 617 | // Insert translated strings into labels |
618 | 618 | $( this ).find( '[rel]' ).each( function() { |
619 | | - $( this ).text( mediaWiki.message( $( this ).attr( 'rel' ) ) ); |
| 619 | + $( this ).text( mediaWiki.msg( $( this ).attr( 'rel' ) ) ); |
620 | 620 | } ); |
621 | 621 | |
622 | 622 | }, |
— | — | @@ -759,7 +759,7 @@ |
760 | 760 | </div></div>', |
761 | 761 | init: function() { |
762 | 762 | $(this).find( '[rel]' ).each( function() { |
763 | | - $(this).text( mediaWiki.message( $(this).attr( 'rel' ) ) ); |
| 763 | + $(this).text( mediaWiki.msg( $(this).attr( 'rel' ) ) ); |
764 | 764 | }); |
765 | 765 | // Set tabindexes on form fields |
766 | 766 | $.wikiEditor.modules.dialogs.fn.setTabindexes( $(this).find( 'input' ).not( '[tabindex]' ) ); |
— | — | @@ -820,19 +820,19 @@ |
821 | 821 | var cols = parseInt( colsVal, 10 ); |
822 | 822 | var header = $( '#wikieditor-toolbar-table-dimensions-header' ).is( ':checked' ) ? 1 : 0; |
823 | 823 | if ( isNaN( rows ) || isNaN( cols ) || rows != rowsVal || cols != colsVal ) { |
824 | | - alert( mediaWiki.message( 'wikieditor-toolbar-tool-table-invalidnumber' ) ); |
| 824 | + alert( mediaWiki.msg( 'wikieditor-toolbar-tool-table-invalidnumber' ) ); |
825 | 825 | return; |
826 | 826 | } |
827 | 827 | if ( rows + header == 0 || cols == 0 ) { |
828 | | - alert( mediaWiki.message( 'wikieditor-toolbar-tool-table-zero' ) ); |
| 828 | + alert( mediaWiki.msg( 'wikieditor-toolbar-tool-table-zero' ) ); |
829 | 829 | return; |
830 | 830 | } |
831 | 831 | if ( rows * cols > 1000 ) { |
832 | | - alert( mediaWiki.message( 'wikieditor-toolbar-tool-table-toomany', 1000 ) ); |
| 832 | + alert( mediaWiki.msg( 'wikieditor-toolbar-tool-table-toomany', 1000 ) ); |
833 | 833 | return; |
834 | 834 | } |
835 | | - var headerText = mediaWiki.message( 'wikieditor-toolbar-tool-table-example-header' ); |
836 | | - var normalText = mediaWiki.message( 'wikieditor-toolbar-tool-table-example' ); |
| 835 | + var headerText = mediaWiki.msg( 'wikieditor-toolbar-tool-table-example-header' ); |
| 836 | + var normalText = mediaWiki.msg( 'wikieditor-toolbar-tool-table-example' ); |
837 | 837 | var table = ""; |
838 | 838 | for ( var r = 0; r < rows + header; r++ ) { |
839 | 839 | table += "|-\n"; |
— | — | @@ -956,7 +956,7 @@ |
957 | 957 | </fieldset>', |
958 | 958 | init: function() { |
959 | 959 | $(this).find( '[rel]' ).each( function() { |
960 | | - $(this).text( mediaWiki.message( $(this).attr( 'rel' ) ) ); |
| 960 | + $(this).text( mediaWiki.msg( $(this).attr( 'rel' ) ) ); |
961 | 961 | }); |
962 | 962 | // Set tabindexes on form fields |
963 | 963 | $.wikiEditor.modules.dialogs.fn.setTabindexes( $(this).find( 'input' ).not( '[tabindex]' ) ); |
— | — | @@ -986,7 +986,7 @@ |
987 | 987 | var regex = new RegExp( searchStr, flags ); |
988 | 988 | } catch( e ) { |
989 | 989 | $( '#wikieditor-toolbar-replace-invalidregex' ) |
990 | | - .text( mediaWiki.message( 'wikieditor-toolbar-tool-replace-invalidregex', |
| 990 | + .text( mediaWiki.msg( 'wikieditor-toolbar-tool-replace-invalidregex', |
991 | 991 | e.message ) ) |
992 | 992 | .show(); |
993 | 993 | return; |
— | — | @@ -1040,7 +1040,7 @@ |
1041 | 1041 | offset = newEnd; |
1042 | 1042 | } |
1043 | 1043 | $( '#wikieditor-toolbar-replace-success' ) |
1044 | | - .text( mediaWiki.message( 'wikieditor-toolbar-tool-replace-success', match.length ) ) |
| 1044 | + .text( mediaWiki.msg( 'wikieditor-toolbar-tool-replace-success', match.length ) ) |
1045 | 1045 | .show(); |
1046 | 1046 | $(this).data( 'offset', 0 ); |
1047 | 1047 | } else { |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.publish.js |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | </div>', |
65 | 65 | init: function() { |
66 | 66 | $(this).find( '[rel]' ).each( function() { |
67 | | - $(this).text( mediaWiki.message( $(this).attr( 'rel' ) ) ); |
| 67 | + $(this).text( mediaWiki.msg( $(this).attr( 'rel' ) ) ); |
68 | 68 | }); |
69 | 69 | |
70 | 70 | /* REALLY DIRTY HACK! */ |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | } |
136 | 136 | } ); |
137 | 137 | |
138 | | - var loadingMsg = mediaWiki.message( 'wikieditor-preview-loading' ); |
| 138 | + var loadingMsg = mediaWiki.msg( 'wikieditor-preview-loading' ); |
139 | 139 | context.modules.preview.$preview |
140 | 140 | .add( context.$changesTab ) |
141 | 141 | .append( $( '<div />' ) |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toc.js |
— | — | @@ -510,7 +510,7 @@ |
511 | 511 | return false; |
512 | 512 | } ) |
513 | 513 | .find( 'a' ) |
514 | | - .text( mediaWiki.message( 'wikieditor-toc-hide' ) ); |
| 514 | + .text( mediaWiki.msg( 'wikieditor-toc-hide' ) ); |
515 | 515 | $expandControl |
516 | 516 | .addClass( 'wikiEditor-ui-toc-expandControl' ) |
517 | 517 | .append( '<a href="#" />' ) |
— | — | @@ -527,7 +527,7 @@ |
528 | 528 | } ) |
529 | 529 | .hide() |
530 | 530 | .find( 'a' ) |
531 | | - .text( mediaWiki.message( 'wikieditor-toc-show' ) ); |
| 531 | + .text( mediaWiki.msg( 'wikieditor-toc-show' ) ); |
532 | 532 | $collapseControl.insertBefore( context.modules.toc.$toc ); |
533 | 533 | context.$ui.find( '.wikiEditor-ui-left .wikiEditor-ui-top' ).append( $expandControl ); |
534 | 534 | } |
Index: trunk/extensions/Vector/modules/ext.vector.editWarning.js |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | $( '#wpSummary' ).data( 'origtext' ) != $( '#wpSummary' ).val() |
37 | 37 | ) { |
38 | 38 | // Return our message |
39 | | - retval = mediaWiki.message( 'vector-editwarning-warning' ); |
| 39 | + retval = mediaWiki.msg( 'vector-editwarning-warning' ); |
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
Index: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | // Placeholder text for SimpleSearch box |
39 | | - $( 'div#simpleSearch > input#searchInput' ).placeholder( mediaWiki.message( 'vector-simplesearch-search' ) ); |
| 39 | + $( 'div#simpleSearch > input#searchInput' ).placeholder( mediaWiki.msg( 'vector-simplesearch-search' ) ); |
40 | 40 | |
41 | 41 | // General suggestions functionality for all search boxes |
42 | 42 | $( '#searchInput, #searchInput2, #powerSearchText, #searchText' ) |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | $(this).show() |
94 | 94 | $label = $( '<div />' ) |
95 | 95 | .addClass( 'special-label' ) |
96 | | - .text( mediaWiki.message( 'vector-simplesearch-containing' ).toString() ) |
| 96 | + .text( mediaWiki.msg( 'vector-simplesearch-containing' ) ) |
97 | 97 | .appendTo( $(this) ); |
98 | 98 | $query = $( '<div />' ) |
99 | 99 | .addClass( 'special-query' ) |
Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | pageBody = text; |
53 | 53 | pageFooter = proofreadPageFooter; |
54 | 54 | if( document.editform ) { |
55 | | - document.editform.elements['wpSummary'].value = '/* ' + mediaWiki.message( 'proofreadpage_quality1_category' ) + ' */ '; |
| 55 | + document.editform.elements['wpSummary'].value = '/* ' + mediaWiki.msg( 'proofreadpage_quality1_category' ) + ' */ '; |
56 | 56 | } |
57 | 57 | } |
58 | 58 | } |
— | — | @@ -125,15 +125,15 @@ |
126 | 126 | container.innerHTML = '' + |
127 | 127 | '<div id="prp_header" style="">' + |
128 | 128 | '<span style="color:gray;font-size:80%;line-height:100%;">' + |
129 | | - escapeQuotesHTML( mediaWiki.message( 'proofreadpage_header' ) ) + '</span>' + |
| 129 | + escapeQuotesHTML( mediaWiki.msg( 'proofreadpage_header' ) ) + '</span>' + |
130 | 130 | '<textarea name="wpHeaderTextbox" rows="2" cols="80" tabindex=1>' + pageHeader + '</textarea><br />' + |
131 | 131 | '<span style="color:gray;font-size:80%;line-height:100%;">' + |
132 | | - escapeQuotesHTML( mediaWiki.message( 'proofreadpage_body' ) ) + '</span></div>' + |
| 132 | + escapeQuotesHTML( mediaWiki.msg( 'proofreadpage_body' ) ) + '</span></div>' + |
133 | 133 | '<textarea name="wpTextbox1" id="wpTextbox1" tabindex=1 style="height:' + ( self.DisplayHeight - 6 ) + 'px;">' + |
134 | 134 | pageBody + '</textarea>' + |
135 | 135 | '<div id="prp_footer" style="">' + |
136 | 136 | '<span style="color:gray;font-size:80%;line-height:100%;">' + |
137 | | - escapeQuotesHTML( mediaWiki.message( 'proofreadpage_footer' ) ) + '</span><br />' + |
| 137 | + escapeQuotesHTML( mediaWiki.msg( 'proofreadpage_footer' ) ) + '</span><br />' + |
138 | 138 | '<textarea name="wpFooterTextbox" rows="2" cols="80" tabindex=1>' + |
139 | 139 | pageFooter + '</textarea></div>'; |
140 | 140 | } |
— | — | @@ -775,8 +775,8 @@ |
776 | 776 | image.className = 'mw-toolbar-editbutton'; |
777 | 777 | image.src = wgScriptPath + '/extensions/ProofreadPage/button_category_plus.png'; |
778 | 778 | image.border = 0; |
779 | | - image.alt = mediaWiki.message( 'proofreadpage_toggleheaders' ); |
780 | | - image.title = mediaWiki.message( 'proofreadpage_toggleheaders' ); |
| 779 | + image.alt = mediaWiki.msg( 'proofreadpage_toggleheaders' ); |
| 780 | + image.title = mediaWiki.msg( 'proofreadpage_toggleheaders' ); |
781 | 781 | image.style.cursor = 'pointer'; |
782 | 782 | image.onclick = pr_toggle_visibility; |
783 | 783 | |
— | — | @@ -919,19 +919,19 @@ |
920 | 920 | var text = ''; |
921 | 921 | switch( value ) { |
922 | 922 | case 0: |
923 | | - text = mediaWiki.message( 'proofreadpage_quality0_category' ); |
| 923 | + text = mediaWiki.msg( 'proofreadpage_quality0_category' ); |
924 | 924 | break; |
925 | 925 | case 1: |
926 | | - text = mediaWiki.message( 'proofreadpage_quality1_category' ); |
| 926 | + text = mediaWiki.msg( 'proofreadpage_quality1_category' ); |
927 | 927 | break; |
928 | 928 | case 2: |
929 | | - text = mediaWiki.message( 'proofreadpage_quality2_category' ); |
| 929 | + text = mediaWiki.msg( 'proofreadpage_quality2_category' ); |
930 | 930 | break; |
931 | 931 | case 3: |
932 | | - text = mediaWiki.message( 'proofreadpage_quality3_category' ); |
| 932 | + text = mediaWiki.msg( 'proofreadpage_quality3_category' ); |
933 | 933 | break; |
934 | 934 | case 4: |
935 | | - text = mediaWiki.message( 'proofreadpage_quality4_category' ); |
| 935 | + text = mediaWiki.msg( 'proofreadpage_quality4_category' ); |
936 | 936 | break; |
937 | 937 | } |
938 | 938 | form.elements['wpSummary'].value = '/* ' + text + ' */ '; |
— | — | @@ -963,7 +963,7 @@ |
964 | 964 | +'<span class="quality1"> <input type="radio" name="quality" value=1 onclick="pr_add_quality(this.form,1)" tabindex=4> </span>' |
965 | 965 | +'<span class="quality3"> <input type="radio" name="quality" value=3 onclick="pr_add_quality(this.form,3)" tabindex=4> </span>' |
966 | 966 | +'<span class="quality4"> <input type="radio" name="quality" value=4 onclick="pr_add_quality(this.form,4)" tabindex=4> </span>'; |
967 | | - f.innerHTML = f.innerHTML + ' ' + escapeQuotesHTML( mediaWiki.message( 'proofreadpage_page_status' ) ); |
| 967 | + f.innerHTML = f.innerHTML + ' ' + escapeQuotesHTML( mediaWiki.msg( 'proofreadpage_page_status' ) ); |
968 | 968 | |
969 | 969 | if( !( ( self.proofreadpage_quality == 4 ) || ( ( self.proofreadpage_quality == 3 ) && ( self.proofreadpage_username != proofreadPageUserName ) ) ) ) { |
970 | 970 | document.editform.quality[4].parentNode.style.cssText = 'display:none'; |