diff --git a/core/modules/translation_entity/translation_entity.admin.inc b/core/modules/translation_entity/translation_entity.admin.inc index 115bf74..f8ece47 100644 --- a/core/modules/translation_entity/translation_entity.admin.inc +++ b/core/modules/translation_entity/translation_entity.admin.inc @@ -73,11 +73,13 @@ function _translation_entity_form_language_content_settings_form_alter(array &$f $dependent_options_settings = array(); foreach ($form['#labels'] as $entity_type => $label) { $entity_info = entity_get_info($entity_type); + // Only show the checkbox to enable translation if the bundles in the entity + // might have fields. if (!empty($entity_info['fieldable'])) { foreach (entity_get_bundles($entity_type) as $bundle => $bundle_info) { - // Only show the checkbox to enable translation if the bundle is - // fieldable and has fields. - $has_fields = TRUE; + // Only show the checkbox to enable translation if there are fields to + // translate. + $has_fields = field_info_instances($entity_type, $bundle); if ($has_fields) { $form['settings'][$entity_type][$bundle]['translatable'] = array( '#type' => 'checkbox',