Skip to content

Commit

Permalink
Issue #1054848 by barraponto: Fixing common typos through codespell.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
webchick committed Oct 2, 2011
1 parent 9c42142 commit d967abd
Show file tree
Hide file tree
Showing 43 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ Drupal 4.5.0, 2004-10-18
- Filter system:
* Added support for using multiple input formats on the site
* Expanded the embedded PHP-code feature so it can be used everywhere
* Added support for role-dependant filtering, through input formats
* Added support for role-dependent filtering, through input formats
- UI translation:
* Managing translations is now completely done through the administration interface
* Added support for importing/exporting gettext .po files
Expand Down
2 changes: 1 addition & 1 deletion authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function authorize_access_allowed() {
global $conf;

// We have to enable the user and system modules, even to check access and
// display errors via the maintainence theme.
// display errors via the maintenance theme.
$module_list['system']['filename'] = 'modules/system/system.module';
$module_list['user']['filename'] = 'modules/user/user.module';
module_list(TRUE, FALSE, FALSE, $module_list);
Expand Down
2 changes: 1 addition & 1 deletion includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ function drupal_installation_attempted() {
* non-installation time, such as while installing the module from the the
* module administration page.
*
* Example useage:
* Example usage:
* @code
* $t = get_t();
* $translated = $t('translate this');
Expand Down
2 changes: 1 addition & 1 deletion includes/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,7 @@ function drupal_sort_css_js($a, $b) {
* are always groupable, and items of the 'external' type are never groupable.
* This function also ensures that the process of grouping items does not change
* their relative order. This requirement may result in multiple groups for the
* same type, media, and browsers, if needed to accomodate other items in
* same type, media, and browsers, if needed to accommodate other items in
* between.
*
* @param $css
Expand Down
2 changes: 1 addition & 1 deletion includes/database/database.inc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
* }
*
* // $txn goes out of scope here. Unless the transaction was rolled back, it
* // gets automatically commited here.
* // gets automatically committed here.
* }
*
* function my_other_function($id) {
Expand Down
2 changes: 1 addition & 1 deletion includes/database/query.inc
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ class DeleteQuery extends Query implements QueryConditionInterface {
* Executes the DELETE query.
*
* @return
* The return value is dependant on the database connection.
* The return value is dependent on the database connection.
*/
public function execute() {
$values = array();
Expand Down
2 changes: 1 addition & 1 deletion includes/database/sqlite/database.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection {
try {
$count = $this->query('SELECT COUNT(*) FROM ' . $prefix . '.sqlite_master WHERE type = :type AND name NOT LIKE :pattern', array(':type' => 'table', ':pattern' => 'sqlite_%'))->fetchField();

// We can prune the database file if it doens't have any tables.
// We can prune the database file if it doesn't have any tables.
if ($count == 0) {
// Detach the database.
$this->query('DETACH DATABASE :schema', array(':schema' => $prefix));
Expand Down
2 changes: 1 addition & 1 deletion includes/entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
* @param $queried_entities
* Associative array of query results, keyed on the entity ID.
* @param $revision_id
* ID of the revision that was loaded, or FALSE if teh most current revision
* ID of the revision that was loaded, or FALSE if the most current revision
* was loaded.
*/
protected function attachLoad(&$queried_entities, $revision_id = FALSE) {
Expand Down
2 changes: 1 addition & 1 deletion includes/errors.inc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function _drupal_decode_exception($exception) {
}

/**
* Render an error message for an exception without any possibility of a further exception occuring.
* Render an error message for an exception without any possibility of a further exception occurring.
*
* @param $exception
* The exception object that was thrown.
Expand Down
4 changes: 2 additions & 2 deletions includes/form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ function drupal_process_form($form_id, &$form, &$form_state) {
// have set $form_state['cache'] to indicate that the form and form state
// shall be cached. But the form may only be cached if the 'no_cache' property
// is not set to TRUE. Only cache $form as it was prior to form_builder(),
// because form_builder() must run for each request to accomodate new user
// because form_builder() must run for each request to accommodate new user
// input. Rebuilt forms are not cached here, because drupal_rebuild_form()
// already takes care of that.
if (!$form_state['rebuild'] && $form_state['cache'] && empty($form_state['no_cache'])) {
Expand Down Expand Up @@ -1941,7 +1941,7 @@ function _form_builder_handle_input_element($form_id, &$element, &$form_state) {
// drupal_form_submit() must not be able to get around this. Forms that set
// #access=FALSE on an element usually allow access for some users, so forms
// submitted with drupal_form_submit() may bypass access restriction and be
// treated as high-privelege users instead.
// treated as high-privilege users instead.
$process_input = empty($element['#disabled']) && ($form_state['programmed'] || ($form_state['process_input'] && (!isset($element['#access']) || $element['#access'])));

// Set the element's #value property.
Expand Down
2 changes: 1 addition & 1 deletion includes/pager.inc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function pager_find_page($element = 0) {
* to theme('pager') will render a pager that correctly corresponds to the
* items being displayed.
*
* If the items being displayed result from a database query peformed using
* If the items being displayed result from a database query performed using
* Drupal's database API, and if you have control over the construction of the
* database query, you do not need to call this function directly; instead, you
* can simply extend the query object with the 'PagerDefault' extender before
Expand Down
2 changes: 1 addition & 1 deletion includes/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ function template_preprocess(&$variables, $hook) {
}

/**
* Returns hook-independant variables to template_preprocess().
* Returns hook-independent variables to template_preprocess().
*/
function _template_preprocess_default_variables() {
global $user;
Expand Down
2 changes: 1 addition & 1 deletion includes/utility.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @param $var
* The variable to export.
* @param $prefix
* A prefix that will be added at the begining of every lines of the output.
* A prefix that will be added at the beginning of every lines of the output.
* @return
* The variable exported in a way compatible to Drupal's coding standards.
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/contact/contact.test
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
foreach ($categories as $category) {
$category_name = db_query("SELECT category FROM {contact} WHERE cid = :cid", array(':cid' => $category))->fetchField();
$this->drupalPost('admin/structure/contact/delete/' . $category, array(), t('Delete'));
$this->assertRaw(t('Category %category has been deleted.', array('%category' => $category_name)), t('Category deleted sucessfully.'));
$this->assertRaw(t('Category %category has been deleted.', array('%category' => $category_name)), t('Category deleted successfully.'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/field/field.crud.inc
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ function field_read_instances($params = array(), $include_additional = array())
* An instance structure.
* @param $field_cleanup
* If TRUE, the field will be deleted as well if its last instance is being
* deleted. If FALSE, it is the caller's responsability to handle the case of
* deleted. If FALSE, it is the caller's responsibility to handle the case of
* fields left without instances. Defaults to TRUE.
*/
function field_delete_instance($instance, $field_cleanup = TRUE) {
Expand Down
2 changes: 1 addition & 1 deletion modules/field/modules/list/list.module
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function list_allowed_values($field) {
* Parses a string of 'allowed values' into an array.
*
* @param $string
* The list of allowed values in string format descibed in
* The list of allowed values in string format described in
* list_allowed_values_string().
* @param $field_type
* The field type. Either 'list_number' or 'list_text'.
Expand Down
2 changes: 1 addition & 1 deletion modules/field/modules/list/tests/list.test
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class ListFieldUITestCase extends FieldTestCase {
$this->field_name = 'field_list_boolean';
$this->createListField('list_boolean');

// Check that the seperate 'On' and 'Off' form fields work.
// Check that the separate 'On' and 'Off' form fields work.
$on = $this->randomName();
$off = $this->randomName();
$allowed_values = array(1 => $on, 0 => $off);
Expand Down
2 changes: 1 addition & 1 deletion modules/field_ui/field_ui.module
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function field_ui_help($path, $arg) {
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Planning fields') . '</dt>';
$output .= '<dd>' . t('There are several decisions you will need to make before definining a field for content, comments, etc.:') . '<dl>';
$output .= '<dd>' . t('There are several decisions you will need to make before defining a field for content, comments, etc.:') . '<dl>';
$output .= '<dt>' . t('What the field will be called') . '</dt>';
$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>';
$output .= '<dt>' . t('What type of data the field will store') . '</dt>';
Expand Down
2 changes: 1 addition & 1 deletion modules/filter/filter.module
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ function filter_dom_serialize($dom_document) {
* throw exceptions.
*
* This function attempts to solve the problem by creating a DocumentFragment
* and immitating the behavior in drupal_get_js(), commenting the CDATA tag.
* and imitating the behavior in drupal_get_js(), commenting the CDATA tag.
*
* @param $dom_document
* The DOMDocument containing the $dom_element.
Expand Down
2 changes: 1 addition & 1 deletion modules/forum/forum.module
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function forum_menu_local_tasks_alter(&$data, $router_item, $root_path) {
* Implements hook_entity_info_alter().
*/
function forum_entity_info_alter(&$info) {
// Take over URI constuction for taxonomy terms that are forums.
// Take over URI construction for taxonomy terms that are forums.
if ($vid = variable_get('forum_nav_vocabulary', 0)) {
// Within hook_entity_info(), we can't invoke entity_load() as that would
// cause infinite recursion, so we call taxonomy_vocabulary_get_names()
Expand Down
2 changes: 1 addition & 1 deletion modules/node/node.test
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ class NodeBuildContent extends DrupalWebTestCase {
function testNodeRebuildContent() {
$node = $this->drupalCreateNode();

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

Expand Down
2 changes: 1 addition & 1 deletion modules/openid/openid.test
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class OpenIDFunctionalTestCase extends OpenIDWebTestCase {
function addRedirectedIdentity($identity, $version = 2, $local_id = 'http://example.com/xrds', $claimed_id = NULL, $redirects = 0) {
// Set the final destination URL which is the same as the Claimed
// Identifier, we insert the same identifier also to the provider response,
// but provider could futher change the Claimed ID actually (e.g. it could
// but provider could further change the Claimed ID actually (e.g. it could
// add unique fragment).
variable_set('openid_test_redirect_url', $identity);
variable_set('openid_test_response', array('openid.claimed_id' => $identity));
Expand Down
2 changes: 1 addition & 1 deletion modules/overlay/overlay.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The parent window is initialized when a page is displayed in which the
* overlay might be required to be displayed, so modules can act here if they
* need to take action to accomodate the possibility of the overlay appearing
* need to take action to accommodate the possibility of the overlay appearing
* within a Drupal page.
*/
function hook_overlay_parent_initialize() {
Expand Down
2 changes: 1 addition & 1 deletion modules/profile/profile.test
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class ProfileBlockTestCase extends ProfileTestCase {
}

function testAuthorInformationBlock() {
// Set the block to a region to confirm the block is availble.
// Set the block to a region to confirm the block is available.
$edit = array();
$edit['blocks[profile_author-information][region]'] = 'footer';
$this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
Expand Down
6 changes: 3 additions & 3 deletions modules/search/search.test
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class SearchAdvancedSearchForm extends DrupalWebTestCase {

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

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

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

// Set the block to a region to confirm block is availble.
// Set the block to a region to confirm block is available.
$edit = array();
$edit['blocks[search_form][region]'] = 'footer';
$this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
Expand Down
2 changes: 1 addition & 1 deletion modules/simpletest/drupal_web_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ protected function refreshVariables() {
protected function tearDown() {
global $user, $language;

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

Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions modules/simpletest/simpletest.module
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function simpletest_log_read($test_id, $prefix, $test_class, $during_test = FALS
DrupalTestCase::insertAssert($test_id, $test_class, FALSE, $match[2], $match[1], $caller);
}
else {
// Unkown format, place the entire message in the log.
// Unknown format, place the entire message in the log.
DrupalTestCase::insertAssert($test_id, $test_class, FALSE, $line, 'Fatal error');
}
$found = TRUE;
Expand Down Expand Up @@ -398,7 +398,7 @@ function simpletest_generate_file($filename, $width, $lines, $type = 'binary-tex
break;
}
}
$text = wordwrap($text, $width - 1, "\n", TRUE) . "\n"; // Add \n for symetrical file.
$text = wordwrap($text, $width - 1, "\n", TRUE) . "\n"; // Add \n for symmetrical file.

// Create filename.
file_put_contents('public://' . $filename . '.txt', $text);
Expand Down
2 changes: 1 addition & 1 deletion modules/simpletest/simpletest.pages.inc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function simpletest_result_form($form, &$form_state, $test_id) {
);
$form['action']['filter']['#default_value'] = ($filter['fail'] ? 'fail' : 'all');

// Catagorized test classes for to be used with selected filter value.
// Categorized test classes for to be used with selected filter value.
$form['action']['filter_pass'] = array(
'#type' => 'hidden',
'#default_value' => implode(',', $filter['pass']),
Expand Down
8 changes: 4 additions & 4 deletions modules/simpletest/tests/bootstrap.test
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ class HookBootExitTestCase extends DrupalWebTestCase {
variable_set('page_cache_invoke_hooks', FALSE);
$this->assertTrue(cache_get(url('', array('absolute' => TRUE)), 'cache_page'), t('Page has been cached.'));
$this->drupalGet('');
$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.'));
$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.'));
$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.'));
$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.'));

// Test with page cache cleared, boot and exit should be called.
$this->assertTrue(db_delete('cache_page')->execute(), t('Page cache cleared.'));
$this->drupalGet('');
$calls++;
$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.'));
$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.'));
$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.'));
$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.'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/simpletest/tests/database_test.test
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@ class DatabaseSelectComplexTestCase extends DatabaseTestCase {
*/
function testCountQueryFieldRemovals() {
// countQuery should remove all fields and expressions, so this can be
// tested by adding a non-existant field and expression: if it ends
// tested by adding a non-existent field and expression: if it ends
// up in the query, an error will be thrown. If not, it will return the
// number of records, which in this case happens to be 4 (there are four
// records in the {test} table).
Expand Down
Loading

0 comments on commit d967abd

Please sign in to comment.