diff --git a/core/modules/language/language.module b/core/modules/language/language.module index d96480a..4b8300b 100644 --- a/core/modules/language/language.module +++ b/core/modules/language/language.module @@ -23,27 +23,29 @@ function language_help($path, $arg) { case 'admin/help#language': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Language module allows you to configure the languages used on your site, and provides information for the for Content Translation, Interface Translation, and Configuration Translation modules, if they are enabled. For more information, see the online documentation for the Language module.', array('!doc_url' => 'https://drupal.org/documentation/modules/language', '!content' => \Drupal::url('help.page', array('name' => 'content_translation')), '!interface' => \Drupal::url('help.page', array('name' => 'locale')), '!configuration' => \Drupal::url('help.page', array('name' => 'configuration_translation')))) . '

'; + $output .= '

' . t('The Language module allows you to configure the languages used on your site, and provides information for the for Content Translation, Interface Translation, and Configuration Translation modules, if they are enabled. For more information, see the online documentation for the Language module.', array('!doc_url' => 'https://drupal.org/documentation/modules/language', '!content' => (\Drupal::moduleHandler()->moduleExists('content_translation')) ? \Drupal::url('help.page', array('name' => 'content_translation')) : '#', '!interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? \Drupal::url('help.page', array('name' => 'locale')) : '#', '!configuration' => (\Drupal::moduleHandler()->moduleExists('configuration_translation')) ? \Drupal::url('help.page', array('name' => 'configuration_translation')) : '#')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Adding languages') . '
'; - $output .= '
' . t('You can add languages on the Languages page by clicking on Add language 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 Interface Translation module is installed, then interface translation for this language is automatically downloaded as well.' , array('!language_list' => \Drupal::url('language.admin_overview'), '!interface' => \Drupal::url('help.page', array('name' => 'locale')))) . '
'; + $output .= '
' . t('You can add languages on the Languages page by clicking on Add language 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 Interface translation module is enabled, and the Drupal translation server is set as a translation source, then interface translation for this language is automatically downloaded as well.' , array('!language_list' => \Drupal::url('language.admin_overview'), '!interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? \Drupal::url('help.page', array('name' => 'locale')) : '#')) . '
'; $output .= '
' . t('Adding custom languages') . '
'; $output .= '
' . t('You can add a language that is not provided in the drop-down list by choosing Custom language at the end of the list. You then have to configure its language code, name, and direction in the form provided.') . '
'; - $output .= '
' . t('Customizing content languages settings') . '
'; - $output .= '
' . t('By default content is created in the site\'s default language and no language selector is displayed on content creation pages. On the Content language page you can customize the language settings for any supported content entity of your site (for example for content types or menu links). After choosing an entity, you are provided with a drop-down menu to set the default language and a checkbox to display language selectors.', array('!content_language' => \Drupal::url('language.content_settings_page'))) . '
'; - $output .= '
' . t('Adding a language switcher block') . '
'; - $output .= '
' . t('If the Blocks module is enabled, then you can add a language switcher block on the Block layout page to your site to allow users to switch between languages.', array('!blocks' => \Drupal::url('block.admin_display'), '!block-help' => \Drupal::url('help.page', array('name' => 'blocks')))) . '
'; + $output .= '
' . t('Setting administration languages') . '
'; + $output .= '
' . t('If the Account administration pages method is enable on the Detection and selection page, then each administrator can set a second language on their profile page to use for site administration.', array('!detection' => \Drupal::url('language.negotiation'))) . '
'; + $output .= '
' . t('Configuring content languages') . '
'; + $output .= '
' . t('By default content is created in the site\'s default language and no language selector is displayed on content creation pages. On the Content language page you can customize the language configuration for any supported content entity on your site (for example for content types or menu links). After choosing an entity, you are provided with a drop-down menu to set the default language and a checkbox to display language selectors.', array('!content_language' => \Drupal::url('language.content_settings_page'))) . '
'; + $output .= '
' . t('Adding a language switcher block') . '
'; + $output .= '
' . t('If the Blocks module is enabled, then you can add a language switcher block on the Block layout page to your site to allow users to switch between languages.', array('!blocks' => (\Drupal::moduleHandler()->moduleExists('block')) ? \Drupal::url('block.admin_display') : '#')) . '
'; $output .= '
' . t('Making a block visible per language') . '
'; - $output .= '
' . t('The Language module adds an option to set the visibilty of a block based on selected languages when you configure a block on the Block layout page.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; + $output .= '
' . t('If the Block module is enabled, then the Language module allows you to set the visibilty of a block based on selected languages on the Block layout page.', array('!blocks' => (\Drupal::moduleHandler()->moduleExists('block')) ? \Drupal::url('block.admin_display') : '#')) . '
'; $output .= '
' . t('Language detection and selection'); - $output .= '
' . t('The Detection and selection page provides several methods by which the site detects in which language to display interface text. Your can arrange the methods so that your prefered method is applied first, and a fallback option last.'); - $output .= '
'; $output .= '
'; return $output;