Commit 23e7b477 authored by alexpott's avatar alexpott

Issue #2279105 by mgifford, nidaismailshah, thedavidmeister, amitgoyal,...

Issue #2279105 by mgifford, nidaismailshah, thedavidmeister, amitgoyal, rpayanm, ameenkhan07, rakhimandhania, jhodgdon: Remove as many "..." and ellipsis characters from the codebase as possible without altering the meaning of text
parent e1c24018
......@@ -97,14 +97,14 @@ AddEncoding gzip svgz
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# (http://example.com/foo will be redirected to http://www.example.com/foo)
# uncomment the following:
# RewriteCond %{HTTP_HOST} .
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# (http://www.example.com/foo will be redirected to http://example.com/foo)
# uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
......
......@@ -96,7 +96,7 @@ Drupal 8.0, xxxx-xx-xx (development version)
* Added language selectors to most configuration options (views, menus,
etc.)
* Added a configuration translation user interface that works with any
configuration with translatable values (blocks, views, fields, etc).
configuration with translatable values (blocks, views, fields, etc.).
* Added language options to block visibility.
* Much improved language APIs for developers:
* Added simple APIs and hooks to save/delete/update languages.
......@@ -682,7 +682,7 @@ Drupal 4.7.0, 2006-05-01
- Added support for PHP5's 'mysqli' extension.
- Search module:
* Made indexer smarter and more robust.
* Added advanced search operators (e.g. phrase, node type, ...).
* Added advanced search operators (e.g., phrase, node type, etc.).
* Added customizable result ranking.
- PostgreSQL support:
* Removed dependency on PL/pgSQL procedural language.
......@@ -1059,7 +1059,7 @@ Drupal 4.0.0, 2002-06-15
* Made each cloud site have its own settings.
* Modules and themes can now be enabled/disabled using the administration pages.
* Added URL abstraction for links.
* Usability changes (renamed links, better UI, etc).
* Usability changes (renamed links, better UI, etc.).
- Collaboratively revised and expanded the Drupal documentation.
Drupal 3.0.1, 2001-10-15
......
......@@ -42,7 +42,7 @@ class NestedArray {
* $key_exists = NULL;
* $value = NestedArray::getValue($form, $parents, $key_exists);
* if ($key_exists) {
* // ... do something with $value ...
* // Do something with $value.
* }
* @endcode
*
......
......@@ -176,8 +176,7 @@ protected function loadNestedFile($matches) {
$directory = $directory == '.' ? '' : $directory .'/';
// Alter all internal url() paths. Leave external paths alone. We don't need
// to normalize absolute paths here (i.e. remove folder/... segments)
// because that will be done later.
// to normalize absolute paths here because that will be done later.
return preg_replace('/url\(\s*([\'"]?)(?![a-z]+:|\/+)([^\'")]+)([\'"]?)\s*\)/i', 'url(\1' . $directory . '\2\3)', $file);
}
......
......@@ -260,7 +260,7 @@ public function renameTable($table, $new_name) {
$schema = $this->introspectSchema($table);
// SQLite doesn't allow you to rename tables outside of the current
// database. So the syntax '...RENAME TO database.table' would fail.
// database. So the syntax '... RENAME TO database.table' would fail.
// So we must determine the full table name here rather than surrounding
// the table with curly braces in case the db_prefix contains a reference
// to a database outside of our existing database.
......
......@@ -41,7 +41,7 @@ interface EntityFormDisplayInterface extends EntityDisplayInterface {
* // widget is 'single-value' (provides the input for one field value,
* // most common case), and will therefore be repeated as many times as
* // needed, or 'multiple-values' (one single widget allows the input of
* // several values, e.g checkboxes, select box...).
* // several values; e.g., checkboxes, select box, etc.).
* 'field_foo' => array(
* '#access' => TRUE if the current user has 'edit' grants for the field,
* FALSE if not.
......
......@@ -66,18 +66,18 @@ public function settingsSummary();
* hook_field_widget_WIDGET_TYPE_form_alter().
*
* The FAPI element callbacks (such as #process, #element_validate,
* #value_callback...) used by the widget do not have access to the original
* $field_definition passed to the widget's constructor. Therefore, if any
* information is needed from that definition by those callbacks, the widget
* implementing this method, or a hook_field_widget[_WIDGET_TYPE]_form_alter()
* implementation, must extract the needed properties from the field
* definition and set them as ad-hoc $element['#custom'] properties, for later
* use by its element callbacks.
* #value_callback, etc.) used by the widget do not have access to the
* original $field_definition passed to the widget's constructor. Therefore,
* if any information is needed from that definition by those callbacks, the
* widget implementing this method, or a
* hook_field_widget[_WIDGET_TYPE]_form_alter() implementation, must extract
* the needed properties from the field definition and set them as ad-hoc
* $element['#custom'] properties, for later use by its element callbacks.
*
* @param \Drupal\Core\Field\FieldItemListInterface $items
* Array of default values for this field.
* @param int $delta
* The order of this item in the array of sub-elements (0, 1, 2, etc).
* The order of this item in the array of sub-elements (0, 1, 2, etc.).
* @param array $element
* A form element array containing basic properties for the widget:
* - #field_parents: The 'parents' space for the field in the form. Most
......
......@@ -385,7 +385,7 @@ public function getUniqueMachineName(BlockInterface $block) {
}, $block_ids);
// Iterate through potential IDs until we get a new one. E.g.
// 'plugin', 'plugin_2', 'plugin_3'...
// 'plugin', 'plugin_2', 'plugin_3', etc.
$count = 1;
$machine_default = $suggestion;
while (in_array($machine_default, $block_ids)) {
......
......@@ -250,7 +250,7 @@ function comment_node_view_alter(array &$build, EntityInterface $node, EntityVie
* @param \Drupal\comment\CommentInterface $comment
* The comment object.
* @param $view_mode
* (optional) View mode, e.g. 'full', 'teaser'... Defaults to 'full'.
* (optional) View mode; e.g., 'full', 'teaser', etc. Defaults to 'full'.
* @param $langcode
* (optional) A language code to use for rendering. Defaults to the global
* content language of the current request.
......@@ -268,7 +268,7 @@ function comment_view(CommentInterface $comment, $view_mode = 'full', $langcode
* @param $comments
* An array of comments as returned by entity_load_multiple().
* @param $view_mode
* View mode, e.g. 'full', 'teaser'...
* View mode; e.g., 'full', 'teaser', etc.
* @param $langcode
* (optional) A string indicating the language field values are to be shown
* in. If no language is provided the current content language is used.
......
......@@ -131,9 +131,9 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
$selection_plugins = \Drupal::service('plugin.manager.entity_reference_selection')->getSelectionGroups($this->getSetting('target_type'));
$handlers_options = array();
foreach (array_keys($selection_plugins) as $selection_group_id) {
// We only display base plugins (e.g. 'default', 'views', ...) and not
// entity type specific plugins (e.g. 'default:node', 'default:user',
// ...).
// We only display base plugins (e.g., 'default', 'views', etc.) and not
// entity type specific plugins (e.g., 'default:node', 'default:user',
// etc.).
if (array_key_exists($selection_group_id, $selection_plugins[$selection_group_id])) {
$handlers_options[$selection_group_id] = SafeMarkup::checkPlain($selection_plugins[$selection_group_id][$selection_group_id]['label']);
}
......
......@@ -259,7 +259,7 @@ function testFieldFormUnlimited() {
$this->assertFieldByName("{$field_name}[0][value]", '', 'Widget 1 is displayed');
$this->assertFieldByName("{$field_name}[1][value]", '', 'New widget is displayed');
$this->assertNoField("{$field_name}[2][value]", 'No extraneous widget is displayed');
// TODO : check that non-field inputs are preserved ('title')...
// TODO : check that non-field inputs are preserved ('title'), etc.
// Yet another time so that we can play with more values -> 3 widgets.
$this->drupalPostForm(NULL, array(), t('Add another item'));
......
......@@ -582,7 +582,7 @@ function testUrlFilter() {
),
// Absolute URL protocols.
// The list to test is found in the beginning of _filter_url() at
// $protocols = $this->config('system.filter')->get('protocols')... (approx line 1555).
// $protocols = $this->config('system.filter')->get('protocols').
'
https://example.com,
ftp://ftp.example.com,
......
......@@ -177,7 +177,7 @@ function image_file_download($uri) {
// Confirm there's at least one module granting access and none denying access.
if (!empty($headers) && !in_array(-1, $headers)) {
return array(
// Send headers describing the image's size, and MIME-type...
// Send headers describing the image's size, and MIME-type.
'Content-Type' => $image->getMimeType(),
'Content-Length' => $image->getFileSize(),
// By not explicitly setting them here, this uses normal Drupal
......
......@@ -433,7 +433,7 @@ protected function dbStringSelect(array $conditions, array $options = array()) {
}
}
// Process other options, string filter, query limit, etc...
// Process other options, string filter, query limit, etc.
if (!empty($options['filters'])) {
if (count($options['filters']) > 1) {
$filter = db_or();
......
......@@ -156,7 +156,7 @@ public function getValues(array $fields);
*
* Locations are arbitrary pairs of type and name strings, used to store
* information about the origins of the string, like the file name it
* was found on, the path on which it was discovered, etc...
* was found on, the path on which it was discovered, etc.
*
* A string can have any number of locations since the same string may be
* found on different places of Drupal code and configuration.
......@@ -179,7 +179,7 @@ public function getLocations($check_only = FALSE);
* @param string $name
* Location name. Drupal path in case of online discovered translations,
* file path in case of imported strings, configuration name for strings
* that come from configuration, etc...
* that come from configuration, etc.
*
* @return $this
*/
......
......@@ -567,7 +567,7 @@ function node_theme_suggestions_node(array $variables) {
* An associative array containing:
* - elements: An array of elements to display in view mode.
* - node: The node object.
* - view_mode: View mode; e.g., 'full', 'teaser'...
* - view_mode: View mode; e.g., 'full', 'teaser', etc.
*/
function template_preprocess_node(&$variables) {
$variables['view_mode'] = $variables['elements']['#view_mode'];
......@@ -785,7 +785,7 @@ function node_get_recent($number = 10) {
* @param \Drupal\node\NodeInterface $node
* A node entity.
* @param $view_mode
* (optional) View mode, e.g., 'full', 'teaser'... Defaults to 'full.'
* (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'full.'
* @param $langcode
* (optional) A language code to use for rendering. Defaults to NULL which is
* the global content language of the current request.
......@@ -803,7 +803,7 @@ function node_view(NodeInterface $node, $view_mode = 'full', $langcode = NULL) {
* @param $nodes
* An array of nodes as returned by Node::loadMultiple().
* @param $view_mode
* (optional) View mode, e.g., 'full', 'teaser'... Defaults to 'teaser.'
* (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'teaser.'
* @param $langcode
* (optional) A language code to use for rendering. Defaults to the global
* content language of the current request.
......
......@@ -469,7 +469,7 @@ function simpletest_log_read($test_id, $database_prefix, $test_class) {
* $groups['Block'] => array(
* 'BlockTestCase' => array(
* 'name' => 'Block functionality',
* 'description' => 'Add, edit and delete custom block...',
* 'description' => 'Add, edit and delete custom block.',
* 'group' => 'Block',
* ),
* );
......
......@@ -1516,7 +1516,7 @@ function hook_entity_build_defaults_alter(array &$build, \Drupal\Core\Entity\Ent
* An associative array containing:
* - entity_type: The entity type, e.g., 'node' or 'user'.
* - bundle: The bundle, e.g., 'page' or 'article'.
* - view_mode: The view mode, e.g. 'full', 'teaser'...
* - view_mode: The view mode, e.g., 'full', 'teaser', etc.
*
* @ingroup entity_crud
*/
......@@ -1625,7 +1625,7 @@ function hook_ENTITY_TYPE_prepare_form(\Drupal\Core\Entity\EntityInterface $enti
* An associative array containing:
* - entity_type: The entity type, e.g., 'node' or 'user'.
* - bundle: The bundle, e.g., 'page' or 'article'.
* - form_mode: The form mode, e.g. 'default', 'profile', 'register'...
* - form_mode: The form mode; e.g., 'default', 'profile', 'register', etc.
*
* @ingroup entity_crud
*/
......
......@@ -179,7 +179,7 @@ function taxonomy_check_vocabulary_hierarchy(VocabularyInterface $vocabulary, $c
* @param \Drupal\taxonomy\Entity\Term $term
* A taxonomy term object.
* @param string $view_mode
* View mode, e.g. 'full', 'teaser'...
* View mode; e.g., 'full', 'teaser', etc.
* @param string $langcode
* (optional) A language code to use for rendering. Defaults to the global
* content language of the current request.
......@@ -197,7 +197,7 @@ function taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) {
* @param array $terms
* An array of taxonomy terms as returned by Term::loadMultiple().
* @param string $view_mode
* View mode, e.g. 'full', 'teaser'...
* View mode; e.g., 'full', 'teaser', etc.
* @param string $langcode
* (optional) A language code to use for rendering. Defaults to the global
* content language of the current request.
......
......@@ -341,9 +341,9 @@ function testUpdateBrokenFetchURL() {
// It should say we failed to get data, not that we're missing an update.
$this->assertNoText(t('Update available'));
// We need to check that this string is found as part of a project row,
// not just in the "Failed to get available update data for ..." message
// at the top of the page.
// We need to check that this string is found as part of a project row, not
// just in the "Failed to get available update data" message at the top of
// the page.
$this->assertRaw('<div class="project-update__status">' . t('Failed to get available update data'));
// We should see the output messages from fetching manually.
......
......@@ -883,7 +883,7 @@ function user_view($account, $view_mode = 'full', $langcode = NULL) {
* @param \Drupal\user\UserInterface[] $account
* An array of user accounts as returned by User::loadMultiple().
* @param string $view_mode
* (optional) View mode, e.g., 'full', 'teaser'... Defaults to 'teaser'.
* (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'teaser.'
* @param string|null $langcode
* (optional) A language code to use for rendering. Defaults to the global
* content language of the current request.
......
......@@ -130,7 +130,8 @@ public function buildForm(array $form, FormStateInterface $form_state, ViewExecu
$options = array('query' => $query);
$form['#action'] = $view->hasUrl() ? $view->getUrl()->setOptions($options)->toString() : Url::fromRoute('<current>')->setOptions($options)->toString();
// Tell the preprocessor whether it should hide the header, footer, pager...
// Tell the preprocessor whether it should hide the header, footer, pager,
// etc.
$form['show_view_elements'] = array(
'#type' => 'value',
'#value' => ($step == 'views_form_views_form') ? TRUE : FALSE,
......
......@@ -1408,7 +1408,7 @@ function execute(ViewExecutable $view) {
$count_query = $count_query->countQuery();
// Add additional arguments as a fake condition.
// XXX: this doesn't work... because PDO mandates that all bound arguments
// XXX: this doesn't work, because PDO mandates that all bound arguments
// are used on the query. TODO: Find a better way to do this.
if (!empty($additional_arguments)) {
// $query->where('1 = 1', $additional_arguments);
......
......@@ -269,7 +269,7 @@ protected function leftQuery($options) {
// Not sure why, but our sort order clause doesn't have a table.
// TODO: the call to addHandler() above to add the sort handler is probably
// wrong -- needs attention from someone who understands it.
// In the meantime, this works, but with a leap of faith...
// In the meantime, this works, but with a leap of faith.
$orders = &$subquery->getOrderBy();
foreach ($orders as $order_key => $order) {
// But if we're using a whole view, we don't know what we have!
......
......@@ -90,7 +90,7 @@ public function testPluginInstances() {
if ($reflection->isSubclassOf('Drupal\views\Plugin\views\PluginBase')) {
// Create a plugin instance and check what it is. This is not just
// good to check they can be created but for throwing any notices for
// method signatures etc... too.
// method signatures etc. too.
$instance = $manager->createInstance($id);
$this->assertTrue($instance instanceof $definition['class'], format_string('Instance of @type:@id created', array('@type' => $type, '@id' => $id)));
}
......
......@@ -183,7 +183,7 @@ public function testGroupByNone() {
*/
public function testGroupByCountOnlyFilters() {
// Check if GROUP BY and HAVING are included when a view
// Doesn't display SUM, COUNT, MAX... functions in SELECT statement
// doesn't display SUM, COUNT, MAX, etc. functions in SELECT statement.
for ($x = 0; $x < 10; $x++) {
$this->storage->create(array('name' => 'name1'))->save();
......
......@@ -200,7 +200,7 @@ public function testPathDestination() {
* @param $unique_href_part
* A unique string that is expected to occur within the href of the desired
* link. For example, if the link URL is expected to look like
* "admin/structure/views/view/glossary/...", then "/glossary/" could be
* "admin/structure/views/view/glossary/*", then "/glossary/" could be
* passed as the expected unique string.
*
* @return
......
......@@ -322,7 +322,7 @@ function views_ui_views_analyze(ViewExecutable $view) {
}
/**
* Truncate strings to a set length and provide a ... if they truncated.
* Truncate strings to a set length and provide a '...' if they truncated.
*
* This is often used in the UI to ensure long strings fit.
*/
......
......@@ -35,7 +35,7 @@
</rule>
<!-- To redirect all users to access the site WITH the 'www.' prefix,
http://example.com/... will be redirected to http://www.example.com/...)
http://example.com/foo will be redirected to http://www.example.com/foo)
adapt and uncomment the following: -->
<!--
<rule name="Redirect to add www" stopProcessing="true">
......@@ -48,7 +48,7 @@
-->
<!-- To redirect all users to access the site WITHOUT the 'www.' prefix,
http://www.example.com/... will be redirected to http://example.com/...)
http://www.example.com/foo will be redirected to http://example.com/foo)
adapt and uncomment the following: -->
<!--
<rule name="Redirect to remove www" stopProcessing="true">
......
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