Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
|
@ -13,6 +13,7 @@ use Drupal\Core\Entity\EntityTypeInterface;
|
|||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Language\LanguageInterface;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\Core\StringTranslation\TranslationWrapper;
|
||||
|
||||
/**
|
||||
* Implements hook_help().
|
||||
|
|
@ -251,8 +252,8 @@ function content_translation_views_data_alter(array &$data) {
|
|||
*/
|
||||
function content_translation_menu_links_discovered_alter(array &$links) {
|
||||
// Clarify where translation settings are located.
|
||||
$links['language.content_settings_page']['title'] = 'Content language and translation';
|
||||
$links['language.content_settings_page']['description'] = 'Configure language and translation support for content.';
|
||||
$links['language.content_settings_page']['title'] = new TranslationWrapper('Content language and translation');
|
||||
$links['language.content_settings_page']['description'] = new TranslationWrapper('Configure language and translation support for content.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -466,7 +467,6 @@ function content_translation_language_configuration_element_process(array $eleme
|
|||
// default to no translatability.
|
||||
'#default_value' => $context['bundle'] ? \Drupal::service('content_translation.manager')->isEnabled($context['entity_type'], $context['bundle']) : FALSE,
|
||||
'#element_validate' => array('content_translation_language_configuration_element_validate'),
|
||||
'#prefix' => '<label>' . t('Translation') . '</label>',
|
||||
);
|
||||
|
||||
$submit_name = isset($form['actions']['save_continue']) ? 'save_continue' : 'submit';
|
||||
|
|
|
|||
Reference in a new issue