Issue #2917031 by mallezie: NodeTranslationHandler references old publish and unpublish actions

8.5.x
Nathaniel Catchpole 2017-10-24 13:15:08 +01:00
parent 90c4ab5c2f
commit 0f42cd0566
1 changed files with 2 additions and 4 deletions

View File

@ -39,10 +39,8 @@ class NodeTranslationHandler extends ContentTranslationHandler {
} }
} }
if (isset($status_translatable)) { if (isset($status_translatable)) {
foreach (['publish', 'unpublish', 'submit'] as $button) { if (isset($form['actions']['submit'])) {
if (isset($form['actions'][$button])) { $form['actions']['submit']['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
$form['actions'][$button]['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
}
} }
} }
} }