diff --git a/core/modules/taxonomy/src/Entity/Term.php b/core/modules/taxonomy/src/Entity/Term.php index 7020f0f..7146f06 100644 --- a/core/modules/taxonomy/src/Entity/Term.php +++ b/core/modules/taxonomy/src/Entity/Term.php @@ -20,6 +20,12 @@ * @ContentEntityType( * id = "taxonomy_term", * label = @Translation("Taxonomy term"), + * label_singular = @Translation("taxonomy term"), + * label_plural = @Translation("taxonomy terms"), + * label_count = @PluralTranslation( + * singular = "@count taxonomy term", + * plural = "@count taxonomy terms", + * ), * bundle_label = @Translation("Vocabulary"), * handlers = { * "storage" = "Drupal\taxonomy\TermStorage", diff --git a/core/modules/taxonomy/src/Entity/Vocabulary.php b/core/modules/taxonomy/src/Entity/Vocabulary.php index 5d6ae1d..aff5e42 100644 --- a/core/modules/taxonomy/src/Entity/Vocabulary.php +++ b/core/modules/taxonomy/src/Entity/Vocabulary.php @@ -17,6 +17,12 @@ * @ConfigEntityType( * id = "taxonomy_vocabulary", * label = @Translation("Taxonomy vocabulary"), + * label_singular = @Translation("taxonomy vocabulary"), + * label_plural = @Translation("taxonomy vocabularies"), + * label_count = @PluralTranslation( + * singular = "@count taxonomy vocabulary", + * plural = "@count taxonomy vocabularies", + * ), * handlers = { * "storage" = "Drupal\taxonomy\VocabularyStorage", * "list_builder" = "Drupal\taxonomy\VocabularyListBuilder",