Index: trunk/extensions/Storyboard/Storyboard.i18n.php |
— | — | @@ -64,6 +64,9 @@ |
65 | 65 | 'storyboard-morecharsneeded' => '$1 more characters needed', |
66 | 66 | 'storyboard-charactersleft' => '$1 characters left', |
67 | 67 | 'storyboard-needtoagree' => 'You need to agree to the publication of your story to submit it.', |
| 68 | + 'storyboard-done' => 'Done', |
| 69 | + 'storyboard-working' => 'Working...', |
| 70 | + 'storyboard-imagedeleted' => 'Image deleted', |
68 | 71 | |
69 | 72 | // Story review |
70 | 73 | 'storyreview' => 'Story review', |
Index: trunk/extensions/Storyboard/storyboard.js |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | * @param action The action that needs to be performed on the story. |
185 | 185 | */ |
186 | 186 | function stbDoStoryAction( sender, storyid, action ) { |
187 | | - sender.innerHTML = 'Working...'; // TODO: i18n |
| 187 | + sender.innerHTML = stbMsg( 'storyboard-working' ); |
188 | 188 | sender.disabled = true; |
189 | 189 | |
190 | 190 | jQuery.getJSON( wgScriptPath + '/api.php', |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | if ( data.storyreview ) { |
199 | 199 | switch( data.storyreview.action ) { |
200 | 200 | case 'publish' : case 'unpublish' : case 'hide' : |
201 | | - sender.innerHTML = 'Done'; // TODO: i18n |
| 201 | + sender.innerHTML = stbMsg( 'storyboard-done' ); |
202 | 202 | jQuery( '#story_' + data.storyreview.id ).slideUp( 'slow', function () { |
203 | 203 | jQuery( this ).remove(); |
204 | 204 | } ); |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | stbToggeShowImage( sender, data.storyreview.id, data.storyreview.action ); |
209 | 209 | break; |
210 | 210 | case 'deleteimage' : |
211 | | - sender.innerHTML = 'Image deleted'; // TODO: i18n |
| 211 | + sender.innerHTML = stbMsg( 'storyboard-imagedeleted' ); |
212 | 212 | jQuery( '#story_image_' + data.storyreview.id ).slideUp( 'slow', function () { |
213 | 213 | jQuery( this ).remove(); |
214 | 214 | } ); |
Index: trunk/extensions/Storyboard/Storyboard.php |
— | — | @@ -142,7 +142,10 @@ |
143 | 143 | 'storyboard-needtoagree', |
144 | 144 | 'storyboard-anerroroccured', |
145 | 145 | 'storyboard-storymetadata', |
146 | | - 'storyboard-storymetadatafrom' |
| 146 | + 'storyboard-storymetadatafrom', |
| 147 | + 'storyboard-done', |
| 148 | + 'storyboard-working', |
| 149 | + 'storyboard-imagedeleted', |
147 | 150 | ); |
148 | 151 | |
149 | 152 | $data = array(); |