Commit 2ebd3f74 authored by catch's avatar catch

Issue #2004878 by kalabro, DmitryDrozdik, YesCT: Config page title 'Content...

Issue #2004878 by kalabro, DmitryDrozdik, YesCT: Config page title 'Content language settings' misleading after translation is enabled.
parent 4a3ee315
......@@ -229,6 +229,10 @@ function content_translation_menu() {
* Implements hook_menu_alter().
*/
function content_translation_menu_alter(array &$items) {
// Clarify where translation settings are located.
$items['admin/config/regional/content-language']['title'] = 'Content language and translation';
$items['admin/config/regional/content-language']['description'] = 'Configure language and translation support for content.';
// Check that the declared menu base paths are actually valid.
foreach (entity_get_info() as $entity_type => $info) {
if (content_translation_enabled($entity_type)) {
......
......@@ -121,8 +121,8 @@ function language_menu() {
// Content language settings.
$items['admin/config/regional/content-language'] = array(
'title' => 'Content language settings',
'description' => 'Configure content language support for any multilingual element.',
'title' => 'Content language',
'description' => 'Configure language support for content.',
'route_name' => 'language.content_settings_page',
);
......
......@@ -73,7 +73,7 @@ language.negotiation_browser_delete:
language.content_settings_page:
path: '/admin/config/regional/content-language'
defaults:
_title: 'Content language settings'
_title: 'Content language'
_content: '\Drupal\language\Controller\LanguageController::contentSettings'
requirements:
_permission: 'administer languages'
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