Skip to content
Snippets Groups Projects
Commit 26c539f7 authored by catch's avatar catch
Browse files

Issue #1946462 by YesCT: Follow-up to Convert all confirm_form() in...

Issue #1946462 by YesCT: Follow-up to Convert all confirm_form() in content_translation.admin.inc and content_translation.pages.inc to the new form interface.
parent a2e04192
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -42,10 +42,13 @@ public function getFormID() {
* {@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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment