Unverified Commit f7277d24 authored by alexpott's avatar alexpott
Browse files

Issue #3156266 by longwave, jungle, siddhant.bhosale, alexpott: Fix 70 spelling mistakes

parent 940e609a
......@@ -294,7 +294,7 @@ via:
description: "Identifies a resource that is the source of the information in the link's context."
reference: '[RFC4287]'
webmention:
description: "Identifies a target URI that supports the Webmention protcol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned."
description: "Identifies a target URI that supports the Webmention protocol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned."
reference: '[http://www.w3.org/TR/webmention/]'
notes: "This is a similar \"Linkback\" mechanism to the ones of Refback, Trackback, and Pingback. It uses a different protocol, though, and thus should be discoverable through its own link relation type."
working-copy:
......
......@@ -74,7 +74,7 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line, $c
_drupal_log_error([
'%type' => isset($types[$error_level]) ? $severity_msg : 'Unknown error',
// The standard PHP error handler considers that the error messages
// are HTML. We mimick this behavior here.
// are HTML. We mimic this behavior here.
'@message' => Markup::create(Xss::filterAdmin($message)),
'%function' => $caller['function'],
'%file' => $caller['file'],
......
......@@ -251,7 +251,7 @@ function install_state_defaults() {
// required translation file.
'server_pattern' => 'http://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po',
// Installation tasks can set this to TRUE to force the page request to
// end (even if there is no themable output), in the case of an interactive
// end (even if there is no themeable output), in the case of an interactive
// installation. This is needed only rarely; for example, it would be used
// by an installation task that prints JSON output rather than returning a
// themed page. The most common example of this is during batch processing,
......
......@@ -39,10 +39,9 @@ function drupal_get_schema_versions($module) {
// Narrow this down to functions ending with an integer, since all
// hook_update_N() functions end this way, and there are other
// possible functions which match '_update_'. We use preg_grep() here
// instead of foreaching through all defined functions, since the loop
// through all PHP functions can take significant page execution time
// and this function is called on every administrative page via
// system_requirements().
// since looping through all PHP functions can take significant page
// execution time and this function is called on every administrative page
// via system_requirements().
foreach (preg_grep('/_\d+$/', $functions['user']) as $function) {
// If this function is a module update function, add it to the list of
// module updates.
......
......@@ -9,7 +9,7 @@
*
* Developers should be extra careful if this command and
* \Drupal\Core\Ajax\MessageCommand are included in the same response. By
* default, MessageCommmand will also call Drupal.announce() and announce the
* default, MessageCommand will also call Drupal.announce() and announce the
* message to the screen reader (unless the option to suppress announcements is
* passed to the constructor). Manual testing with a screen reader is strongly
* recommended.
......
......@@ -1424,7 +1424,7 @@ public function hasTranslationChanges() {
$translation = $original->getTranslation($this->activeLangcode);
$langcode = $this->language()->getId();
// The list of fields to skip from the comparision.
// The list of fields to skip from the comparison.
$skip_fields = $this->getFieldsToSkipFromTranslationChangesCheck();
// We also check untranslatable fields, so that a change to those will mark
......
......@@ -368,7 +368,7 @@ protected function getRevisionTranslationMergeSkippedFieldNames() {
$entity_type = $this->getEntityType();
// A list of known revision metadata fields which should be skipped from
// the comparision.
// the comparison.
$field_names = [
$entity_type->getKey('revision'),
$entity_type->getKey('revision_translation_affected'),
......
......@@ -23,7 +23,7 @@ protected function getFieldsToSkipFromTranslationChangesCheck(ContentEntityInter
$entity_type = $entity->getEntityType();
// A list of known revision metadata fields which should be skipped from
// the comparision.
// the comparison.
$fields = [
$entity_type->getKey('revision'),
$entity_type->getKey('revision_translation_affected'),
......
......@@ -139,7 +139,7 @@ public static function createFromString($dependency) {
* Prevents unnecessary serialization of constraint objects.
*
* @return array
* The properties to seriailize.
* The properties to serialize.
*/
public function __sleep() {
return ['name', 'project', 'constraintString'];
......
......@@ -1225,7 +1225,7 @@
let $newContent = $($.parseHTML(response.data, document, true));
// For backward compatibility, in some cases a wrapper will be added. This
// behavior will be removed before Drupal 9.0.0. If different behavior is
// needed, the theme functions can be overriden.
// needed, the theme functions can be overridden.
// @see https://www.drupal.org/node/2940704
$newContent = Drupal.theme(
'ajaxWrapperNewContent',
......
......@@ -80,8 +80,6 @@ ascript
asdf
asdrsad
assertable
assertsame
asssert
asterix
asubject
atomentry
......@@ -138,7 +136,6 @@ autosubmit
autowire
autowired
autowiring
availble
backend's
backlink
backlinks
......@@ -152,7 +149,6 @@ barbaz
barchart
barfoo
barmm
baro
barqux
bartik
bartik's
......@@ -278,11 +274,9 @@ checkboxifier
checkboxify
checkboxradio
checkmark
chedked
chien
chiens
childlist
chnged
chocolatiers
chromedriver
chroot'd
......@@ -327,10 +321,7 @@ comida
commandline
commenter's
commenters
commmand
commontest
comparision
compliane
complote
compositionend
compositionstart
......@@ -364,7 +355,6 @@ corefake
coretest
corge
countquery
coversions
cpan
cpio
createkey
......@@ -466,7 +456,6 @@ deserialization
deserializes
destid
destinationproperty
destion
destructable
destructured
desynchronized
......@@ -558,9 +547,6 @@ elementspath
elems
elit
embed's
emebd
emptry
emtpy
encapsed
encoding's
endapply
......@@ -580,7 +566,6 @@ enim
enoki
enregistrer
entit
entites
entitiesto
entitynodeedit
entityreference
......@@ -599,7 +584,6 @@ ession
estraven
etag
etags
etheopian
eurozone
evenodd
eventhandler
......@@ -689,11 +673,6 @@ foofoo
foomm
foos
fooÿñ
forder
foreaching
forentity
formated
formating
formatless
formattable
formatter's
......@@ -709,7 +688,6 @@ français
fraîche
freenode
frombracket
frontcontroller
frontpage
fsdf
ftest
......@@ -728,11 +706,9 @@ gabilondo
gato
gaurd
gbmb
get's
getcode
getfile
gethttpclient
geting
getlist
getmachine
getview
......@@ -826,7 +802,6 @@ idconflict
idekey
idempotency
idempotently
identation
identifier's
idmap
ieid
......@@ -845,7 +820,6 @@ imagelink
imagemagick
imagetest
inator
indetation
indexname
indexrelid
indisprimary
......@@ -854,19 +828,15 @@ indrelid
ingoa
inited
inno
inorrect
inpur
inputtypes
insidekeyword
inspectable
instace
instaclick
install's
installable
instantiator
inteface
intefacewithconstants
interger
internal's
introspectable
invalida
......@@ -1027,7 +997,6 @@ maxdepth
maximumred
maxlifetime
maxsize
may've
maynot
mbytes
mdash
......@@ -1053,7 +1022,6 @@ mikey
milli
mimeheaders
mimetypes
mimick
minifiers
minifyzombies
minimise
......@@ -1297,9 +1265,7 @@ outdata
outdent
outdir
outro
overidden
overridable
overriden
overrider
overrider's
overriders
......@@ -1310,9 +1276,7 @@ pagecache
pagetop
pageviews
pagina
pagnel
pangram
paramaters
paramconverter
parens
parentc
......@@ -1334,7 +1298,6 @@ perfoming
performant
perma
permissionless
persion
persistable
pharextract
phars
......@@ -1377,7 +1340,6 @@ postbar
postcondition
postfields
postfoo
postge
postgres
postgresql
postorder
......@@ -1396,9 +1358,7 @@ preconfigured
preconnect
precreated
predelete
prefech
prefetches
preffix
prefill
prefilled
prefilling
......@@ -1433,12 +1393,10 @@ processlist
projecta
projectb
proname
propegated
propertyname
prophesize
prophesized
prophesizing
protcol
protossl
proxied
proxying
......@@ -1490,7 +1448,6 @@ realelement
realpaths
realword
rebuilder
receieved
reclosed
recolorable
redirections
......@@ -1520,7 +1477,6 @@ relnamespace
removeformat
renderable
renderables
renderd
renderer's
renderered
renormalize
......@@ -1537,8 +1493,6 @@ resaved
resaving
rescan
resizer
resonse
restirct
restplugin
restrictor
restripe
......@@ -1553,7 +1507,6 @@ revisionable
revisioned
revisionid
revisioning
revist
revlog
revpub
ribisi
......@@ -1617,18 +1570,13 @@ selectbox
selectlist
semver
sendmail
seralization
seriailize
serializer's
serialzer
serviceform
sesison
sess
sessionpath
settingstray
setttings
setval
sevice
sharedspace
shatner
shorterthan
......@@ -1636,7 +1584,6 @@ shortlink
shortname
shortnames
showblocks
shrinked
sidebarborders
siema
silverlight
......@@ -1719,7 +1666,6 @@ strs
sttid
stuffit
styleguide
styleing
stylelint
stylescombo
subarrays
......@@ -1738,7 +1684,6 @@ subjectkeyword
subkey
subkeys
submenu
submited
subpackage
subparse
subpath
......@@ -1773,8 +1718,6 @@ sulaco
sunz
sunzzzzzzz
supercede
suppresion
supresses
sut's
svenska
svgs
......@@ -1786,7 +1729,6 @@ symlinking
symlinks
synchronizable
syrop
sytem
tabarnak
tabbable
tabbingmanager
......@@ -1874,7 +1816,6 @@ textformat
textgroup
textwithsummary
thaana
themable
themeable
themename
themer
......@@ -1928,14 +1869,10 @@ touchevents
tparams
trackback
trailingslash
traint
tranformed
transferthick
transitionend
translatables
translateable
transpiled
traslation
trayblock
trex
trgm
......@@ -1955,10 +1892,8 @@ typehinted
typehinting
typehints
typemanager
typr
tzid
uberawesome
ubmit
ui's
uicrud
uids
......@@ -2000,7 +1935,6 @@ unidecode
unidecoder
unindented
unindexed
uninstal
uninstallation
uninstallations
uninstantiatable
......@@ -2010,7 +1944,6 @@ unitalicize
unixepoch
unixtimestamp
unkeyed
unknow
unmanaged
unmatch
unmigrated
......@@ -2078,7 +2011,6 @@ url's
urlalias
urldecoding
urlto
useage
usecase
userid
userinfo
......@@ -2087,7 +2019,6 @@ userreference
users's
userspace
usuario
utton
uuid's
uuids
validatable
......
......@@ -80,7 +80,7 @@
* Message type, can be either 'status', 'error' or 'warning'.
* @param {string} [options.announce]
* Screen-reader version of the message if necessary. To prevent a message
* being sent to Drupal.announce() this should be an emptry string.
* being sent to Drupal.announce() this should be an empty string.
* @param {string} [options.priority]
* Priority of the message for Drupal.announce().
*
......
......@@ -203,7 +203,7 @@ public function testOffCanvasStyles() {
$assert_session->assertWaitOnAjaxRequest();
// Check the background color of two CKEditor elements to confirm they are
// not overriden by the off-canvas css reset.
// not overridden by the off-canvas css reset.
$assert_session->elementExists('css', '.cke_top');
$ckeditor_top_bg_color = $this->getSession()->evaluateScript('window.getComputedStyle(document.getElementsByClassName(\'cke_top\')[0]).backgroundColor');
$this->assertEqual($ckeditor_top_bg_color, 'rgb(248, 248, 248)');
......
......@@ -66,7 +66,7 @@ public function setUp(): void {
* Tests the moderated content page.
*/
public function testModeratedContentPage() {
$assert_sesison = $this->assertSession();
$assert_session = $this->assertSession();
$this->drupalLogin($this->adminUser);
// Use an explicit changed time to ensure the expected order in the content
......@@ -103,15 +103,15 @@ public function testModeratedContentPage() {
// Verify view, edit, and delete links for any content.
$this->drupalGet('admin/content/moderated');
$assert_sesison->statusCodeEquals(200);
$assert_session->statusCodeEquals(200);
// Check that nodes with pending revisions appear in the view.
$node_type_labels = $this->xpath('//td[contains(@class, "views-field-type")]');
$delta = 0;
foreach ($nodes as $node) {
$assert_sesison->linkByHrefExists('node/' . $node->id());
$assert_sesison->linkByHrefExists('node/' . $node->id() . '/edit');
$assert_sesison->linkByHrefExists('node/' . $node->id() . '/delete');
$assert_session->linkByHrefExists('node/' . $node->id());
$assert_session->linkByHrefExists('node/' . $node->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $node->id() . '/delete');
// Verify that we can see the content type label.
$this->assertEquals($node->type->entity->label(), trim($node_type_labels[$delta]->getText()));
$delta++;
......@@ -120,30 +120,30 @@ public function testModeratedContentPage() {
// Check that nodes that are not moderated or do not have a pending revision
// do not appear in the view.
foreach ($excluded_nodes as $node) {
$assert_sesison->linkByHrefNotExists('node/' . $node->id());
$assert_session->linkByHrefNotExists('node/' . $node->id());
}
// Check that the latest revision is displayed.
$assert_sesison->pageTextContains('first article - draft');
$assert_sesison->pageTextNotContains('first article - published');
$assert_session->pageTextContains('first article - draft');
$assert_session->pageTextNotContains('first article - published');
// Verify filtering by moderation state.
$this->drupalGet('admin/content/moderated', ['query' => ['moderation_state' => 'editorial-draft']]);
$assert_sesison->linkByHrefExists('node/' . $nodes['published_then_draft_article']->id() . '/edit');
$assert_sesison->linkByHrefExists('node/' . $nodes['draft_article']->id() . '/edit');
$assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['published_then_draft_article']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['draft_article']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_session->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit');
// Verify filtering by moderation state and content type.
$this->drupalGet('admin/content/moderated', ['query' => ['moderation_state' => 'editorial-draft', 'type' => 'page']]);
$assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_2']->id() . '/edit');
$assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_draft_article']->id() . '/edit');
$assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit');
$assert_sesison->linkByHrefNotExists('node/' . $nodes['draft_article']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit');
$assert_session->linkByHrefExists('node/' . $nodes['draft_page_2']->id() . '/edit');
$assert_session->linkByHrefNotExists('node/' . $nodes['published_then_draft_article']->id() . '/edit');
$assert_session->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit');
$assert_session->linkByHrefNotExists('node/' . $nodes['draft_article']->id() . '/edit');
}
/**
......
......@@ -224,7 +224,7 @@ public function testWorkflowChanges($view_id) {
}
/**
* Execute a view and asssert the expected results.
* Execute a view and assert the expected results.
*
* @param \Drupal\views\ViewEntityInterface $view_entity
* A view configuration entity.
......
......@@ -6,7 +6,7 @@
use Drupal\workflows\WorkflowInterface;
/**
* Trait ContentModerationTestTraint.
* Trait ContentModerationTestTrait.
*/
trait ContentModerationTestTrait {
......
......@@ -98,7 +98,7 @@ public function testFieldSynchronizationWithDisabledBundle() {
}
/**
* Tests that bundle translation settings are propegated on creation.
* Tests that bundle translation settings are propagated on creation.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/
......@@ -110,7 +110,7 @@ public function testBundleClearOnLanguageContentSettingInsert() {
}
/**
* Tests that bundle translation setting changes are propegated.
* Tests that bundle translation setting changes are propagated.
*
* @throws \Drupal\Core\Entity\EntityStorageException
* @throws \Exception
......
......@@ -110,7 +110,7 @@ public function testFormatterUI() {
$field_test_settings = $page->find('css', 'input[name="field_test_settings_edit"]');
$weight_toggle = $page->find('css', '.tabledrag-toggle-weight');
// Assert the format typr field is visible and contains the expected
// Assert the format type field is visible and contains the expected
// formatter.
$this->assertTrue($field_test_format_type->isVisible());
$this->assertEquals($format, $field_test_format_type->getValue());
......
......@@ -2,7 +2,7 @@
filter_settings.filter_test_restrict_tags_and_attributes:
type: filter
label: 'Filter to restirct HTML tags and attributes'
label: 'Filter to restrict HTML tags and attributes'
mapping:
restrictions:
type: mapping
......