diff -u b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php --- b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php +++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php @@ -59,18 +59,18 @@ $element += array('#options' => array()); if (system_admin_compact_mode()) { - $element['#title'] = \Drupal::translation()->translate('Show descriptions'); + $element['#title'] = t('Show descriptions'); $element['#url'] = BaseUrl::fromRoute('system.admin_compact_page', array('mode' => 'off')); $element['#options'] = array( - 'attributes' => array('title' => \Drupal::translation()->translate('Expand layout to include descriptions.')), + 'attributes' => array('title' => t('Expand layout to include descriptions.')), 'query' => drupal_get_destination(), ); } else { - $element['#title'] = \Drupal::translation()->translate('Hide descriptions'); + $element['#title'] = t('Hide descriptions'); $element['#url'] = BaseUrl::fromRoute('system.admin_compact_page', array('mode' => 'on')); $element['#options'] = array( - 'attributes' => array('title' => \Drupal::translation()->translate('Compress layout by hiding descriptions.')), + 'attributes' => array('title' => t('Compress layout by hiding descriptions.')), 'query' => drupal_get_destination(), ); }