Index: trunk/extensions/UploadWizard/UploadWizardHooks.php |
— | — | @@ -336,11 +336,11 @@ |
337 | 337 | 'mwe-upwiz-feedback-error1', |
338 | 338 | 'mwe-upwiz-feedback-error2', |
339 | 339 | 'mwe-upwiz-feedback-error3', |
340 | | - 'size-terabytes', |
341 | | - 'size-gigabytes', |
342 | | - 'size-megabytes', |
343 | | - 'size-kilobytes', |
344 | | - 'size-bytes' |
| 340 | + 'mwe-upwiz-size-terabytes', |
| 341 | + 'mwe-upwiz-size-gigabytes', |
| 342 | + 'mwe-upwiz-size-megabytes', |
| 343 | + 'mwe-upwiz-size-kilobytes', |
| 344 | + 'mwe-upwiz-size-bytes' |
345 | 345 | ), |
346 | 346 | 'group' => 'ext.uploadWizard' |
347 | 347 | ), |
Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php |
— | — | @@ -268,7 +268,15 @@ |
269 | 269 | 'mwe-upwiz-feedback-adding' => 'Adding feedback to page...', |
270 | 270 | 'mwe-upwiz-feedback-error1' => 'Error: Unrecognized result from API', |
271 | 271 | 'mwe-upwiz-feedback-error2' => 'Error: Edit failed', |
272 | | - 'mwe-upwiz-feedback-error3' => 'Error: No response from API' |
| 272 | + 'mwe-upwiz-feedback-error3' => 'Error: No response from API', |
| 273 | + |
| 274 | + // similar to mediawiki.special.upload.js |
| 275 | + 'mwe-upwiz-size-terabytes' => '$1 TB', |
| 276 | + 'mwe-upwiz-size-gigabytes' => '$1 GB', |
| 277 | + 'mwe-upwiz-size-megabytes' => '$1 MB', |
| 278 | + 'mwe-upwiz-size-kilobytes' => '$1 K', |
| 279 | + 'mwe-upwiz-size-bytes' => '$1 bytes' |
| 280 | + |
273 | 281 | |
274 | 282 | ); |
275 | 283 | |
Index: trunk/extensions/UploadWizard/resources/mw.units.js |
— | — | @@ -1,6 +1,12 @@ |
2 | 2 | ( function( mw ) { |
3 | 3 | |
4 | | - var scaleMsgKeys = [ 'size-bytes', 'size-kilobytes', 'size-megabytes', 'size-gigabytes', 'size-terabytes' ]; |
| 4 | + var scaleMsgKeys = [ |
| 5 | + 'mwe-upwiz-size-bytes', |
| 6 | + 'mwe-upwiz-size-kilobytes', |
| 7 | + 'mwe-upwiz-size-megabytes', |
| 8 | + 'mwe-upwiz-size-gigabytes', |
| 9 | + 'mwe-upwiz-size-terabytes' |
| 10 | + ]; |
5 | 11 | |
6 | 12 | mw.units = { |
7 | 13 | |