comparison core/modules/node/src/NodeTranslationHandler.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
37 if ($property_name == 'status') { 37 if ($property_name == 'status') {
38 $status_translatable = $definition->isTranslatable(); 38 $status_translatable = $definition->isTranslatable();
39 } 39 }
40 } 40 }
41 if (isset($status_translatable)) { 41 if (isset($status_translatable)) {
42 foreach (['publish', 'unpublish', 'submit'] as $button) { 42 if (isset($form['actions']['submit'])) {
43 if (isset($form['actions'][$button])) { 43 $form['actions']['submit']['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
44 $form['actions'][$button]['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
45 }
46 } 44 }
47 } 45 }
48 } 46 }
49 } 47 }
50 48