diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Form/TranslatableForm.php b/core/modules/content_translation/lib/Drupal/content_translation/Form/TranslatableForm.php index 998609ec4884..bdeb983c3ec7 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Form/TranslatableForm.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Form/TranslatableForm.php @@ -42,10 +42,13 @@ class TranslatableForm extends ConfirmFormBase { * {@inheritdoc} */ public function getQuestion() { - $action = $this->fieldInfo['translatable'] ? 'disable' : 'enable'; - return t('Are you sure you want to %action translation for the %name field?', - array('%action' => $action, '%name' => $this->fieldName) - ); + if ($field['translatable']) { + $question = t('Are you sure you want to disable translation for the %name field?', array('%name' => $this->fieldName)); + } + else { + $question = t('Are you sure you want to enable translation for the %name field?', array('%name' => $this->fieldName)); + } + return $question; } /**