From fb91d98d136d4f874163ba9473f84d32f1075024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 29 Dec 2022 13:18:19 +0100 Subject: [PATCH] Added localized type name for BOMEntry to fix an exception --- src/Services/ElementTypeNameGenerator.php | 2 ++ translations/messages.en.xlf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/Services/ElementTypeNameGenerator.php b/src/Services/ElementTypeNameGenerator.php index fce1395c..c64bdefc 100644 --- a/src/Services/ElementTypeNameGenerator.php +++ b/src/Services/ElementTypeNameGenerator.php @@ -39,6 +39,7 @@ use App\Entity\Parts\Supplier; use App\Entity\PriceInformations\Currency; use App\Entity\PriceInformations\Orderdetail; use App\Entity\PriceInformations\Pricedetail; +use App\Entity\ProjectSystem\ProjectBOMEntry; use App\Entity\UserSystem\Group; use App\Entity\UserSystem\User; use App\Exceptions\EntityNotSupportedException; @@ -60,6 +61,7 @@ class ElementTypeNameGenerator Category::class => $this->translator->trans('category.label'), AttachmentType::class => $this->translator->trans('attachment_type.label'), Project::class => $this->translator->trans('device.label'), + ProjectBOMEntry::class => $this->translator->trans('project_bom_entry.label'), Footprint::class => $this->translator->trans('footprint.label'), Manufacturer::class => $this->translator->trans('manufacturer.label'), MeasurementUnit::class => $this->translator->trans('measurement_unit.label'), diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 128690d0..0661663a 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -10013,5 +10013,11 @@ Element 3 Add this part to a project + + + project_bom_entry.label + BOM entry + +