Added localized type name for BOMEntry to fix an exception

This commit is contained in:
Jan Böhmer 2022-12-29 13:18:19 +01:00
parent 3f82d0967a
commit fb91d98d13
2 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,7 @@ use App\Entity\Parts\Supplier;
use App\Entity\PriceInformations\Currency; use App\Entity\PriceInformations\Currency;
use App\Entity\PriceInformations\Orderdetail; use App\Entity\PriceInformations\Orderdetail;
use App\Entity\PriceInformations\Pricedetail; use App\Entity\PriceInformations\Pricedetail;
use App\Entity\ProjectSystem\ProjectBOMEntry;
use App\Entity\UserSystem\Group; use App\Entity\UserSystem\Group;
use App\Entity\UserSystem\User; use App\Entity\UserSystem\User;
use App\Exceptions\EntityNotSupportedException; use App\Exceptions\EntityNotSupportedException;
@ -60,6 +61,7 @@ class ElementTypeNameGenerator
Category::class => $this->translator->trans('category.label'), Category::class => $this->translator->trans('category.label'),
AttachmentType::class => $this->translator->trans('attachment_type.label'), AttachmentType::class => $this->translator->trans('attachment_type.label'),
Project::class => $this->translator->trans('device.label'), Project::class => $this->translator->trans('device.label'),
ProjectBOMEntry::class => $this->translator->trans('project_bom_entry.label'),
Footprint::class => $this->translator->trans('footprint.label'), Footprint::class => $this->translator->trans('footprint.label'),
Manufacturer::class => $this->translator->trans('manufacturer.label'), Manufacturer::class => $this->translator->trans('manufacturer.label'),
MeasurementUnit::class => $this->translator->trans('measurement_unit.label'), MeasurementUnit::class => $this->translator->trans('measurement_unit.label'),

View file

@ -10013,5 +10013,11 @@ Element 3</target>
<target>Add this part to a project</target> <target>Add this part to a project</target>
</segment> </segment>
</unit> </unit>
<unit id="OLIZm7S" name="project_bom_entry.label">
<segment>
<source>project_bom_entry.label</source>
<target>BOM entry</target>
</segment>
</unit>
</file> </file>
</xliff> </xliff>