diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module index 469c1ea..676a3c2 100644 --- a/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -24,27 +24,26 @@ function content_translation_help($path, $arg) { case 'admin/help#content_translation': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Content Translation module allows you to create and manage translations for your Drupal site content. You can specify which elements need to be translated at the content-type level for content items and comments, at the vocabulary level for taxonomy terms, and at the site level for user accounts. Other modules may provide additional elements that can be translated. For more information, see the online handbook entry for Content Translation.', array('!url' => 'http://drupal.org/documentation/modules/translation_entity')) . '

'; + $output .= '

' . t('The Content Translation module allows you to translate content, comments, custom blocks, taxonomy terms, users and other content entities. Together with the modules Language, Configuration Translation, and Interface Translation, it allows you to build multilingual websites. For more information, see the online documentation for the Content Translation module.', array('!locale' => (\Drupal::moduleHandler()->moduleExists('locale')) ? \Drupal::url('help.page', array('name' => 'locale')) : '#', '!config-trans' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? \Drupal::url('help.page', array('name' => 'config_translation')) : '#', '!language' => \Drupal::url('help.page', array('name' => 'language')), '!translation-entity' => 'https://drupal.org/documentation/modules/content_translation', '!entity_help' => \Drupal::url('help.page', array('name' => 'entity')))) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Enabling translation') . '
'; - $output .= '

' . t('Before you can translate content, there must be at least two languages added on the languages administration page.', array('!url' => url('admin/config/regional/language'))) . '

'; - $output .= '

' . t('After adding languages, configure translation.', array('!url' => url('admin/config/regional/content-language'))) . '

'; + $output .= '
' . t('In order to translate content, the website must have at least two languages enabled. When that is the case, you can enable translation for the desired content entities on the Content Translation page. When enabling translation you can choose the default language for content and decide whether to show the language selection field on the content editing forms.' , array('!url' => \Drupal::url('language.admin_overview'), '!translation-entity' => \Drupal::url('language.content_settings_page'), '!language-help' => \Drupal::url('help.page', array('name' => 'language')))) . '
'; + $output .= '
' . t('Enabling field translation') . '
'; + $output .= '
' . t('You can define which fields of a content entity can be translated. For example, you might want to translate the title and body field while leaving the image field untranslated. If you exclude a field from being translated, it will still show up in the content editing form, but any changes made to that field will be applied to all translations of that content.') . '
'; $output .= '
' . t('Translating content') . '
'; - $output .= '
' . t('After enabling translation you can create a new piece of content, or edit existing content and assign it a language. Then, you will see a Translate tab or link that will gives an overview of the translation status for the current content. From there, you can add translations and edit or delete existing translations. This process is similar for every translatable element on your site, such as taxonomy terms, comments or user accounts.') . '
'; - $output .= '
' . t('Changing source language') . '
'; - $output .= '
' . t('When there are two or more possible source languages, selecting a Source language will repopulate the form using the specified source\'s values. For example, French is much closer to Spanish than to Chinese, so changing the French translation\'s source language to Spanish can assist translators.') . '
'; - $output .= '
' . t('Maintaining translations') . '
'; - $output .= '
' . t('If editing content in one language requires that translated versions also be updated to reflect the change, use the Flag other translations as outdated check box to mark the translations as outdated and in need of revision.') . '
'; - $output .= '
' . t('Translation permissions') . '
'; - $output .= '
' . t('The Content Translation module makes a basic set of permissions available. Additional permissions are made available after translation is enabled for each translatable element.', array('@permissions' => url('admin/people/permissions', array('fragment' => 'module-content_translation')))) . '
'; + $output .= '
' . t('If translation is enabled you can translate a content entity via the Translate tab (or Translate link). The Translations page of a content entity gives an overview of the translation status for the current content and lets you add, edit, and delete its translations. This process is similar for every translatable content entity on your site.') . '
'; + $output .= '
' . t('Changing the source language for a translation') . '
'; + $output .= '
' . t('When you add a new translation, the original text you are translating is displayed in the edit form as the source. If at least one translation of the original content already exists when you add a new translation, you can choose either the original content (default) or one of the other translations as the source, using the select list in the Source language section. After saving the translation, the chosen source language is then listed on the Translate tab of the content.') . '
'; + $output .= '
' . t('Setting status of translations') . '
'; + $output .= '
' . t('If you edit a translation in one language you may want to set the status of the other translations as out-of-date. You can set this status by selecting the Flag other translations as outdated checkbox in the Translation section of the content editing form. The status will be visible on the Translations page.') . '
'; $output .= '
'; return $output; case 'admin/config/regional/content-language': $output = ''; if (!\Drupal::languageManager()->isMultilingual()) { - $output .= '
' . t('Before you can translate content, there must be at least two languages added on the languages administration page.', array('!url' => url('admin/config/regional/language'))); + $output .= '
' . t('Before you can translate content, there must be at least two languages added on the languages administration page.', array('!url' => \Drupal::url('language.admin_overview'))); } return $output; }