Verified Commit 5c10840e authored by Alberto Paderno's avatar Alberto Paderno Committed by Alberto Paderno
Browse files

Issue #3293454 by apaderno: Unused placeholders are passed to t()

parent 0ac5ded4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -294,15 +294,15 @@ public static function getOptionsFromValues($values) {
            $target_entity_type_bundles = array_keys($target_bundles_infos);
          }
          // Create "actions" options.
          $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|*"] = $field->getLabel() . ' : ' . t('All entities referenced', ['@bundle_label' => strtolower((string) t('All bundles')))];
          $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|*"] = $field->getLabel() . ':' . t('All entities referenced');
          if ($field_cardinality !== 1) {
            $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|*|0"] = $field->getLabel() . ' : ' . t('First of all entities referenced', ['@bundle_label' => strtolower((string) t('All bundles')))];
            $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|*|0"] = $field->getLabel() . ' : ' . t('First of all entities referenced');
          }
          foreach ($target_entity_type_bundles as $target_bundle) {
            $bundle_label = $target_bundles_infos[$target_bundle]['label'];
            $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|$target_bundle"] = $field->getLabel() . ' : ' . t('All entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label))];
            $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|$target_bundle"] = $field->getLabel() . ' : ' . t('All entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label)]);
            if ($field_cardinality !== 1) {
              $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|$target_bundle|0"] = $field->getLabel() . ' : ' . t('First of all entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label))];
              $fields_options[(string) t('Entity reference')]["$field_name|$target_entity_type|$target_bundle|0"] = $field->getLabel() . ' : ' . t('First of all entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label)]);
            }
          }
        }