diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index f8a9e30..909f543 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1126,7 +1126,13 @@ function comment_form_node_type_form_alter(&$form, $form_state) { } /** - * Comment translation settings submit handler. + * Form submission handler for node_type_form(). + * + * This handles the comment translation settings added by + * comment_form_node_type_form_alter(). + * + * @see comment_form_node_type_form_alter() + * @see node_type_form() */ function comment_translation_configuration_element_submit($form, &$form_state) { // The comment translation settings form element is embedded into the node diff --git a/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php b/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php index 7a37a2a..025d550 100644 --- a/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php +++ b/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php @@ -23,8 +23,8 @@ * may need to be defined, but none of them is required unless the entity path * is different from ENTITY_TYPE/%ENTITY_TYPE (e.g. taxonomy/term/1), in which * case at least the 'menu_base_path' key must be defined. This is used to - * determine the view and edit paths if they follow the standard path patterns, - * otherwise the 'menu_view_path' and 'menu_edit_path' key must be defined. If + * determine the view and edit paths if they follow the standard path patterns. + * Otherwise the 'menu_view_path' and 'menu_edit_path' keys must be defined. If * an entity type is enabled for translation and no menu path key is defined, * the following defaults will be assumed: * - menu_base_path: ENTITY_TYPE/%ENTITY_TYPE @@ -61,10 +61,10 @@ * This is how entity info would look for a module defining a new translatable * entity type: * @code - * function mymodule_entity_info_alter(array &info) { + * function mymodule_entity_info_alter(array &$info) { * $info['myentity'] += array( * 'menu_base_path' => 'mymodule/myentity/%my_entity_loader', - * 'menu_path_widlcard' => '%my_entity_loader', + * 'menu_path_wildcard' => '%my_entity_loader', * 'translation_controller_class' => 'Drupal\mymodule\MyEntityTranslationController', * 'translation' => array( * 'translation_entity' => array( diff --git a/core/modules/translation_entity/translation_entity.admin.inc b/core/modules/translation_entity/translation_entity.admin.inc index b4213e4..34e3b37 100644 --- a/core/modules/translation_entity/translation_entity.admin.inc +++ b/core/modules/translation_entity/translation_entity.admin.inc @@ -173,7 +173,7 @@ function translation_entity_translatable_batch($translatable, $field_name, &$con continue; } - // We need a two-steps approach while updating field translations: given + // We need a two-step approach while updating field translations: given // that field-specific update functions might rely on the stored values to // perform their processing, see for instance file_field_update(), first // we need to store the new translations and only after we can remove the diff --git a/core/modules/translation_entity/translation_entity.module b/core/modules/translation_entity/translation_entity.module index d4a6e8f..a6dc4ce 100644 --- a/core/modules/translation_entity/translation_entity.module +++ b/core/modules/translation_entity/translation_entity.module @@ -32,9 +32,9 @@ function translation_entity_help($path, $arg) { $output .= '