Index: trunk/extensions/UploadWizard/UploadWizard.config.php |
— | — | @@ -261,5 +261,14 @@ |
262 | 262 | |
263 | 263 | // Wiki page for leaving Upload Wizard feedback, for example 'Commons:Upload wizard feedback' |
264 | 264 | 'feedbackPage' => '', |
| 265 | + |
| 266 | + // Bugzilla page for UploadWizard bugs |
| 267 | + 'bugList' => 'http://bugzilla.wikimedia.org/buglist.cgi?cmdtype=runnamed&namedcmd=UploadWizard&list_id=4977', |
| 268 | + |
| 269 | + // TranslateWiki page for help with translations |
| 270 | + 'translateHelp' => 'http://translatewiki.net/w/i.php?title=Special:Translate&group=ext-uploadwizard', |
| 271 | + |
| 272 | + // URL for alternative uploading form |
| 273 | + 'altUploadForm' => '', |
265 | 274 | |
266 | 275 | ); |
Index: trunk/extensions/UploadWizard/UploadWizardHooks.php |
— | — | @@ -306,6 +306,10 @@ |
307 | 307 | 'mwe-upwiz-thumbnail-failed', |
308 | 308 | 'mwe-upwiz-unparseable-filename', |
309 | 309 | 'mwe-upwiz-image-preview', |
| 310 | + 'mwe-upwiz-subhead-message', |
| 311 | + 'mwe-upwiz-subhead-bugs', |
| 312 | + 'mwe-upwiz-subhead-translate', |
| 313 | + 'mwe-upwiz-subhead-alt-upload', |
310 | 314 | 'mwe-upwiz-feedback-prompt', |
311 | 315 | 'mwe-upwiz-feedback-note', |
312 | 316 | 'mwe-upwiz-feedback-subject', |
Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php |
— | — | @@ -237,8 +237,13 @@ |
238 | 238 | 'mwe-upwiz-unparseable-filename' => 'Could not understand the file name "$1"', |
239 | 239 | 'mwe-upwiz-image-preview' => 'Image preview', |
240 | 240 | |
| 241 | + 'mwe-upwiz-subhead-message' => 'Thanks for using our new upload tool!', |
| 242 | + 'mwe-upwiz-subhead-bugs' => '[$1 Known issues]', |
| 243 | + 'mwe-upwiz-subhead-translate' => '[$1 Help with translations]', |
| 244 | + 'mwe-upwiz-subhead-alt-upload' => '[$1 Back to the old form]', |
| 245 | + |
241 | 246 | /* Feedback interface */ |
242 | | - 'mwe-upwiz-feedback-prompt' => 'Please [$1 let us know] what you think of UploadWizard!', |
| 247 | + 'mwe-upwiz-feedback-prompt' => '[$1 Leave feedback]', |
243 | 248 | 'mwe-upwiz-feedback-note' => 'Your feedback will be posted publicly to the page "[$2 $1]", along with your user name, browser version and operating system.', |
244 | 249 | 'mwe-upwiz-feedback-subject' => 'Subject:', |
245 | 250 | 'mwe-upwiz-feedback-message' => 'Message:', |
Index: trunk/extensions/UploadWizard/resources/uploadWizard.css |
— | — | @@ -2,7 +2,6 @@ |
3 | 3 | #contentSub { |
4 | 4 | margin-left: 0; |
5 | 5 | color: #666666; |
6 | | - font-style: italic; |
7 | 6 | } |
8 | 7 | |
9 | 8 | form.mwe-upwiz-form { |
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -651,19 +651,31 @@ |
652 | 652 | |
653 | 653 | // remove first spinner |
654 | 654 | $j( '#mwe-first-spinner' ).remove(); |
655 | | - |
| 655 | + |
| 656 | + // construct the message for the subheader |
| 657 | + $j( '#contentSub' ).append( $j( '<span style="margin-right: 0.5em;"></span>' ).msg( 'mwe-upwiz-subhead-message' ) ); |
656 | 658 | // feedback request |
657 | 659 | if ( mw.isDefined( mw.UploadWizard.config['feedbackPage'] ) && mw.UploadWizard.config['feedbackPage'] !== '' ) { |
658 | 660 | var feedback = new mw.Feedback( _this.api, |
659 | | - new mw.Title( mw.UploadWizard.config['feedbackPage'] ) ); |
660 | | - $j( '#contentSub' ) |
661 | | - .msg( 'mwe-upwiz-feedback-prompt', |
662 | | - function() { |
663 | | - feedback.launch(); |
664 | | - return false; |
665 | | - } |
666 | | - ); |
| 661 | + new mw.Title( mw.UploadWizard.config['feedbackPage'] ) ); |
| 662 | + var feedbackLink = $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-feedback-prompt', |
| 663 | + function() { |
| 664 | + feedback.launch(); |
| 665 | + return false; |
| 666 | + } |
| 667 | + ); |
| 668 | + $j( '#contentSub' ).append( feedbackLink ); |
667 | 669 | } |
| 670 | + if ( mw.UploadWizard.config['bugList'] !== '' ) { |
| 671 | + $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-bugs', mw.UploadWizard.config['bugList'] ) ); |
| 672 | + } |
| 673 | + if ( mw.UploadWizard.config['translateHelp'] !== '' ) { |
| 674 | + $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-translate', mw.UploadWizard.config['translateHelp'] ) ); |
| 675 | + } |
| 676 | + if ( mw.UploadWizard.config['altUploadForm'] !== '' ) { |
| 677 | + $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-alt-upload', mw.UploadWizard.config['altUploadForm'] ) ); |
| 678 | + } |
| 679 | + $j( '#contentSub .contentSubLink:not(:last)' ).after( ' · ' ); |
668 | 680 | |
669 | 681 | // construct the arrow steps from the UL in the HTML |
670 | 682 | $j( '#mwe-upwiz-steps' ) |