Spell check pass

Change-Id: Ia20da358297126bd52a968bd77c960f81fe82b8f
This commit is contained in:
Ed Sanders 2020-05-12 12:51:20 +01:00 committed by Bartosz Dziewoński
parent c5d1029b25
commit 607440498e
5 changed files with 15 additions and 15 deletions

View file

@ -21,7 +21,7 @@
"discussiontools-replywidget-feedback-link": "{{optional|Link to a page where users can share feedback about the reply widget. Defaults to a page on MediaWiki.org.}}",
"discussiontools-replywidget-loading": "Message shown while the reply widget is loading",
"discussiontools-replywidget-mode-source": "Label for source mode (wikitext) editor",
"discussiontools-replywidget-mode-visual": "Label for visual mode edtior",
"discussiontools-replywidget-mode-visual": "Label for visual mode editor",
"discussiontools-replywidget-placeholder-reply": "Placeholder describing who is being replied to.\n\nParameters:\n* $1 username of the person who wrote the previous comment",
"discussiontools-replywidget-preview": "Label for the preview area of the reply widget",
"discussiontools-replywidget-reply": "Label for the button to submit a reply in the reply widget",

View file

@ -63,7 +63,7 @@ class CommentParser {
/**
* Build the timezone abbreviations map for the local timezone.
* @return array Associative array mapping localized timezone abbreviations to IANA abbreviations
* @return array Associative array mapping localised timezone abbreviations to IANA abbreviations
*/
private function computeTimezoneAbbrs() : array {
// Return only timezone abbreviations for the local timezone (there will often be two, for
@ -202,9 +202,9 @@ class CommentParser {
* complicated).
*
* @param string $format Date format
* @param string $digitsRegexp Regular expression matching a single localized digit, e.g. '[0-9]'
* @param array $tzAbbrs Associative array mapping localized timezone abbreviations to
* IANA abbrevations, for the local timezone, e.g. [ 'EDT' => 'EDT', 'EST' => 'EST' ]
* @param string $digitsRegexp Regular expression matching a single localised digit, e.g. '[0-9]'
* @param array $tzAbbrs Associative array mapping localised timezone abbreviations to
* IANA abbreviations, for the local timezone, e.g. [ 'EDT' => 'EDT', 'EST' => 'EST' ]
* @return string Regular expression
*/
private function getTimestampRegexp(
@ -310,8 +310,8 @@ class CommentParser {
$tzRegexp = self::regexpAlternateGroup( array_keys( $tzAbbrs ) );
// Hardcoded parentheses and space like in Parser::pstPass2
// Ignore some invisible Unicode characters that often sneak into copypasted timestamps (T245784)
// Hard-coded parentheses and space like in Parser::pstPass2
// Ignore some invisible Unicode characters that often sneak into copy-pasted timestamps (T245784)
// \uNNNN syntax can only be used from PHP 7.3
return '/' . $s . '[\\x{200E}\\x{200F}]? [\\x{200E}\\x{200F}]?\\(' . $tzRegexp . '\\)/u';
}
@ -828,7 +828,7 @@ class CommentParser {
// Avoid generating multiple comments when there is more than one signature on a single "line".
// Often this is done when someone edits their comment later and wants to add a note about that.
// (Or when another person corrects a typo, or strikes out a comment, etc.) Multiple comments
// within one paragraph/listitem result in a confusing double "Reply" button, and we also have
// within one paragraph/list-item result in a confusing double "Reply" button, and we also have
// no way to indicate which one you're replying to (this might matter in the future for
// notifications or something).
if (

View file

@ -47,7 +47,7 @@ function CommentController( $pageContainer, comment, thread ) {
OO.initClass( CommentController );
/* CommentController private utilites */
/* CommentController private utilities */
/**
* Get the latest revision ID of the page.
@ -278,7 +278,7 @@ CommentController.prototype.postReply = function ( parsoidData ) {
// Wrap every root node of the document in a new list item (dd/li).
// In wikitext mode every root node is a paragraph.
// In visual mode the editor takes care of preventing problematic nodes
// like <table> or <h2> from ever occuring in the comment.
// like <table> or <h2> from ever occurring in the comment.
while ( container.children.length ) {
if ( !newParsoidItem ) {
newParsoidItem = modifier.addListItem( comment );
@ -450,7 +450,7 @@ CommentController.prototype.switchToVisual = function () {
if ( html ) {
doc = replyWidget.replyBodyWidget.target.parseDocument( html );
// Unindent list
// Unwrap list
modifier.unwrapList( doc.body.children[ 0 ] );
}

View file

@ -100,7 +100,7 @@ MWUsernameCompletionAction.prototype.getSuggestions = function ( input ) {
// Show no remote users if no input provided
.concat( capitalizedInput ? this.remoteUsers : [] ),
// TODO: Consider showing IP users
// * Change link to Special:Contributions/<ip> (localized)
// * Change link to Special:Contributions/<ip> (localised)
// * Let users know that mentioning an IP will not create a notification?
// .concat( this.ipUsers )
input

View file

@ -156,8 +156,8 @@ function getTimestampRegexp( format, digitsRegexp, tzAbbrs ) {
}
tzRegexp = regexpAlternateGroup( Object.keys( tzAbbrs ) );
// Hardcoded parentheses and space like in Parser::pstPass2
// Ignore some invisible Unicode characters that often sneak into copypasted timestamps (T245784)
// Hard-coded parentheses and space like in Parser::pstPass2
// Ignore some invisible Unicode characters that often sneak into copy-pasted timestamps (T245784)
regexp = s + '[\\u200E\\u200F]? [\\u200E\\u200F]?\\(' + tzRegexp + '\\)';
return regexp;
@ -773,7 +773,7 @@ function getComments( rootNode ) {
// Avoid generating multiple comments when there is more than one signature on a single "line".
// Often this is done when someone edits their comment later and wants to add a note about that.
// (Or when another person corrects a typo, or strikes out a comment, etc.) Multiple comments
// within one paragraph/listitem result in a confusing double "Reply" button, and we also have
// within one paragraph/list-item result in a confusing double "Reply" button, and we also have
// no way to indicate which one you're replying to (this might matter in the future for
// notifications or something).
if (