Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | 'moodbar-success-title' => 'Thanks!', |
52 | 52 | 'moodbar-error-title' => 'Oops!', |
53 | 53 | 'moodbar-loading-subtitle' => 'We are sharing your feedback…', |
54 | | - 'moodbar-success-subtitle' => 'Sharing your mood helps us make Wikipedia better.', |
| 54 | + 'moodbar-success-subtitle' => 'Sharing your editing experience helps us improve $1.', |
55 | 55 | 'moodbar-error-subtitle' => 'Something went wrong! Please try sharing your mood again later.', |
56 | 56 | // Special:MoodBar |
57 | 57 | 'right-moodbar-view' => 'View and export MoodBar feedback', |
— | — | @@ -111,6 +111,12 @@ |
112 | 112 | |
113 | 113 | See also: |
114 | 114 | * {{msg|moodbar-form-policy-text}}', |
| 115 | + 'moodbar-loading-title' => 'Title of the screen when the widget is loading.', |
| 116 | + 'moodbar-success-title' => 'Title of the screen after the feedback was successfullyully submitted.', |
| 117 | + 'moodbar-error-title' => 'Title of the screen when after an error occurred and submission aborted.', |
| 118 | + 'moodbar-loading-subtitle' => 'Subtitle of Loading-screen. $1 is the SITENAME', |
| 119 | + 'moodbar-success-subtitle' => 'Subtitle of screen when feedback was successfullyully submitted. $1 is the SITENAME', |
| 120 | + 'moodbar-error-subtitle' => 'Subtitle of screen when an error occurred. $1 is the SITENAME', |
115 | 121 | ); |
116 | 122 | |
117 | 123 | /** Message documentation (Message documentation) |
Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js |
— | — | @@ -238,14 +238,18 @@ |
239 | 239 | }, |
240 | 240 | |
241 | 241 | swapContent: function( tpl ) { |
242 | | - var msgOptions = { |
243 | | - keys: { |
244 | | - INTROTITLE: 'moodbar-intro-' + mb.conf.bucketKey |
245 | | - }, |
246 | | - params: { |
247 | | - INTROTITLE: [mw.config.get( 'wgSiteName' )] |
248 | | - } |
249 | | - }; |
| 242 | + var sitenameParams = [mw.config.get( 'wgSiteName' )], // Cache common params |
| 243 | + msgOptions = { |
| 244 | + keys: { |
| 245 | + INTROTITLE: 'moodbar-intro-' + mb.conf.bucketKey |
| 246 | + }, |
| 247 | + params: { |
| 248 | + INTROTITLE: sitenameParams, |
| 249 | + 'moodbar-loading-subtitle': sitenameParams, |
| 250 | + 'moodbar-success-subtitle': sitenameParams, |
| 251 | + 'moodbar-error-subtitle': sitenameParams |
| 252 | + } |
| 253 | + }; |
250 | 254 | |
251 | 255 | mb.ui.overlay |
252 | 256 | .find( '.mw-moodBar-overlayContent' ) |