Index: trunk/phase3/resources/mediawiki/mediawiki.feedback.js |
— | — | @@ -19,8 +19,8 @@ |
20 | 20 | |
21 | 21 | // Set up buttons for dialog box. We have to do it the hard way since the json keys are localized |
22 | 22 | _this.buttons = {}; |
23 | | - _this.buttons[ gM( 'mwe-upwiz-feedback-cancel' ) ] = function() { _this.cancel(); }; |
24 | | - _this.buttons[ gM( 'mwe-upwiz-feedback-submit' ) ] = function() { _this.submit(); }; |
| 23 | + _this.buttons[ mw.msg( 'mwe-upwiz-feedback-cancel' ) ] = function() { _this.cancel(); }; |
| 24 | + _this.buttons[ mw.msg( 'mwe-upwiz-feedback-submit' ) ] = function() { _this.submit(); }; |
25 | 25 | |
26 | 26 | var $feedbackPageLink = $j( '<a></a>' ).attr( { 'href': _this.feedbackTitle.getUrl(), 'target': '_blank' } ); |
27 | 27 | this.$dialog = |
— | — | @@ -32,18 +32,18 @@ |
33 | 33 | $feedbackPageLink ) |
34 | 34 | ), |
35 | 35 | $( '<div style="margin-top:1em;"></div>' ).append( |
36 | | - gM( 'mwe-upwiz-feedback-subject' ), |
| 36 | + mw.msg( 'mwe-upwiz-feedback-subject' ), |
37 | 37 | $( '<br/>' ), |
38 | 38 | $( '<input type="text" class="mwe-upwiz-feedback-subject" name="subject" maxlength="60" style="width:99%;"/>' ) |
39 | 39 | ), |
40 | 40 | $( '<div style="margin-top:0.4em;"></div>' ).append( |
41 | | - gM( 'mwe-upwiz-feedback-message' ), |
| 41 | + mw.msg( 'mwe-upwiz-feedback-message' ), |
42 | 42 | $( '<br/>' ), |
43 | 43 | $( '<textarea name="message" class="mwe-upwiz-feedback-message" style="width:99%;" rows="5" cols="60"></textarea>' ) |
44 | 44 | ) |
45 | 45 | ), |
46 | 46 | $( '<div class="mwe-upwiz-feedback-mode mwe-upwiz-feedback-submitting" style="text-align:center;margin:3em 0;"></div>' ).append( |
47 | | - gM( 'mwe-upwiz-feedback-adding' ), |
| 47 | + mw.msg( 'mwe-upwiz-feedback-adding' ), |
48 | 48 | $( '<br/>' ), |
49 | 49 | $( '<img src="http://upload.wikimedia.org/wikipedia/commons/4/42/Loading.gif" />' ) |
50 | 50 | ), |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | ).dialog({ |
56 | 56 | width: 500, |
57 | 57 | autoOpen: false, |
58 | | - title: gM( 'mwe-upwiz-feedback-title' ), |
| 58 | + title: mw.msg( 'mwe-upwiz-feedback-title' ), |
59 | 59 | modal: true, |
60 | 60 | buttons: _this.buttons |
61 | 61 | }); |