summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/language/language.module
diff options
context:
space:
mode:
authorLauri Eskola <lauri.eskola@acquia.com>2024-01-15 14:55:37 +0200
committerLauri Eskola <lauri.eskola@acquia.com>2024-01-15 14:55:37 +0200
commit1e8ae69e1d8808e50c19ae5120c905dff37b426e (patch)
tree47d4f872146ee257f692dd62f940a28b2e1cee74 /core/modules/language/language.module
parent4b5138e6c32060f9568e9758769c186cd0771e14 (diff)
downloaddrupal-1e8ae69e1d8808e50c19ae5120c905dff37b426e.tar.gz
drupal-1e8ae69e1d8808e50c19ae5120c905dff37b426e.zip
Issue #3414263 by quietone, andypost: Change help headings for WCAG 2.0
Diffstat (limited to 'core/modules/language/language.module')
-rw-r--r--core/modules/language/language.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/language/language.module b/core/modules/language/language.module
index 88a25d030d2..4ac86e68024 100644
--- a/core/modules/language/language.module
+++ b/core/modules/language/language.module
@@ -28,9 +28,9 @@ function language_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.language':
$output = '';
- $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<h2>' . t('About') . '</h2>';
$output .= '<p>' . t('The Language module allows you to configure the languages used on your site, and provides information for the <a href=":content">Content Translation</a>, <a href=":interface">Interface Translation</a>, and <a href=":configuration">Configuration Translation</a> modules, if they are installed. For more information, see the <a href=":doc_url">online documentation for the Language module</a>.', [':doc_url' => 'https://www.drupal.org/documentation/modules/language', ':content' => (\Drupal::moduleHandler()->moduleExists('content_translation')) ? Url::fromRoute('help.page', ['name' => 'content_translation'])->toString() : '#', ':interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? Url::fromRoute('help.page', ['name' => 'locale'])->toString() : '#', ':configuration' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? Url::fromRoute('help.page', ['name' => 'config_translation'])->toString() : '#']) . '</p>';
- $output .= '<h3>' . t('Uses') . '</h3>';
+ $output .= '<h2>' . t('Uses') . '</h2>';
$output .= '<dl>';
$output .= '<dt>' . t('Adding languages') . '</dt>';
$output .= '<dd>' . t('You can add languages on the <a href=":language_list">Languages</a> page by selecting <em>Add language</em> and choosing a language from the drop-down menu. This language is then displayed in the languages list, where it can be configured further. If the <a href=":interface">Interface translation module</a> is installed, and the <em>translation server</em> is set as a translation source, then the interface translation for this language is automatically downloaded as well.', [':language_list' => Url::fromRoute('entity.configurable_language.collection')->toString(), ':interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? Url::fromRoute('help.page', ['name' => 'locale'])->toString() : '#']) . '</dd>';