Commit f9bb7739 authored by webchick's avatar webchick

Issue #2165683 by Kartagis: Several British spelled words.

parent 24d57a0a
......@@ -1674,7 +1674,7 @@ function form_process_table($element, &$form_state) {
if ($element['#multiple']) {
$value = is_array($element['#value']) ? $element['#value'] : array();
}
// Advanced selection behaviour makes no sense for radios.
// Advanced selection behavior makes no sense for radios.
else {
$element['#js_select'] = FALSE;
}
......
......@@ -74,7 +74,7 @@ public static function open(array &$connection_options = array()) {
\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE,
// Make sure MySQL returns all matched rows on update queries including
// rows that actually didn't have to be updated because the values didn't
// change. This matches common behaviour among other database systems.
// change. This matches common behavior among other database systems.
\PDO::MYSQL_ATTR_FOUND_ROWS => TRUE,
// Because MySQL's prepared statements skip the query cache, because it's dumb.
\PDO::ATTR_EMULATE_PREPARES => TRUE,
......
......@@ -22,7 +22,7 @@ Drupal.ajax = Drupal.ajax || {};
Drupal.behaviors.AJAX = {
attach: function (context, settings) {
function loadAjaxBehaviour(base) {
function loadAjaxBehavior(base) {
var element_settings = settings.ajax[base];
if (typeof element_settings.selector === 'undefined') {
element_settings.selector = '#' + base;
......@@ -36,7 +36,7 @@ Drupal.behaviors.AJAX = {
// Load all Ajax behaviors specified in the settings.
for (var base in settings.ajax) {
if (settings.ajax.hasOwnProperty(base)) {
loadAjaxBehaviour(base);
loadAjaxBehavior(base);
}
}
......
......@@ -578,7 +578,7 @@ Drupal.tableDrag.prototype.dragRow = function (event, self) {
};
/**
* Pointerup behaviour.
* Pointerup behavior.
*/
Drupal.tableDrag.prototype.dropRow = function (event, self) {
var droppedRow, $droppedRow;
......
......@@ -49,7 +49,7 @@ public function getAllFields();
* Utility method to add the default comment field to an entity.
*
* Attaches a comment field named 'comment' to the given entity type and
* bundle. Largely replicates the default behaviour in Drupal 7 and earlier.
* bundle. Largely replicates the default behavior in Drupal 7 and earlier.
*
* @param string $entity_type
* The entity type to attach the default comment field to.
......
......@@ -67,7 +67,7 @@ public function buildForm(array $form, array &$form_state) {
}
$form['overwrite'] = array(
'#type' => 'radios',
'#title' => t('Import behaviour'),
'#title' => t('Import behavior'),
'#default_value' => $default,
'#options' => array(
LOCALE_TRANSLATION_OVERWRITE_NONE => t("Don't overwrite existing translations."),
......
......@@ -202,7 +202,7 @@ function menu_link_maintain($module, $op, $link_path, $link_title = NULL) {
* Implements hook_system_breadcrumb_alter().
*/
function menu_link_system_breadcrumb_alter(array &$breadcrumb, array $attributes, array $context) {
// Custom breadcrumb behaviour for editing menu links, we append a link to
// Custom breadcrumb behavior for editing menu links, we append a link to
// the menu in which the link is found.
if (!empty($attributes[RouteObjectInterface::ROUTE_NAME]) && $attributes[RouteObjectInterface::ROUTE_NAME] == 'menu.link_edit' && !empty($attributes['menu_link'])) {
$menu_link = $attributes['menu_link'];
......
......@@ -736,7 +736,7 @@ function hook_entity_field_access($operation, \Drupal\Core\Field\FieldDefinition
}
/**
* Alters the default access behaviour for a given field.
* Alters the default access behavior for a given field.
*
* Use this hook to override access grants from another module. Note that the
* original default access flag is masked under the ':default' key.
......
......@@ -130,7 +130,7 @@ function testUpdateAffectedRows() {
// condition and therefore are affected by the query, even though two of
// them actually don't have to be changed because their value was already
// 'sleep'. Still, execute() should return 5 affected rows, not only 3,
// because that's cross-db expected behaviour.
// because that's cross-db expected behavior.
$num_rows = db_update('test_task')
->condition('priority', 1, '<>')
->fields(array('task' => 'sleep'))
......
......@@ -1952,7 +1952,7 @@ function form_test_redirect($form, &$form_state) {
}
/**
* Form submit handler to test different redirect behaviours.
* Form submit handler to test different redirect behaviors.
*/
function form_test_redirect_submit(&$form, &$form_state) {
if (!empty($form_state['values']['redirection'])) {
......
......@@ -62,7 +62,7 @@ protected function setUp() {
}
/**
* Checks the behavior of the page for access denied/not found behaviours.
* Checks the behavior of the page for access denied/not found behaviors.
*/
public function testPageResponses() {
// @todo Importing a route should fire a container rebuild.
......
......@@ -42,7 +42,7 @@ public static function getInfo() {
public function testStorePagerSettings() {
$admin_user = $this->drupalCreateUser(array('administer views', 'administer site configuration'));
$this->drupalLogin($admin_user);
// Test behaviour described in http://drupal.org/node/652712#comment-2354918.
// Test behavior described in http://drupal.org/node/652712#comment-2354918.
$this->drupalGet('admin/structure/views/view/test_view/edit');
......@@ -64,7 +64,7 @@ public function testStorePagerSettings() {
$this->drupalGet('admin/structure/views/view/test_view/edit');
$this->assertText('Mini', 'Changed pager plugin, should change some text');
// Test behaviour described in http://drupal.org/node/652712#comment-2354400
// Test behavior described in http://drupal.org/node/652712#comment-2354400
$view = views_get_view('test_store_pager_settings');
// Make it editable in the admin interface.
$view->save();
......
......@@ -354,7 +354,7 @@ public function testNonExistingTableGetCache() {
}
/**
* Tests the cache backend behaviour with requesting the same table multiple
* Tests the cache backend behavior with requesting the same table multiple
*/
public function testCacheCallsWithSameTableMultipleTimes() {
$expected_views_data = $this->viewsData();
......
......@@ -185,7 +185,7 @@ function hook_views_data() {
// - filter: A description of any filter handler for the table field.
// - argument: A description of any argument handler for the table field.
// - area: A description of any handler for adding content to header,
// footer or as no result behaviour.
// footer or as no result behavior.
//
// The handler descriptions are described with examples below.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment