Skip to content

Commit d967abd

Browse files
committed
Issue #1054848 by barraponto: Fixing common typos through codespell.py.
1 parent 9c42142 commit d967abd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+60
-60
lines changed

CHANGELOG.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ Drupal 4.5.0, 2004-10-18
10591059
- Filter system:
10601060
* Added support for using multiple input formats on the site
10611061
* Expanded the embedded PHP-code feature so it can be used everywhere
1062-
* Added support for role-dependant filtering, through input formats
1062+
* Added support for role-dependent filtering, through input formats
10631063
- UI translation:
10641064
* Managing translations is now completely done through the administration interface
10651065
* Added support for importing/exporting gettext .po files

authorize.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function authorize_access_allowed() {
7474
global $conf;
7575

7676
// We have to enable the user and system modules, even to check access and
77-
// display errors via the maintainence theme.
77+
// display errors via the maintenance theme.
7878
$module_list['system']['filename'] = 'modules/system/system.module';
7979
$module_list['user']['filename'] = 'modules/user/user.module';
8080
module_list(TRUE, FALSE, FALSE, $module_list);

includes/bootstrap.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ function drupal_installation_attempted() {
24492449
* non-installation time, such as while installing the module from the the
24502450
* module administration page.
24512451
*
2452-
* Example useage:
2452+
* Example usage:
24532453
* @code
24542454
* $t = get_t();
24552455
* $translated = $t('translate this');

includes/common.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3019,7 +3019,7 @@ function drupal_sort_css_js($a, $b) {
30193019
* are always groupable, and items of the 'external' type are never groupable.
30203020
* This function also ensures that the process of grouping items does not change
30213021
* their relative order. This requirement may result in multiple groups for the
3022-
* same type, media, and browsers, if needed to accomodate other items in
3022+
* same type, media, and browsers, if needed to accommodate other items in
30233023
* between.
30243024
*
30253025
* @param $css

includes/database/database.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
* }
153153
*
154154
* // $txn goes out of scope here. Unless the transaction was rolled back, it
155-
* // gets automatically commited here.
155+
* // gets automatically committed here.
156156
* }
157157
*
158158
* function my_other_function($id) {

includes/database/query.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ class DeleteQuery extends Query implements QueryConditionInterface {
839839
* Executes the DELETE query.
840840
*
841841
* @return
842-
* The return value is dependant on the database connection.
842+
* The return value is dependent on the database connection.
843843
*/
844844
public function execute() {
845845
$values = array();

includes/database/sqlite/database.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection {
119119
try {
120120
$count = $this->query('SELECT COUNT(*) FROM ' . $prefix . '.sqlite_master WHERE type = :type AND name NOT LIKE :pattern', array(':type' => 'table', ':pattern' => 'sqlite_%'))->fetchField();
121121

122-
// We can prune the database file if it doens't have any tables.
122+
// We can prune the database file if it doesn't have any tables.
123123
if ($count == 0) {
124124
// Detach the database.
125125
$this->query('DETACH DATABASE :schema', array(':schema' => $prefix));

includes/entity.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
307307
* @param $queried_entities
308308
* Associative array of query results, keyed on the entity ID.
309309
* @param $revision_id
310-
* ID of the revision that was loaded, or FALSE if teh most current revision
310+
* ID of the revision that was loaded, or FALSE if the most current revision
311311
* was loaded.
312312
*/
313313
protected function attachLoad(&$queried_entities, $revision_id = FALSE) {

includes/errors.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function _drupal_decode_exception($exception) {
136136
}
137137

138138
/**
139-
* Render an error message for an exception without any possibility of a further exception occuring.
139+
* Render an error message for an exception without any possibility of a further exception occurring.
140140
*
141141
* @param $exception
142142
* The exception object that was thrown.

includes/form.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ function drupal_process_form($form_id, &$form, &$form_state) {
919919
// have set $form_state['cache'] to indicate that the form and form state
920920
// shall be cached. But the form may only be cached if the 'no_cache' property
921921
// is not set to TRUE. Only cache $form as it was prior to form_builder(),
922-
// because form_builder() must run for each request to accomodate new user
922+
// because form_builder() must run for each request to accommodate new user
923923
// input. Rebuilt forms are not cached here, because drupal_rebuild_form()
924924
// already takes care of that.
925925
if (!$form_state['rebuild'] && $form_state['cache'] && empty($form_state['no_cache'])) {
@@ -1941,7 +1941,7 @@ function _form_builder_handle_input_element($form_id, &$element, &$form_state) {
19411941
// drupal_form_submit() must not be able to get around this. Forms that set
19421942
// #access=FALSE on an element usually allow access for some users, so forms
19431943
// submitted with drupal_form_submit() may bypass access restriction and be
1944-
// treated as high-privelege users instead.
1944+
// treated as high-privilege users instead.
19451945
$process_input = empty($element['#disabled']) && ($form_state['programmed'] || ($form_state['process_input'] && (!isset($element['#access']) || $element['#access'])));
19461946

19471947
// Set the element's #value property.

includes/pager.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function pager_find_page($element = 0) {
200200
* to theme('pager') will render a pager that correctly corresponds to the
201201
* items being displayed.
202202
*
203-
* If the items being displayed result from a database query peformed using
203+
* If the items being displayed result from a database query performed using
204204
* Drupal's database API, and if you have control over the construction of the
205205
* database query, you do not need to call this function directly; instead, you
206206
* can simply extend the query object with the 'PagerDefault' extender before

includes/theme.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ function template_preprocess(&$variables, $hook) {
20972097
}
20982098

20992099
/**
2100-
* Returns hook-independant variables to template_preprocess().
2100+
* Returns hook-independent variables to template_preprocess().
21012101
*/
21022102
function _template_preprocess_default_variables() {
21032103
global $user;

includes/utility.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @param $var
1212
* The variable to export.
1313
* @param $prefix
14-
* A prefix that will be added at the begining of every lines of the output.
14+
* A prefix that will be added at the beginning of every lines of the output.
1515
* @return
1616
* The variable exported in a way compatible to Drupal's coding standards.
1717
*/

modules/contact/contact.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
262262
foreach ($categories as $category) {
263263
$category_name = db_query("SELECT category FROM {contact} WHERE cid = :cid", array(':cid' => $category))->fetchField();
264264
$this->drupalPost('admin/structure/contact/delete/' . $category, array(), t('Delete'));
265-
$this->assertRaw(t('Category %category has been deleted.', array('%category' => $category_name)), t('Category deleted sucessfully.'));
265+
$this->assertRaw(t('Category %category has been deleted.', array('%category' => $category_name)), t('Category deleted successfully.'));
266266
}
267267
}
268268

modules/field/field.crud.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ function field_read_instances($params = array(), $include_additional = array())
727727
* An instance structure.
728728
* @param $field_cleanup
729729
* If TRUE, the field will be deleted as well if its last instance is being
730-
* deleted. If FALSE, it is the caller's responsability to handle the case of
730+
* deleted. If FALSE, it is the caller's responsibility to handle the case of
731731
* fields left without instances. Defaults to TRUE.
732732
*/
733733
function field_delete_instance($instance, $field_cleanup = TRUE) {

modules/field/modules/list/list.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function list_allowed_values($field) {
248248
* Parses a string of 'allowed values' into an array.
249249
*
250250
* @param $string
251-
* The list of allowed values in string format descibed in
251+
* The list of allowed values in string format described in
252252
* list_allowed_values_string().
253253
* @param $field_type
254254
* The field type. Either 'list_number' or 'list_text'.

modules/field/modules/list/tests/list.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class ListFieldUITestCase extends FieldTestCase {
303303
$this->field_name = 'field_list_boolean';
304304
$this->createListField('list_boolean');
305305

306-
// Check that the seperate 'On' and 'Off' form fields work.
306+
// Check that the separate 'On' and 'Off' form fields work.
307307
$on = $this->randomName();
308308
$off = $this->randomName();
309309
$allowed_values = array(1 => $on, 0 => $off);

modules/field_ui/field_ui.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function field_ui_help($path, $arg) {
1717
$output .= '<h3>' . t('Uses') . '</h3>';
1818
$output .= '<dl>';
1919
$output .= '<dt>' . t('Planning fields') . '</dt>';
20-
$output .= '<dd>' . t('There are several decisions you will need to make before definining a field for content, comments, etc.:') . '<dl>';
20+
$output .= '<dd>' . t('There are several decisions you will need to make before defining a field for content, comments, etc.:') . '<dl>';
2121
$output .= '<dt>' . t('What the field will be called') . '</dt>';
2222
$output .= '<dd>' . t('A field has a <em>label</em> (the name displayed in the user interface) and a <em>machine name</em> (the name used internally). The label can be changed after you create the field, if needed, but the machine name cannot be changed after you have created the field.') . '</li>';
2323
$output .= '<dt>' . t('What type of data the field will store') . '</dt>';

modules/filter/filter.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ function filter_dom_serialize($dom_document) {
10901090
* throw exceptions.
10911091
*
10921092
* This function attempts to solve the problem by creating a DocumentFragment
1093-
* and immitating the behavior in drupal_get_js(), commenting the CDATA tag.
1093+
* and imitating the behavior in drupal_get_js(), commenting the CDATA tag.
10941094
*
10951095
* @param $dom_document
10961096
* The DOMDocument containing the $dom_element.

modules/forum/forum.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function forum_menu_local_tasks_alter(&$data, $router_item, $root_path) {
215215
* Implements hook_entity_info_alter().
216216
*/
217217
function forum_entity_info_alter(&$info) {
218-
// Take over URI constuction for taxonomy terms that are forums.
218+
// Take over URI construction for taxonomy terms that are forums.
219219
if ($vid = variable_get('forum_nav_vocabulary', 0)) {
220220
// Within hook_entity_info(), we can't invoke entity_load() as that would
221221
// cause infinite recursion, so we call taxonomy_vocabulary_get_names()

modules/node/node.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ class NodeBuildContent extends DrupalWebTestCase {
19571957
function testNodeRebuildContent() {
19581958
$node = $this->drupalCreateNode();
19591959

1960-
// Set a property in the content array so we can test for its existance later on.
1960+
// Set a property in the content array so we can test for its existence later on.
19611961
$node->content['test_content_property'] = array('#value' => $this->randomString());
19621962
$content = node_build_content($node);
19631963

modules/openid/openid.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class OpenIDFunctionalTestCase extends OpenIDWebTestCase {
324324
function addRedirectedIdentity($identity, $version = 2, $local_id = 'http://example.com/xrds', $claimed_id = NULL, $redirects = 0) {
325325
// Set the final destination URL which is the same as the Claimed
326326
// Identifier, we insert the same identifier also to the provider response,
327-
// but provider could futher change the Claimed ID actually (e.g. it could
327+
// but provider could further change the Claimed ID actually (e.g. it could
328328
// add unique fragment).
329329
variable_set('openid_test_redirect_url', $identity);
330330
variable_set('openid_test_response', array('openid.claimed_id' => $identity));

modules/overlay/overlay.api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* The parent window is initialized when a page is displayed in which the
1717
* overlay might be required to be displayed, so modules can act here if they
18-
* need to take action to accomodate the possibility of the overlay appearing
18+
* need to take action to accommodate the possibility of the overlay appearing
1919
* within a Drupal page.
2020
*/
2121
function hook_overlay_parent_initialize() {

modules/profile/profile.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ class ProfileBlockTestCase extends ProfileTestCase {
399399
}
400400

401401
function testAuthorInformationBlock() {
402-
// Set the block to a region to confirm the block is availble.
402+
// Set the block to a region to confirm the block is available.
403403
$edit = array();
404404
$edit['blocks[profile_author-information][region]'] = 'footer';
405405
$this->drupalPost('admin/structure/block', $edit, t('Save blocks'));

modules/search/search.test

+3-3
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class SearchAdvancedSearchForm extends DrupalWebTestCase {
332332

333333
// Assert that the dummy title doesn't equal the real title.
334334
$dummy_title = 'Lorem ipsum';
335-
$this->assertNotEqual($dummy_title, $this->node->title, t("Dummy title doens't equal node title"));
335+
$this->assertNotEqual($dummy_title, $this->node->title, t("Dummy title doesn't equal node title"));
336336

337337
// Search for the dummy title with a GET query.
338338
$this->drupalGet('search/node/' . $dummy_title);
@@ -584,11 +584,11 @@ class SearchBlockTestCase extends DrupalWebTestCase {
584584
}
585585

586586
function testSearchFormBlock() {
587-
// Set block title to confirm that the interface is availble.
587+
// Set block title to confirm that the interface is available.
588588
$this->drupalPost('admin/structure/block/manage/search/form/configure', array('title' => $this->randomName(8)), t('Save block'));
589589
$this->assertText(t('The block configuration has been saved.'), t('Block configuration set.'));
590590

591-
// Set the block to a region to confirm block is availble.
591+
// Set the block to a region to confirm block is available.
592592
$edit = array();
593593
$edit['blocks[search_form][region]'] = 'footer';
594594
$this->drupalPost('admin/structure/block', $edit, t('Save blocks'));

modules/simpletest/drupal_web_test_case.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ protected function refreshVariables() {
14461446
protected function tearDown() {
14471447
global $user, $language;
14481448

1449-
// In case a fatal error occured that was not in the test process read the
1449+
// In case a fatal error occurred that was not in the test process read the
14501450
// log to pick up any fatal errors.
14511451
simpletest_log_read($this->testId, $this->databasePrefix, get_class($this), TRUE);
14521452

modules/simpletest/files/css_test_files/comment_hacks.css.unoptimized.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/simpletest/simpletest.module

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function simpletest_log_read($test_id, $prefix, $test_class, $during_test = FALS
272272
DrupalTestCase::insertAssert($test_id, $test_class, FALSE, $match[2], $match[1], $caller);
273273
}
274274
else {
275-
// Unkown format, place the entire message in the log.
275+
// Unknown format, place the entire message in the log.
276276
DrupalTestCase::insertAssert($test_id, $test_class, FALSE, $line, 'Fatal error');
277277
}
278278
$found = TRUE;
@@ -398,7 +398,7 @@ function simpletest_generate_file($filename, $width, $lines, $type = 'binary-tex
398398
break;
399399
}
400400
}
401-
$text = wordwrap($text, $width - 1, "\n", TRUE) . "\n"; // Add \n for symetrical file.
401+
$text = wordwrap($text, $width - 1, "\n", TRUE) . "\n"; // Add \n for symmetrical file.
402402

403403
// Create filename.
404404
file_put_contents('public://' . $filename . '.txt', $text);

modules/simpletest/simpletest.pages.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function simpletest_result_form($form, &$form_state, $test_id) {
305305
);
306306
$form['action']['filter']['#default_value'] = ($filter['fail'] ? 'fail' : 'all');
307307

308-
// Catagorized test classes for to be used with selected filter value.
308+
// Categorized test classes for to be used with selected filter value.
309309
$form['action']['filter_pass'] = array(
310310
'#type' => 'hidden',
311311
'#default_value' => implode(',', $filter['pass']),

modules/simpletest/tests/bootstrap.test

+4-4
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,15 @@ class HookBootExitTestCase extends DrupalWebTestCase {
308308
variable_set('page_cache_invoke_hooks', FALSE);
309309
$this->assertTrue(cache_get(url('', array('absolute' => TRUE)), 'cache_page'), t('Page has been cached.'));
310310
$this->drupalGet('');
311-
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_boot'))->fetchField(), $calls, t('hook_boot not called with agressive cache and a cached page.'));
312-
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_exit'))->fetchField(), $calls, t('hook_exit not called with agressive cache and a cached page.'));
311+
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_boot'))->fetchField(), $calls, t('hook_boot not called with aggressive cache and a cached page.'));
312+
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_exit'))->fetchField(), $calls, t('hook_exit not called with aggressive cache and a cached page.'));
313313

314314
// Test with page cache cleared, boot and exit should be called.
315315
$this->assertTrue(db_delete('cache_page')->execute(), t('Page cache cleared.'));
316316
$this->drupalGet('');
317317
$calls++;
318-
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_boot'))->fetchField(), $calls, t('hook_boot called with agressive cache and no cached page.'));
319-
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_exit'))->fetchField(), $calls, t('hook_exit called with agressive cache and no cached page.'));
318+
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_boot'))->fetchField(), $calls, t('hook_boot called with aggressive cache and no cached page.'));
319+
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND message = :message', array(':type' => 'system_test', ':message' => 'hook_exit'))->fetchField(), $calls, t('hook_exit called with aggressive cache and no cached page.'));
320320
}
321321
}
322322

modules/simpletest/tests/database_test.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ class DatabaseSelectComplexTestCase extends DatabaseTestCase {
20962096
*/
20972097
function testCountQueryFieldRemovals() {
20982098
// countQuery should remove all fields and expressions, so this can be
2099-
// tested by adding a non-existant field and expression: if it ends
2099+
// tested by adding a non-existent field and expression: if it ends
21002100
// up in the query, an error will be thrown. If not, it will return the
21012101
// number of records, which in this case happens to be 4 (there are four
21022102
// records in the {test} table).

0 commit comments

Comments
 (0)