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

' . t('About') . '

'; - $output .= '

' . t('The Language module allows you to maintain a list of languages used on your Drupal site for providing language information for content and for interface translation (using the Locale module). For more information, see the online handbook entry for Language module.', array('@language' => 'http://drupal.org/documentation/modules/language')) . '

'; + $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('Configuring the list of languages') . '
'; - $output .= '
' . t('Configure the list of languages either using the built-in language list or providing any custom languages you wish.', array('@configure-languages' => url('admin/config/regional/language'))) . '
'; - $output .= '
' . t('Configuring a multilingual site') . '
'; - $output .= '
' . t("Language negotiation allows your site to automatically change language based on the domain or path used for each request. Users may (optionally) select their preferred language on their My account page, and your site can be configured to honor a web browser's preferred language settings. Site content can be translated using the Content Translation module.", array('@content-help' => url('admin/help/translation'))) . '
'; + $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 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('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('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 to detect in which language interface text is displayed. Your can arrange the methods so that your prefered method is applied first, and a fallback option last.'); + $output .= '
'; $output .= '
'; return $output;