'ajax-confirm-save-all' => 'Save all changes',
'ajax-cancel' => 'Cancel edit',
'ajax-cancel-all' => 'Cancel all changes',
-'ajax-add-category-summary' => 'add category "$1"',
-'ajax-edit-category-summary' => 'change category "$1" to "$2"',
-'ajax-remove-category-summary' => 'remove category "$1"',
-'ajax-category-question' => '<strong>Why</strong> do you want to $1?',
-'ajax-category-and' => ' and ',
+'ajax-add-category-summary' => 'Add category "$1"',
+'ajax-edit-category-summary' => 'Change category "$1" to "$2"',
+'ajax-remove-category-summary' => 'Remove category "$1"',
+'ajax-category-question' => 'Why do you want to make the following changes:',
'ajax-error-title' => 'Error',
'ajax-remove-category-error' => 'It was not possible to remove category "$1".
This usually occurs when the category has been added to the page in a template.',
'ajax-confirm-title' => 'Title for a dialog box in which the user is asked for an edit summary',
'ajax-confirm-save' => 'Submit button {{Identical|Save}}',
'ajax-confirm-save-all' => 'Submit button to save all changes',
-'ajax-add-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 is a category name. This is used inside a sentence, make sure that the case is correct.',
-'ajax-edit-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 and $2 are both category names. This is used inside a sentence, make sure that the case is correct.',
-'ajax-remove-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 is a category name. This is used inside a sentence, make sure that the case is correct.',
-'ajax-category-question' => 'Question the user is asked before submit. $1 is filled with a list of one or more of the following messages;
-{{msg-mw|ajax-add-category-summary}}, {{msg-mw|ajax-remove-category-summary}}, {{msg-mw|ajax-edit-category-summary}}.
-The last of the inserted messages is prefaced by {{msg-mw|ajax-category-and}}. The result would be something like:
-Why do you want to remove Category:A and add Category:C ?',
+'ajax-add-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 is a category name.',
+'ajax-edit-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 and $2 are both category names.',
+'ajax-remove-category-summary' => 'See {{msg-mw|ajax-category-question}}. $1 is a category name. ',
+'ajax-category-question' => 'Question the user is asked before submit. It\'s followed by a list of the changes.',
'ajax-category-and' => 'Used to join multiple list items. Eg. "Edit foo, move bar and add foobar"',
'ajax-error-title' => '{{Identical|Error}}',
'ajax-category-already-present' => 'Error message. $1 is the category name',
'ajax-edit-category-summary',
'ajax-remove-category-summary',
'ajax-category-question',
- 'ajax-category-and',
'ajax-error-title',
'ajax-remove-category-error',
'ajax-edit-category-error',
// Summary of the action to be taken
var summaryHolder = $( '<p/>' );
- summaryHolder.html( mw.msg( 'ajax-category-question', actionSummary ) );
+ summaryHolder.html( '<strong>' + mw.msg( 'ajax-category-question' ) + '</strong><br>' + actionSummary );
dialog.append( summaryHolder );
// Reason textbox.
_saveAllButton.hide();
_cancelAllButton.hide();
return;
- } else if ( summary.length == 1 ) {
- summary = summary.pop();
} else {
- var lastSummary = summary.pop();
- summary = summary.join( ', ');
- summary += mw.msg( 'ajax-category-and' ) + lastSummary;
- summary = summary.substring( 0, summary.length - 2 );
+ summary = summary.join( '<br>' );
}
// Remove "holes" in array
summaryShort = $.grep( _stash.shortSum, function( n,i ) {
};
var doneFn = function() { that.resetAll( true ); };
- that._confirmEdit( combinedFn, summary, shortSummary, doneFn, '', 'all' );
+ that._confirmEdit( combinedFn, summary, summaryShort, doneFn, '', 'all' );
};
/**