Commit 3937bda8 authored by alexpott's avatar alexpott

Issue #2243549 by agerson, cs_shadow | jhodgdon: Text changes needed as...

Issue #2243549 by agerson, cs_shadow | jhodgdon: Text changes needed as follow-up to Menu UI module rename.
parent d196e8fb
......@@ -324,7 +324,7 @@ Language module
Link module
- ?
Menu module
Menu UI module
- ?
Menu Link module
......
......@@ -19,7 +19,7 @@
*
* The Drupal routing system defines how Drupal responds to URLs passed to the
* browser. The menu system, which depends on the routing system, is used for
* navigation. The Menu module allows menus to be created in the user interface
* navigation. The Menu UI module allows menus to be created in the user interface
* as hierarchical lists of links.
*
* @section registering_paths Registering router paths
......
......@@ -72,7 +72,7 @@ function contextual_help($path, $arg) {
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Displaying contextual links') . '</dt>';
$output .= '<dd>' . t('Contextual links are supplied by modules, to give you quick access to tasks associated with regions of pages on your site. For instance, if you have a custom menu block displayed in a sidebar of your site, the Blocks and Menus modules will supply links to configure the block and edit the menu. The Contextual Links module collects these links into a list for display by your theme, and also adds JavaScript code to the page to hide the links initially, and display them when your mouse hovers over the block.') . '</dd>';
$output .= '<dd>' . t('Contextual links are supplied by modules, to give you quick access to tasks associated with regions of pages on your site. For instance, if you have a custom menu block displayed in a sidebar of your site, the Blocks and Menu UI modules will supply links to configure the block and edit the menu. The Contextual Links module collects these links into a list for display by your theme, and also adds JavaScript code to the page to hide the links initially, and display them when your mouse hovers over the block.') . '</dd>';
$output .= '</dl>';
return $output;
}
......
......@@ -30,7 +30,7 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A
return !empty($entity->machine_name) && $entity->customized;
case 'delete':
// Only items created by the menu module can be deleted.
// Only items created by the Menu UI module can be deleted.
return $entity->module == 'menu_ui' || $entity->updated == 1;
}
......
......@@ -15,7 +15,7 @@ function menu_link_help($path, $arg) {
case 'admin/help#menu_link':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Menu Link module allows users to create menu links. It is required by the Menu module, which provides an interface for managing menus. See the <a href="!menu-help">Menu module help page</a> for more information.', array('!menu-help' => \Drupal::url('help.page', array('name' => 'menu_ui')))) . '</p>';
$output .= '<p>' . t('The Menu Link module allows users to create menu links. It is required by the Menu UI module, which provides an interface for managing menus. See the <a href="!menu-help">Menu UI module help page</a> for more information.', array('!menu-help' => \Drupal::url('help.page', array('name' => 'menu_ui')))) . '</p>';
return $output;
}
}
......
# Schema for configuration files of the Menu module.
# Schema for configuration files of the Menu UI module.
menu_ui.settings:
type: mapping
......
......@@ -334,7 +334,7 @@ protected function buildOverviewTreeForm($tree, $delta) {
'title' => t('Edit'),
'href' => 'admin/structure/menu/item/' . $item['mlid'] . '/edit',
);
// Only items created by the menu module can be deleted.
// Only items created by the Menu UI module can be deleted.
if ($item->access('delete')) {
$operations['delete'] = array(
'title' => t('Delete'),
......
......@@ -28,7 +28,7 @@ public function buildForm(array $form, array &$form_state) {
$config = $this->configFactory->get('menu_ui.settings');
$form['intro'] = array(
'#type' => 'item',
'#markup' => t('The menu module allows on-the-fly creation of menu links in the content authoring forms. To configure these settings for a particular content type, visit the <a href="@content-types">Content types</a> page, click the <em>edit</em> link for the content type, and go to the <em>Menu settings</em> section.', array('@content-types' => url('admin/structure/types'))),
'#markup' => t('The Menu UI module allows on-the-fly creation of menu links in the content authoring forms. To configure these settings for a particular content type, visit the <a href="@content-types">Content types</a> page, click the <em>edit</em> link for the content type, and go to the <em>Menu settings</em> section.', array('@content-types' => url('admin/structure/types'))),
);
$menu_options = menu_ui_get_menus();
......
......@@ -52,7 +52,7 @@ class MenuTest extends MenuWebTestBase {
public static function getInfo() {
return array(
'name' => 'Menu link creation/deletion',
'description' => 'Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the menu module UI.',
'description' => 'Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the UI.',
'group' => 'Menu'
);
}
......@@ -511,7 +511,7 @@ public function testMenuBundles() {
}
/**
* Adds a menu link using the menu module UI.
* Adds a menu link using the UI.
*
* @param integer $plid
* Optional parent menu link id.
......@@ -578,7 +578,7 @@ function addInvalidMenuLink() {
}
/**
* Verifies a menu link using the menu module UI.
* Verifies a menu link using the UI.
*
* @param array $item
* Menu link.
......@@ -617,7 +617,7 @@ function verifyMenuLink($item, $item_node, $parent = NULL, $parent_node = NULL)
}
/**
* Changes the parent of a menu link using the menu module UI.
* Changes the parent of a menu link using the UI.
*
* @param array $item
* The menu link item to move.
......@@ -637,7 +637,7 @@ function moveMenuLink($item, $plid, $menu_name) {
}
/**
* Modifies a menu link using the menu module UI.
* Modifies a menu link using the UI.
*
* @param array $item
* Menu link passed by reference.
......@@ -660,7 +660,7 @@ function modifyMenuLink(&$item) {
}
/**
* Resets a standard menu link using the menu module UI.
* Resets a standard menu link using the UI.
*
* @param array $item
* Menu link.
......@@ -683,7 +683,7 @@ function resetMenuLink($item, $old_title) {
}
/**
* Deletes a menu link using the menu module UI.
* Deletes a menu link using the UI.
*
* @param array $item
* Menu link.
......
......@@ -35,7 +35,7 @@ public static function getInfo() {
public function testMenuUninstall() {
\Drupal::moduleHandler()->uninstall(array('menu_ui'));
$this->assertTrue(entity_load('menu', 'admin', TRUE), 'The \'admin\' menu still exists after uninstalling menu module.');
$this->assertTrue(entity_load('menu', 'admin', TRUE), 'The \'admin\' menu still exists after uninstalling Menu UI module.');
}
}
......@@ -2,7 +2,7 @@
/**
* @file
* Administrative page callbacks for menu module.
* Administrative page callbacks for Menu UI module.
*/
use Drupal\Core\Render\Element;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Hooks provided by the Menu module.
* Hooks provided by the Menu UI module.
*/
/**
......
name: Menu Ui
name: Menu UI
type: module
description: 'Allows administrators to customize the site navigation menu.'
package: Core
......
......@@ -35,7 +35,7 @@ function menu_ui_help($path, $arg) {
case 'admin/help#menu_ui':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Menu module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. For more information, see the <a href="!menu">online documentation for the Menu module</a>.', array('!menu' => 'https://drupal.org/documentation/modules/menu/')) . '</p>';
$output .= '<p>' . t('The Menu UI module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. For more information, see the <a href="!menu">online documentation for the Menu UI module</a>.', array('!menu' => 'https://drupal.org/documentation/modules/menu/')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Managing menus') . '</dt>';
......@@ -379,7 +379,7 @@ function menu_ui_node_save(EntityInterface $node) {
* Implements hook_node_predelete().
*/
function menu_ui_node_predelete(EntityInterface $node) {
// Delete all menu module links that point to this node.
// Delete all Menu UI module links that point to this node.
$query = \Drupal::entityQuery('menu_link')
->condition('link_path', 'node/' . $node->id())
->condition('module', 'menu');
......
......@@ -11,7 +11,7 @@
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
/**
* Tests migration of variables for the Menu module.
* Tests migration of variables for the Menu UI module.
*/
class MigrateMenuConfigsTest extends MigrateDrupalTestBase {
......@@ -48,7 +48,7 @@ public function setUp() {
}
/**
* Tests migration of variables for the menu module.
* Tests migration of variables for the Menu UI module.
*/
public function testMenuSettings() {
$config = \Drupal::config('menu_ui.settings');
......
......@@ -125,7 +125,7 @@ public function overview() {
continue;
}
// The link description, either derived from 'description' in hook_menu()
// or customized via menu module is used as title attribute.
// or customized via Menu UI module is used as title attribute.
if (!empty($item['localized_options']['attributes']['title'])) {
$item['description'] = $item['localized_options']['attributes']['title'];
unset($item['localized_options']['attributes']['title']);
......
......@@ -221,7 +221,7 @@ public function getAdminBlock($item) {
_menu_link_translate($link);
if ($link['access']) {
// The link description, either derived from 'description' in
// hook_menu() or customized via menu module is used as title attribute.
// hook_menu() or customized via Menu UI module is used as title attribute.
if (!empty($link['localized_options']['attributes']['title'])) {
$link['description'] = $link['localized_options']['attributes']['title'];
unset($link['localized_options']['attributes']['title']);
......
......@@ -1453,7 +1453,7 @@ function system_get_module_admin_tasks($module, array $info) {
if (isset($links[$machine_name])) {
$task = $links[$machine_name];
// The link description, either derived from 'description' in the default
// menu link or customized via menu module is used as title attribute.
// menu link or customized via Menu UI module is used as title attribute.
if (!empty($task['localized_options']['attributes']['title'])) {
$task['description'] = $task['localized_options']['attributes']['title'];
unset($task['localized_options']['attributes']['title']);
......
......@@ -216,7 +216,7 @@ public function buildOptionsForm(&$form, &$form_state) {
),
);
// Only display the menu selector if menu module is enabled.
// Only display the menu selector if Menu UI module is enabled.
if (\Drupal::moduleHandler()->moduleExists('menu_ui')) {
$form['menu']['name'] = array(
'#title' => t('Menu'),
......@@ -241,7 +241,7 @@ public function buildOptionsForm(&$form, &$form_state) {
'#value' => $menu['name'],
);
$form['menu']['markup'] = array(
'#markup' => t('Menu selection requires the activation of menu module.'),
'#markup' => t('Menu selection requires the activation of Menu UI module.'),
);
}
$form['menu']['weight'] = array(
......@@ -333,7 +333,7 @@ public function buildOptionsForm(&$form, &$form_state) {
),
),
);
// Only display the menu selector if menu module is enabled.
// Only display the menu selector if Menu UI module is enabled.
if (\Drupal::moduleHandler()->moduleExists('menu_ui')) {
$form['tab_options']['name'] = array(
'#title' => t('Menu'),
......@@ -354,7 +354,7 @@ public function buildOptionsForm(&$form, &$form_state) {
'#value' => $tab_options['name'],
);
$form['tab_options']['markup'] = array(
'#markup' => t('Menu selection requires the activation of menu module.'),
'#markup' => t('Menu selection requires the activation of Menu UI module.'),
);
}
$form['tab_options']['weight'] = array(
......
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