diff --git a/src/Controller/AdminPages/BaseAdminController.php b/src/Controller/AdminPages/BaseAdminController.php index b2a6034a..a593eb43 100644 --- a/src/Controller/AdminPages/BaseAdminController.php +++ b/src/Controller/AdminPages/BaseAdminController.php @@ -107,13 +107,13 @@ abstract class BaseAdminController extends AbstractController $em->persist($entity); $em->flush(); - $this->addFlash('success', $this->translator->trans('entity.edit_flash')); + $this->addFlash('success', 'entity.edit_flash'); //Rebuild form, so it is based on the updated data. Important for the parent field! //We can not use dynamic form events here, because the parent entity list is build from database! $form = $this->createForm($this->form_class, $entity, ['attachment_class' => $this->attachment_class]); } elseif ($form->isSubmitted() && !$form->isValid()) { - $this->addFlash('error', $this->translator->trans('entity.edit_flash.invalid')); + $this->addFlash('error', 'entity.edit_flash.invalid'); } return $this->render($this->twig_template, [ @@ -163,13 +163,13 @@ abstract class BaseAdminController extends AbstractController $em->persist($new_entity); $em->flush(); - $this->addFlash('success', $this->translator->trans('entity.created_flash')); + $this->addFlash('success', 'entity.created_flash'); return $this->redirectToRoute($this->route_base.'_edit', ['id' => $new_entity->getID()]); } if ($form->isSubmitted() && !$form->isValid()) { - $this->addFlash('error', $this->translator->trans('entity.created_flash.invalid')); + $this->addFlash('error', 'entity.created_flash.invalid'); } //Import form diff --git a/src/Controller/DebugController.php b/src/Controller/DebugController.php deleted file mode 100644 index 8b3209ec..00000000 --- a/src/Controller/DebugController.php +++ /dev/null @@ -1,82 +0,0 @@ -addFlash('success', 'Success Flash Message!'); - $this->addFlash('error', 'Error Flash Message!'); - $this->addFlash('warning', 'Warning Flash Message!'); - $this->addFlash('notice', 'Notice Flash Message!'); - $this->addFlash('info', 'Info Flash Message! Test'); - - $this->addFlash('testkjfd', 'Blabla. This message type should be not know to template!'); - - return $this->render('base.html.twig'); - } - - /** - * @Route("/debug/dummy") - */ - public function dummy(TranslatorInterface $translator) - { - //Here we collect translation keys automatically created, so they can be extracted easily - - //Validators: - $translator->trans('validator.noneofitschild.self'); - $translator->trans('validator.noneofitschild.children'); - $translator->trans('validator.isSelectable'); - $translator->trans('validator.part_lot.location_full.no_increasment'); - $translator->trans('validator.part_lot.location_full'); - $translator->trans('validator.part_lot.only_existing'); - $translator->trans('validator.part_lot.single_part'); - - //Manufacturer status - $translator->trans('m_status.active.help'); - $translator->trans('m_status.announced.help'); - $translator->trans('m_status.discontinued.help'); - $translator->trans('m_status.eol.help'); - $translator->trans('m_status.nrfnd.help'); - $translator->trans('m_status.unknown.help'); - - //Flash titles - $translator->trans('flash.success'); - $translator->trans('flash.error'); - $translator->trans('flash.warning'); - $translator->trans('flash.notice'); - $translator->trans('flash.info'); - - $translator->trans('validator.noLockout'); - } -} diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index e5145f39..1c6c84ae 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -97,11 +97,11 @@ class PartController extends AbstractController $em->persist($part); $em->flush(); - $this->addFlash('info', $translator->trans('part.edited_flash')); + $this->addFlash('info', 'part.edited_flash'); //Reload form, so the SIUnitType entries use the new part unit $form = $this->createForm(PartBaseType::class, $part); } elseif ($form->isSubmitted() && !$form->isValid()) { - $this->addFlash('error', $translator->trans('part.edited_flash.invalid')); + $this->addFlash('error', 'part.edited_flash.invalid'); } return $this->render('Parts/edit/edit_part_info.html.twig', @@ -180,13 +180,13 @@ class PartController extends AbstractController $em->persist($new_part); $em->flush(); - $this->addFlash('success', $translator->trans('part.created_flash')); + $this->addFlash('success', 'part.created_flash'); return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]); } if ($form->isSubmitted() && !$form->isValid()) { - $this->addFlash('error', $translator->trans('part.created_flash.invalid')); + $this->addFlash('error', 'part.created_flash.invalid'); } return $this->render('Parts/edit/new_part.html.twig', @@ -216,7 +216,7 @@ class PartController extends AbstractController if ($form->isSubmitted() && $form->isValid()) { $em->persist($new_part); $em->flush(); - $this->addFlash('success', $translator->trans('part.created_flash')); + $this->addFlash('success', 'part.created_flash'); return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]); } diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 16b0e8b8..6cba6a67 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -99,7 +99,7 @@ class SecurityController extends AbstractController if ($form->isSubmitted() && $form->isValid()) { $passwordReset->request($form->getData()['user']); - $this->addFlash('success', $this->translator->trans('pw_reset.request.success')); + $this->addFlash('success', 'pw_reset.request.success'); return $this->redirectToRoute('login'); } @@ -152,9 +152,9 @@ class SecurityController extends AbstractController //Try to set the new password $success = $passwordReset->setNewPassword($data['username'], $data['token'], $data['new_password']); if (!$success) { - $this->addFlash('error', $this->translator->trans('pw_reset.new_pw.error')); + $this->addFlash('error', 'pw_reset.new_pw.error'); } else { - $this->addFlash('success', $this->translator->trans('pw_reset.new_pw.success')); + $this->addFlash('success', 'pw_reset.new_pw.success'); return $this->redirectToRoute('login'); } } diff --git a/src/Form/AdminPages/AttachmentTypeAdminForm.php b/src/Form/AdminPages/AttachmentTypeAdminForm.php index f0424370..612f4481 100644 --- a/src/Form/AdminPages/AttachmentTypeAdminForm.php +++ b/src/Form/AdminPages/AttachmentTypeAdminForm.php @@ -34,10 +34,10 @@ class AttachmentTypeAdminForm extends BaseEntityAdminForm { protected $filterTools; - public function __construct(Security $security, ParameterBagInterface $params, TranslatorInterface $trans, FileTypeFilterTools $filterTools) + public function __construct(Security $security, ParameterBagInterface $params, FileTypeFilterTools $filterTools) { $this->filterTools = $filterTools; - parent::__construct($security, $params, $trans); + parent::__construct($security, $params); } protected function additionalFormElements(FormBuilderInterface $builder, array $options, NamedDBElement $entity) @@ -45,9 +45,9 @@ class AttachmentTypeAdminForm extends BaseEntityAdminForm $is_new = null === $entity->getID(); $builder->add('filetype_filter', TextType::class, ['required' => false, - 'label' => $this->trans->trans('attachment_type.edit.filetype_filter'), - 'help' => $this->trans->trans('attachment_type.edit.filetype_filter.help'), - 'attr' => ['placeholder' => $this->trans->trans('attachment_type.edit.filetype_filter.placeholder')], + 'label' => 'attachment_type.edit.filetype_filter', + 'help' => 'attachment_type.edit.filetype_filter.help', + 'attr' => ['placeholder' => 'attachment_type.edit.filetype_filter.placeholder'], 'empty_data' => '', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); diff --git a/src/Form/AdminPages/BaseEntityAdminForm.php b/src/Form/AdminPages/BaseEntityAdminForm.php index c03956ba..0e62c9dc 100644 --- a/src/Form/AdminPages/BaseEntityAdminForm.php +++ b/src/Form/AdminPages/BaseEntityAdminForm.php @@ -44,13 +44,11 @@ class BaseEntityAdminForm extends AbstractType { protected $security; protected $params; - protected $trans; - public function __construct(Security $security, ParameterBagInterface $params, TranslatorInterface $trans) + public function __construct(Security $security, ParameterBagInterface $params) { $this->security = $security; $this->params = $params; - $this->trans = $trans; } public function configureOptions(OptionsResolver $resolver) @@ -66,23 +64,23 @@ class BaseEntityAdminForm extends AbstractType $is_new = null === $entity->getID(); $builder - ->add('name', TextType::class, ['empty_data' => '', 'label' => $this->trans->trans('name.label'), - 'attr' => ['placeholder' => $this->trans->trans('part.name.placeholder')], + ->add('name', TextType::class, ['empty_data' => '', 'label' => 'name.label', + 'attr' => ['placeholder' =>'part.name.placeholder'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]) ->add('parent', StructuralEntityType::class, ['class' => \get_class($entity), - 'required' => false, 'label' => $this->trans->trans('parent.label'), + 'required' => false, 'label' => 'parent.label', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]) ->add('not_selectable', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('entity.edit.not_selectable'), - 'help' => $this->trans->trans('entity.edit.not_selectable.help'), + 'label' => 'entity.edit.not_selectable', + 'help' => 'entity.edit.not_selectable.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]) ->add('comment', CKEditorType::class, ['required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('comment.label'), - 'attr' => ['rows' => 4], 'help' => $this->trans->trans('bbcode.hint'), + 'label' => 'comment.label', + 'attr' => ['rows' => 4], 'help' => 'bbcode.hint', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $this->additionalFormElements($builder, $options, $entity); @@ -103,13 +101,13 @@ class BaseEntityAdminForm extends AbstractType $builder->add('master_picture_attachment', MasterPictureAttachmentType::class, [ 'required' => false, 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'label' => $this->trans->trans('part.edit.master_attachment'), + 'label' => 'part.edit.master_attachment', 'entity' => $entity, ]); //Buttons $builder->add('save', SubmitType::class, [ - 'label' => $is_new ? $this->trans->trans('entity.create') : $this->trans->trans('entity.edit.save'), + 'label' => $is_new ? 'entity.create' : 'entity.edit.save', 'attr' => ['class' => $is_new ? 'btn-success' : ''], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]) ->add('reset', ResetType::class, ['label' => 'entity.edit.reset', diff --git a/src/Form/AdminPages/CategoryAdminForm.php b/src/Form/AdminPages/CategoryAdminForm.php index 0b302437..6826d1be 100644 --- a/src/Form/AdminPages/CategoryAdminForm.php +++ b/src/Form/AdminPages/CategoryAdminForm.php @@ -33,46 +33,46 @@ class CategoryAdminForm extends BaseEntityAdminForm $is_new = null === $entity->getID(); $builder->add('disable_footprints', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('category.edit.disable_footprints'), - 'help' => $this->trans->trans('category.edit.disable_footprints.help'), + 'label' => 'category.edit.disable_footprints', + 'help' => 'category.edit.disable_footprints.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('disable_manufacturers', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('category.edit.disable_manufacturers'), - 'help' => $this->trans->trans('category.edit.disable_manufacturers.help'), + 'label' => 'category.edit.disable_manufacturers', + 'help' => 'category.edit.disable_manufacturers.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('disable_autodatasheets', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('category.edit.disable_autodatasheets'), - 'help' => $this->trans->trans('category.edit.disable_autodatasheets.help'), + 'label' => 'category.edit.disable_autodatasheets', + 'help' => 'category.edit.disable_autodatasheets.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('disable_properties', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('category.edit.disable_properties'), - 'help' => $this->trans->trans('category.edit.disable_properties.help'), + 'label' => 'category.edit.disable_properties', + 'help' => 'category.edit.disable_properties.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('partname_hint', TextType::class, ['required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('category.edit.partname_hint'), - 'attr' => ['placeholder' => $this->trans->trans('category.edit.partname_hint.placeholder')], + 'label' => 'category.edit.partname_hint', + 'attr' => ['placeholder' => 'category.edit.partname_hint.placeholder'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('partname_regex', TextType::class, ['required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('category.edit.partname_regex'), + 'label' => 'category.edit.partname_regex', 'attr' => ['placeholder' => 'category.edit.partname_regex.placeholder'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('default_description', TextType::class, ['required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('category.edit.default_description'), - 'attr' => ['placeholder' => $this->trans->trans('category.edit.default_description.placeholder')], + 'label' => 'category.edit.default_description', + 'attr' => ['placeholder' => 'category.edit.default_description.placeholder'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('default_comment', TextType::class, ['required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('category.edit.default_comment'), + 'label' => 'category.edit.default_comment', 'attr' => ['placeholder' => $this->trans->trans('category.edit.default_comment.placeholder')], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); } diff --git a/src/Form/AdminPages/CompanyForm.php b/src/Form/AdminPages/CompanyForm.php index f9f3fe82..80ef8e93 100644 --- a/src/Form/AdminPages/CompanyForm.php +++ b/src/Form/AdminPages/CompanyForm.php @@ -35,46 +35,46 @@ class CompanyForm extends BaseEntityAdminForm $is_new = null === $entity->getID(); $builder->add('address', TextareaType::class, [ - 'label' => $this->trans->trans('company.edit.address'), + 'label' => 'company.edit.address', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'attr' => ['placeholder' => $this->trans->trans('company.edit.address.placeholder')], 'required' => false, + 'attr' => ['placeholder' => 'company.edit.address.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('phone_number', TelType::class, [ - 'label' => $this->trans->trans('company.edit.phone_number'), + 'label' => 'company.edit.phone_number', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'attr' => ['placeholder' => $this->trans->trans('company.edit.phone_number.placeholder')], + 'attr' => ['placeholder' => 'company.edit.phone_number.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('fax_number', TelType::class, [ - 'label' => $this->trans->trans('company.edit.fax_number'), + 'label' => 'company.edit.fax_number', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), 'attr' => ['placeholder' => 'company.fax_number.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('email_address', EmailType::class, [ - 'label' => $this->trans->trans('company.edit.email'), + 'label' => 'company.edit.email', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'attr' => ['placeholder' => $this->trans->trans('company.edit.email.placeholder')], 'required' => false, + 'attr' => ['placeholder' => 'company.edit.email.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('website', UrlType::class, [ - 'label' => $this->trans->trans('company.edit.website'), + 'label' => 'company.edit.website', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'attr' => ['placeholder' => $this->trans->trans('company.edit.website.placeholder')], 'required' => false, + 'attr' => ['placeholder' => 'company.edit.website.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('auto_product_url', UrlType::class, [ - 'label' => $this->trans->trans('company.edit.auto_product_url'), - 'help' => $this->trans->trans('company.edit.auto_product_url.help'), + 'label' => 'company.edit.auto_product_url', + 'help' => 'company.edit.auto_product_url.help', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), - 'attr' => ['placeholder' => $this->trans->trans('company.edit.auto_product_url.placeholder')], + 'attr' => ['placeholder' => 'company.edit.auto_product_url.placeholder'], 'required' => false, 'empty_data' => '', ]); diff --git a/src/Form/AdminPages/CurrencyAdminForm.php b/src/Form/AdminPages/CurrencyAdminForm.php index d1d022d7..7c2393fd 100644 --- a/src/Form/AdminPages/CurrencyAdminForm.php +++ b/src/Form/AdminPages/CurrencyAdminForm.php @@ -34,14 +34,14 @@ class CurrencyAdminForm extends BaseEntityAdminForm $builder->add('iso_code', CurrencyType::class, [ 'required' => false, - 'label' => $this->trans->trans('currency.edit.iso_code'), + 'label' => 'currency.edit.iso_code', 'preferred_choices' => ['EUR', 'USD', 'GBP', 'JPY', 'CNY'], 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('exchange_rate', MoneyType::class, [ 'required' => false, - 'label' => $this->trans->trans('currency.edit.exchange_rate'), + 'label' => 'currency.edit.exchange_rate', 'currency' => $this->params->get('default_currency'), 'scale' => 6, 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); diff --git a/src/Form/AdminPages/FootprintAdminForm.php b/src/Form/AdminPages/FootprintAdminForm.php index efcedf93..284b473d 100644 --- a/src/Form/AdminPages/FootprintAdminForm.php +++ b/src/Form/AdminPages/FootprintAdminForm.php @@ -32,7 +32,7 @@ class FootprintAdminForm extends BaseEntityAdminForm $builder->add('footprint_3d', MasterPictureAttachmentType::class, [ 'required' => false, 'disabled' => !$this->security->isGranted(null === $entity->getID() ? 'create' : 'edit', $entity), - 'label' => $this->trans->trans('footprint.edit.3d_model'), + 'label' => 'footprint.edit.3d_model', 'filter' => '3d_model', 'entity' => $entity, ]); diff --git a/src/Form/AdminPages/ImportType.php b/src/Form/AdminPages/ImportType.php index a344f417..3d489f18 100644 --- a/src/Form/AdminPages/ImportType.php +++ b/src/Form/AdminPages/ImportType.php @@ -36,12 +36,10 @@ use Symfony\Contracts\Translation\TranslatorInterface; class ImportType extends AbstractType { protected $security; - protected $trans; - public function __construct(Security $security, TranslatorInterface $trans) + public function __construct(Security $security) { $this->security = $security; - $this->trans = $trans; } public function buildForm(FormBuilderInterface $builder, array $options) @@ -57,33 +55,33 @@ class ImportType extends AbstractType ->add('format', ChoiceType::class, [ 'choices' => ['JSON' => 'json', 'XML' => 'xml', 'CSV' => 'csv', 'YAML' => 'yaml'], - 'label' => $this->trans->trans('export.format'), + 'label' => 'export.format', 'disabled' => $disabled, ]) ->add('csv_separator', TextType::class, ['data' => ';', - 'label' => $this->trans->trans('import.csv_separator'), + 'label' => 'import.csv_separator', 'disabled' => $disabled, ]); if ($entity instanceof StructuralDBElement) { $builder->add('parent', StructuralEntityType::class, [ 'class' => $data['entity_class'], 'required' => false, - 'label' => $this->trans->trans('parent.label'), + 'label' => 'parent.label', 'disabled' => $disabled, ]); } $builder->add('file', FileType::class, [ - 'label' => $this->trans->trans('import.file'), + 'label' => 'import.file', 'attr' => ['class' => 'file', 'data-show-preview' => 'false', 'data-show-upload' => 'false'], 'disabled' => $disabled, ]) ->add('preserve_children', CheckboxType::class, ['data' => true, 'required' => false, - 'label' => $this->trans->trans('import.preserve_children'), + 'label' => 'import.preserve_children', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => $disabled, ]) ->add('abort_on_validation_error', CheckboxType::class, ['data' => true, 'required' => false, - 'label' => $this->trans->trans('import.abort_on_validation'), - 'help' => $this->trans->trans('import.abort_on_validation.help'), + 'label' => 'import.abort_on_validation', + 'help' => 'import.abort_on_validation.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => $disabled, ]) //Buttons diff --git a/src/Form/AdminPages/MassCreationForm.php b/src/Form/AdminPages/MassCreationForm.php index 012f49cf..45e3f484 100644 --- a/src/Form/AdminPages/MassCreationForm.php +++ b/src/Form/AdminPages/MassCreationForm.php @@ -33,12 +33,10 @@ use Symfony\Contracts\Translation\TranslatorInterface; class MassCreationForm extends AbstractType { protected $security; - protected $translator; - public function __construct(Security $security, TranslatorInterface $translator) + public function __construct(Security $security) { $this->security = $security; - $this->translator = $translator; } public function buildForm(FormBuilderInterface $builder, array $options) @@ -52,10 +50,10 @@ class MassCreationForm extends AbstractType $builder ->add('lines', TextareaType::class, ['data' => '', - 'label' => $this->translator->trans('mass_creation.lines'), + 'label' => 'mass_creation.lines', 'disabled' => $disabled, 'required' => true, 'attr' => [ - 'placeholder' => $this->translator->trans('mass_creation.lines.placeholder'), + 'placeholder' => 'mass_creation.lines.placeholder', 'rows' => 10, ], ]); @@ -63,13 +61,13 @@ class MassCreationForm extends AbstractType $builder->add('parent', StructuralEntityType::class, [ 'class' => $data['entity_class'], 'required' => false, - 'label' => $this->translator->trans('parent.label'), + 'label' => 'parent.label', 'disabled' => $disabled, ]); } //Buttons $builder->add('create', SubmitType::class, [ - 'label' => $this->translator->trans('entity.mass_creation.btn'), + 'label' => 'entity.mass_creation.btn', 'disabled' => $disabled, ]); } diff --git a/src/Form/AdminPages/MeasurementUnitAdminForm.php b/src/Form/AdminPages/MeasurementUnitAdminForm.php index 09413a1f..ffb8b80e 100644 --- a/src/Form/AdminPages/MeasurementUnitAdminForm.php +++ b/src/Form/AdminPages/MeasurementUnitAdminForm.php @@ -33,20 +33,20 @@ class MeasurementUnitAdminForm extends BaseEntityAdminForm $is_new = null === $entity->getID(); $builder->add('is_integer', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('measurement_unit.edit.is_integer'), - 'help' => $this->trans->trans('measurement_unit.edit.is_integer.help'), + 'label' => 'measurement_unit.edit.is_integer', + 'help' => 'measurement_unit.edit.is_integer.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('use_si_prefix', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('measurement_unit.edit.use_si_prefix'), - 'help' => $this->trans->trans('measurement_unit.edit.use_si_prefix.help'), + 'label' => 'measurement_unit.edit.use_si_prefix', + 'help' => 'measurement_unit.edit.use_si_prefix.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('unit', TextType::class, ['required' => false, - 'label' => $this->trans->trans('measurement_unit.edit.unit_symbol'), - 'attr' => ['placeholder' => $this->trans->trans('measurement_unit.edit.unit_symbol.placeholder')], + 'label' => 'measurement_unit.edit.unit_symbol', + 'attr' => ['placeholder' => 'measurement_unit.edit.unit_symbol.placeholder'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); } } diff --git a/src/Form/AdminPages/StorelocationAdminForm.php b/src/Form/AdminPages/StorelocationAdminForm.php index e284cadb..f6490855 100644 --- a/src/Form/AdminPages/StorelocationAdminForm.php +++ b/src/Form/AdminPages/StorelocationAdminForm.php @@ -35,29 +35,29 @@ class StorelocationAdminForm extends BaseEntityAdminForm $builder->add('is_full', CheckboxType::class, [ 'required' => false, - 'label' => $this->trans->trans('storelocation.edit.is_full.label'), - 'help' => $this->trans->trans('storelocation.edit.is_full.help'), + 'label' => 'storelocation.edit.is_full.label', + 'help' => 'storelocation.edit.is_full.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); $builder->add('limit_to_existing_parts', CheckboxType::class, [ 'required' => false, - 'label' => $this->trans->trans('storelocation.limit_to_existing.label'), - 'help' => $this->trans->trans('storelocation.limit_to_existing.help'), + 'label' => 'storelocation.limit_to_existing.label', + 'help' => 'storelocation.limit_to_existing.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); $builder->add('only_single_part', CheckboxType::class, [ 'required' => false, - 'label' => $this->trans->trans('storelocation.only_single_part.label'), - 'help' => $this->trans->trans('storelocation.only_single_part.help'), + 'label' => 'storelocation.only_single_part.label', + 'help' => 'storelocation.only_single_part.help', 'label_attr' => ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); $builder->add('storage_type', StructuralEntityType::class, [ 'required' => false, - 'label' => $this->trans->trans('storelocation.storage_type.label'), - 'help' => $this->trans->trans('storelocation.storage_type.help'), + 'label' => 'storelocation.storage_type.label', + 'help' => 'storelocation.storage_type.help', 'class' => MeasurementUnit::class, 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); } diff --git a/src/Form/AdminPages/SupplierForm.php b/src/Form/AdminPages/SupplierForm.php index 327e72dd..326e09ea 100644 --- a/src/Form/AdminPages/SupplierForm.php +++ b/src/Form/AdminPages/SupplierForm.php @@ -38,7 +38,7 @@ class SupplierForm extends CompanyForm $builder->add('default_currency', StructuralEntityType::class, [ 'class' => Currency::class, 'required' => false, - 'label' => $this->trans->trans('supplier.edit.default_currency'), + 'label' => 'supplier.edit.default_currency', 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); @@ -46,7 +46,7 @@ class SupplierForm extends CompanyForm 'required' => false, 'currency' => $this->params->get('default_currency'), 'scale' => 3, - 'label' => $this->trans->trans('supplier.shipping_costs.label'), + 'label' => 'supplier.shipping_costs.label', 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); } diff --git a/src/Form/AttachmentFormType.php b/src/Form/AttachmentFormType.php index 477a8c4a..f06f6374 100644 --- a/src/Form/AttachmentFormType.php +++ b/src/Form/AttachmentFormType.php @@ -43,15 +43,13 @@ use Symfony\Contracts\Translation\TranslatorInterface; class AttachmentFormType extends AbstractType { protected $attachment_helper; - protected $trans; protected $urlGenerator; protected $allow_attachments_download; - public function __construct(AttachmentManager $attachmentHelper, TranslatorInterface $trans, + public function __construct(AttachmentManager $attachmentHelper, UrlGeneratorInterface $urlGenerator, bool $allow_attachments_downloads) { $this->attachment_helper = $attachmentHelper; - $this->trans = $trans; $this->urlGenerator = $urlGenerator; $this->allow_attachments_download = $allow_attachments_downloads; } @@ -59,50 +57,50 @@ class AttachmentFormType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('name', TextType::class, [ - 'label' => $this->trans->trans('attachment.edit.name'), + 'label' => 'attachment.edit.name', ]) ->add('attachment_type', StructuralEntityType::class, [ - 'label' => $this->trans->trans('attachment.edit.attachment_type'), + 'label' => 'attachment.edit.attachment_type', 'class' => AttachmentType::class, 'disable_not_selectable' => true, 'attr' => ['class' => 'attachment_type_selector'], ]); $builder->add('showInTable', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('attachment.edit.show_in_table'), + 'label' => 'attachment.edit.show_in_table', 'attr' => ['class' => 'form-control-sm'], 'label_attr' => ['class' => 'checkbox-custom'], ]); $builder->add('secureFile', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('attachment.edit.secure_file'), + 'label' => 'attachment.edit.secure_file', 'mapped' => false, 'attr' => ['class' => 'form-control-sm'], - 'help' => $this->trans->trans('attachment.edit.secure_file.help'), + 'help' => 'attachment.edit.secure_file.help', 'label_attr' => ['class' => 'checkbox-custom'], ]); $builder->add('url', TextType::class, [ - 'label' => $this->trans->trans('attachment.edit.url'), + 'label' => 'attachment.edit.url', 'required' => false, 'attr' => [ 'data-autocomplete' => $this->urlGenerator->generate('typeahead_builtInRessources', ['query' => 'QUERY']), //Disable browser autocomplete 'autocomplete' => 'off', ], - 'help' => $this->trans->trans('attachment.edit.url.help'), + 'help' => 'attachment.edit.url.help', 'constraints' => [ $options['allow_builtins'] ? new UrlOrBuiltin() : new Url(), ], ]); $builder->add('downloadURL', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('attachment.edit.download_url'), + 'label' => 'attachment.edit.download_url', 'mapped' => false, 'disabled' => !$this->allow_attachments_download, 'attr' => ['class' => 'form-control-sm'], 'label_attr' => ['class' => 'checkbox-custom'], ]); $builder->add('file', FileType::class, [ - 'label' => $this->trans->trans('attachment.edit.file'), + 'label' => 'attachment.edit.file', 'mapped' => false, 'required' => false, 'attr' => ['class' => 'file', 'data-show-preview' => 'false', 'data-show-upload' => 'false'], diff --git a/src/Form/Part/OrderdetailType.php b/src/Form/Part/OrderdetailType.php index 2d1bbfaf..6ab7c118 100644 --- a/src/Form/Part/OrderdetailType.php +++ b/src/Form/Part/OrderdetailType.php @@ -40,12 +40,10 @@ use Symfony\Contracts\Translation\TranslatorInterface; class OrderdetailType extends AbstractType { - protected $trans; protected $security; - public function __construct(TranslatorInterface $trans, Security $security) + public function __construct( Security $security) { - $this->trans = $trans; $this->security = $security; } @@ -55,27 +53,27 @@ class OrderdetailType extends AbstractType $orderdetail = $builder->getData(); $builder->add('supplierpartnr', TextType::class, [ - 'label' => $this->trans->trans('orderdetails.edit.supplierpartnr'), - 'attr' => ['placeholder' => $this->trans->trans('orderdetails.edit.supplierpartnr.placeholder')], + 'label' => 'orderdetails.edit.supplierpartnr', + 'attr' => ['placeholder' => 'orderdetails.edit.supplierpartnr.placeholder'], 'required' => false, 'empty_data' => '', ]); $builder->add('supplier', StructuralEntityType::class, [ 'class' => Supplier::class, 'disable_not_selectable' => true, - 'label' => $this->trans->trans('orderdetails.edit.supplier'), + 'label' => 'orderdetails.edit.supplier', ]); $builder->add('supplier_product_url', UrlType::class, [ 'required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('orderdetails.edit.url'), + 'label' => 'orderdetails.edit.url', ]); $builder->add('obsolete', CheckboxType::class, [ 'required' => false, 'label_attr' => ['class' => 'checkbox-custom'], - 'label' => $this->trans->trans('orderdetails.edit.obsolete'), + 'label' => 'orderdetails.edit.obsolete', ]); //Add pricedetails after we know the data, so we can set the default currency diff --git a/src/Form/Part/PartBaseType.php b/src/Form/Part/PartBaseType.php index e549be04..75fb8e6d 100644 --- a/src/Form/Part/PartBaseType.php +++ b/src/Form/Part/PartBaseType.php @@ -54,10 +54,9 @@ class PartBaseType extends AbstractType protected $trans; protected $urlGenerator; - public function __construct(Security $security, TranslatorInterface $trans, UrlGeneratorInterface $urlGenerator) + public function __construct(Security $security, UrlGeneratorInterface $urlGenerator) { $this->security = $security; - $this->trans = $trans; $this->urlGenerator = $urlGenerator; } @@ -67,52 +66,52 @@ class PartBaseType extends AbstractType $part = $builder->getData(); $status_choices = [ - $this->trans->trans('m_status.unknown') => '', - $this->trans->trans('m_status.announced') => 'announced', - $this->trans->trans('m_status.active') => 'active', - $this->trans->trans('m_status.nrfnd') => 'nrfnd', - $this->trans->trans('m_status.eol') => 'eol', - $this->trans->trans('m_status.discontinued') => 'discontinued', + 'm_status.unknown' => '', + 'm_status.announced' => 'announced', + 'm_status.active' => 'active', + 'm_status.nrfnd' => 'nrfnd', + 'm_status.eol' => 'eol', + 'm_status.discontinued' => 'discontinued', ]; //Common section $builder ->add('name', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('part.edit.name'), - 'attr' => ['placeholder' => $this->trans->trans('part.edit.name.placeholder')], + 'label' => 'part.edit.name', + 'attr' => ['placeholder' => 'part.edit.name.placeholder'], 'disabled' => !$this->security->isGranted('name.edit', $part), ]) ->add('description', CKEditorType::class, [ 'required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('part.edit.description'), + 'label' => 'part.edit.description', 'config_name' => 'description_config', - 'attr' => ['placeholder' => $this->trans->trans('part.edit.description.placeholder'), 'rows' => 2], + 'attr' => ['placeholder' => 'part.edit.description.placeholder', 'rows' => 2], 'disabled' => !$this->security->isGranted('description.edit', $part), ]) ->add('minAmount', SIUnitType::class, [ - 'attr' => ['min' => 0, 'placeholder' => $this->trans->trans('part.editmininstock.placeholder')], - 'label' => $this->trans->trans('part.edit.mininstock'), + 'attr' => ['min' => 0, 'placeholder' => 'part.editmininstock.placeholder'], + 'label' => 'part.edit.mininstock', 'measurement_unit' => $part->getPartUnit(), 'disabled' => !$this->security->isGranted('minamount.edit', $part), ]) ->add('category', StructuralEntityType::class, [ 'class' => Category::class, - 'label' => $this->trans->trans('part.edit.category'), + 'label' => 'part.edit.category', 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted('category.edit', $part), ]) ->add('footprint', StructuralEntityType::class, [ 'class' => Footprint::class, 'required' => false, - 'label' => $this->trans->trans('part.edit.footprint'), + 'label' => 'part.edit.footprint', 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted('footprint.edit', $part), ]) ->add('tags', TextType::class, [ 'required' => false, - 'label' => $this->trans->trans('part.edit.tags'), + 'label' => 'part.edit.tags', 'empty_data' => '', 'attr' => [ 'class' => 'tagsinput', @@ -124,23 +123,23 @@ class PartBaseType extends AbstractType $builder->add('manufacturer', StructuralEntityType::class, [ 'class' => Manufacturer::class, 'required' => false, - 'label' => $this->trans->trans('part.edit.manufacturer.label'), + 'label' => 'part.edit.manufacturer.label', 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted('manufacturer.edit', $part), ]) ->add('manufacturer_product_url', UrlType::class, [ 'required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('part.edit.manufacturer_url.label'), + 'label' => 'part.edit.manufacturer_url.label', 'disabled' => !$this->security->isGranted('mpn.edit', $part), ]) ->add('manufacturer_product_number', TextType::class, [ 'required' => false, 'empty_data' => '', - 'label' => $this->trans->trans('part.edit.mpn'), + 'label' => 'part.edit.mpn', 'disabled' => !$this->security->isGranted('mpn.edit', $part), ]) ->add('manufacturing_status', ChoiceType::class, [ - 'label' => $this->trans->trans('part.edit.manufacturing_status'), + 'label' => 'part.edit.manufacturing_status', 'choices' => $status_choices, 'required' => false, 'disabled' => !$this->security->isGranted('status.edit', $part), @@ -150,18 +149,18 @@ class PartBaseType extends AbstractType $builder->add('needsReview', CheckboxType::class, [ 'label_attr' => ['class' => 'checkbox-custom'], 'required' => false, - 'label' => $this->trans->trans('part.edit.needs_review'), + 'label' => 'part.edit.needs_review', 'disabled' => !$this->security->isGranted('edit', $part), ]) ->add('favorite', CheckboxType::class, [ 'label_attr' => ['class' => 'checkbox-custom'], 'required' => false, - 'label' => $this->trans->trans('part.edit.is_favorite'), + 'label' => 'part.edit.is_favorite', 'disabled' => !$this->security->isGranted('change_favorite', $part), ]) ->add('mass', SIUnitType::class, [ 'unit' => 'g', - 'label' => $this->trans->trans('part.edit.mass'), + 'label' => 'part.edit.mass', 'required' => false, 'disabled' => !$this->security->isGranted('mass.edit', $part), ]) @@ -169,14 +168,14 @@ class PartBaseType extends AbstractType 'class' => MeasurementUnit::class, 'required' => false, 'disable_not_selectable' => true, - 'label' => $this->trans->trans('part.edit.partUnit'), + 'label' => 'part.edit.partUnit', 'disabled' => !$this->security->isGranted('unit.edit', $part), ]); //Comment section $builder->add('comment', CKEditorType::class, [ 'required' => false, - 'label' => $this->trans->trans('part.edit.comment'), + 'label' => 'part.edit.comment', 'attr' => ['rows' => 4], 'disabled' => !$this->security->isGranted('comment.edit', $part), 'empty_data' => '', ]); @@ -210,7 +209,7 @@ class PartBaseType extends AbstractType $builder->add('master_picture_attachment', MasterPictureAttachmentType::class, [ 'required' => false, 'disabled' => !$this->security->isGranted('attachments.edit', $part), - 'label' => $this->trans->trans('part.edit.master_attachment'), + 'label' => 'part.edit.master_attachment', 'entity' => $part, ]); @@ -230,8 +229,8 @@ class PartBaseType extends AbstractType $builder //Buttons - ->add('save', SubmitType::class, ['label' => $this->trans->trans('part.edit.save')]) - ->add('reset', ResetType::class, ['label' => $this->trans->trans('part.edit.reset')]); + ->add('save', SubmitType::class, ['label' => 'part.edit.save']) + ->add('reset', ResetType::class, ['label' => 'part.edit.reset']); } public function configureOptions(OptionsResolver $resolver) diff --git a/src/Form/Part/PartLotType.php b/src/Form/Part/PartLotType.php index d2b2cdbc..f7776e87 100644 --- a/src/Form/Part/PartLotType.php +++ b/src/Form/Part/PartLotType.php @@ -37,26 +37,24 @@ use Symfony\Contracts\Translation\TranslatorInterface; class PartLotType extends AbstractType { - protected $trans; protected $security; - public function __construct(TranslatorInterface $trans, Security $security) + public function __construct(Security $security) { - $this->trans = $trans; $this->security = $security; } public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('description', TextType::class, [ - 'label' => $this->trans->trans('part_lot.edit.description'), + 'label' => 'part_lot.edit.description', 'required' => false, 'empty_data' => '', 'attr' => ['class' => 'form-control-sm'], ]); $builder->add('storage_location', StructuralEntityType::class, ['class' => Storelocation::class, - 'label' => $this->trans->trans('part_lot.edit.location'), + 'label' => 'part_lot.edit.location', 'required' => false, 'disable_not_selectable' => true, 'attr' => ['class' => 'selectpicker form-control-sm', 'data-live-search' => true], @@ -64,29 +62,29 @@ class PartLotType extends AbstractType $builder->add('amount', SIUnitType::class, [ 'measurement_unit' => $options['measurement_unit'], - 'label' => $this->trans->trans('part_lot.edit.amount'), + 'label' => 'part_lot.edit.amount', 'attr' => ['class' => 'form-control-sm'], ]); $builder->add('instock_unknown', CheckboxType::class, ['required' => false, - 'label' => $this->trans->trans('part_lot.edit.instock_unknown'), + 'label' => 'part_lot.edit.instock_unknown', 'attr' => ['class' => 'form-control-sm'], 'label_attr' => ['class' => 'checkbox-custom'], ]); $builder->add('needs_refill', CheckboxType::class, ['label_attr' => ['class' => 'checkbox-custom'], - 'label' => $this->trans->trans('part_lot.edit.needs_refill'), + 'label' => 'part_lot.edit.needs_refill', 'attr' => ['class' => 'form-control-sm'], 'required' => false, ]); $builder->add('expirationDate', DateTimeType::class, [ - 'label' => $this->trans->trans('part_lot.edit.expiration_date'), + 'label' => 'part_lot.edit.expiration_date', 'attr' => [], 'required' => false, ]); $builder->add('comment', TextType::class, [ - 'label' => $this->trans->trans('part_lot.edit.comment'), + 'label' => 'part_lot.edit.comment', 'attr' => ['class' => 'form-control-sm'], 'required' => false, 'empty_data' => '', ]); diff --git a/src/Form/Part/PricedetailType.php b/src/Form/Part/PricedetailType.php index d81a772d..5790e59a 100644 --- a/src/Form/Part/PricedetailType.php +++ b/src/Form/Part/PricedetailType.php @@ -36,14 +36,17 @@ class PricedetailType extends AbstractType { //No labels needed, we define translation in templates $builder->add('min_discount_quantity', SIUnitType::class, [ + 'label' => false, 'measurement_unit' => $options['measurement_unit'], 'attr' => ['class' => 'form-control-sm'], ]); $builder->add('price_related_quantity', SIUnitType::class, [ + 'label' => false, 'measurement_unit' => $options['measurement_unit'], 'attr' => ['class' => 'form-control-sm'], ]); $builder->add('price', NumberType::class, [ + 'label' => false, 'scale' => 5, 'html5' => true, 'attr' => ['min' => 0, 'step' => 'any'], diff --git a/src/Form/Type/SIUnitType.php b/src/Form/Type/SIUnitType.php index 2e3b22c9..0e9d1f61 100644 --- a/src/Form/Type/SIUnitType.php +++ b/src/Form/Type/SIUnitType.php @@ -102,6 +102,7 @@ class SIUnitType extends AbstractType implements DataMapperInterface { $builder ->add('value', NumberType::class, [ + 'label' => false, 'html5' => $options['html5'], 'attr' => [ 'min' => (string) $options['min'], @@ -112,6 +113,7 @@ class SIUnitType extends AbstractType implements DataMapperInterface if ($options['show_prefix']) { $builder->add('prefix', ChoiceType::class, [ + 'label' => 'false', 'choices' => ['M' => 6, 'k' => 3, '' => 0, 'm' => -3, 'µ' => -6], ]); } diff --git a/src/Form/UserAdminForm.php b/src/Form/UserAdminForm.php index f9514dac..f8bcafb1 100644 --- a/src/Form/UserAdminForm.php +++ b/src/Form/UserAdminForm.php @@ -49,12 +49,10 @@ use Symfony\Contracts\Translation\TranslatorInterface; class UserAdminForm extends AbstractType { protected $security; - protected $trans; - public function __construct(Security $security, TranslatorInterface $trans) + public function __construct(Security $security) { $this->security = $security; - $this->trans = $trans; } public function configureOptions(OptionsResolver $resolver) @@ -72,44 +70,44 @@ class UserAdminForm extends AbstractType $builder ->add('name', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('user.username.label'), - 'attr' => ['placeholder' => $this->trans->trans('user.username.placeholder')], + 'label' => 'user.username.label', + 'attr' => ['placeholder' => 'user.username.placeholder'], 'disabled' => !$this->security->isGranted('edit_username', $entity), ]) ->add('group', StructuralEntityType::class, [ 'class' => Group::class, 'required' => false, - 'label' => $this->trans->trans('group.label'), + 'label' => 'group.label', 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted('change_group', $entity), ]) ->add('first_name', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('user.firstName.label'), - 'attr' => ['placeholder' => $this->trans->trans('user.firstName.placeholder')], 'required' => false, + 'label' => 'user.firstName.label', + 'attr' => ['placeholder' => 'user.firstName.placeholder'], 'required' => false, 'disabled' => !$this->security->isGranted('edit_infos', $entity), ]) ->add('last_name', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('user.lastName.label'), - 'attr' => ['placeholder' => $this->trans->trans('user.lastName.placeholder')], + 'label' => 'user.lastName.label', + 'attr' => ['placeholder' => 'user.lastName.placeholder'], 'required' => false, 'disabled' => !$this->security->isGranted('edit_infos', $entity), ]) ->add('email', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('user.email.label'), - 'attr' => ['placeholder' => $this->trans->trans('user.email.placeholder')], + 'label' => 'user.email.label', + 'attr' => ['placeholder' => 'user.email.placeholder'], 'required' => false, 'disabled' => !$this->security->isGranted('edit_infos', $entity), ]) ->add('department', TextType::class, [ 'empty_data' => '', - 'label' => $this->trans->trans('user.department.label'), - 'attr' => ['placeholder' => $this->trans->trans('user.department.placeholder')], + 'label' => 'user.department.label', + 'attr' => ['placeholder' => 'user.department.placeholder'], 'required' => false, 'disabled' => !$this->security->isGranted('edit_infos', $entity), ]) @@ -118,16 +116,16 @@ class UserAdminForm extends AbstractType ->add('language', LanguageType::class, [ 'required' => false, 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], - 'placeholder' => $this->trans->trans('user_settings.language.placeholder'), - 'label' => $this->trans->trans('user.language_select'), + 'placeholder' => 'user_settings.language.placeholder', + 'label' => 'user.language_select', 'preferred_choices' => ['en', 'de'], 'disabled' => !$this->security->isGranted('change_user_settings', $entity), ]) ->add('timezone', TimezoneType::class, [ 'required' => false, 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], - 'placeholder' => $this->trans->trans('user_settings.timezone.placeholder'), - 'label' => $this->trans->trans('user.timezone.label'), + 'placeholder' => 'user_settings.timezone.placeholder', + 'label' => 'user.timezone.label', 'preferred_choices' => ['Europe/Berlin'], 'disabled' => !$this->security->isGranted('change_user_settings', $entity), ]) @@ -138,20 +136,20 @@ class UserAdminForm extends AbstractType return $value; }, 'attr' => ['class' => 'selectpicker'], - 'placeholder' => $this->trans->trans('user_settings.theme.placeholder'), - 'label' => $this->trans->trans('user.theme.label'), + 'placeholder' => 'user_settings.theme.placeholder', + 'label' => 'user.theme.label', 'disabled' => !$this->security->isGranted('change_user_settings', $entity), ]) ->add('currency', CurrencyEntityType::class, [ 'required' => false, - 'label' => $this->trans->trans('user.currency.label'), + 'label' => 'user.currency.label', 'disabled' => !$this->security->isGranted('change_user_settings', $entity), ]) ->add('new_password', RepeatedType::class, [ 'type' => PasswordType::class, - 'first_options' => ['label' => $this->trans->trans('user.settings.pw_new.label')], - 'second_options' => ['label' => $this->trans->trans('user.settings.pw_confirm.label')], + 'first_options' => ['label' => 'user.settings.pw_new.label'], + 'second_options' => ['label' => 'user.settings.pw_confirm.label'], 'invalid_message' => 'password_must_match', 'required' => false, 'mapped' => false, @@ -165,14 +163,14 @@ class UserAdminForm extends AbstractType ->add('need_pw_change', CheckboxType::class, [ 'required' => false, 'label_attr' => ['class' => 'checkbox-custom'], - 'label' => $this->trans->trans('user.edit.needs_pw_change'), + 'label' => 'user.edit.needs_pw_change', 'disabled' => !$this->security->isGranted('set_password', $entity), ]) ->add('disabled', CheckboxType::class, [ 'required' => false, 'label_attr' => ['class' => 'checkbox-custom'], - 'label' => $this->trans->trans('user.edit.user_disabled'), + 'label' => 'user.edit.user_disabled', 'disabled' => !$this->security->isGranted('set_password', $entity) || $entity === $this->security->getUser(), ]) @@ -205,11 +203,11 @@ class UserAdminForm extends AbstractType //Buttons $builder->add('save', SubmitType::class, [ - 'label' => $is_new ? $this->trans->trans('user.create') : $this->trans->trans('user.edit.save'), + 'label' => $is_new ? 'user.create' : 'user.edit.save', 'attr' => ['class' => $is_new ? 'btn-success' : ''], ]) ->add('reset', ResetType::class, [ - 'label' => $this->trans->trans('entity.edit.reset'), + 'label' => 'entity.edit.reset', ]); } diff --git a/src/Form/UserSettingsType.php b/src/Form/UserSettingsType.php index e6f4dfe0..25093923 100644 --- a/src/Form/UserSettingsType.php +++ b/src/Form/UserSettingsType.php @@ -39,15 +39,11 @@ use Symfony\Contracts\Translation\TranslatorInterface; class UserSettingsType extends AbstractType { protected $security; - - protected $trans; - protected $demo_mode; - public function __construct(Security $security, TranslatorInterface $trans, bool $demo_mode) + public function __construct(Security $security, bool $demo_mode) { $this->security = $security; - $this->trans = $trans; $this->demo_mode = $demo_mode; } @@ -55,43 +51,43 @@ class UserSettingsType extends AbstractType { $builder ->add('name', TextType::class, [ - 'label' => $this->trans->trans('user.username.label'), + 'label' => 'user.username.label', 'disabled' => !$this->security->isGranted('edit_username', $options['data']) || $this->demo_mode, ]) ->add('first_name', TextType::class, [ 'required' => false, - 'label' => $this->trans->trans('user.firstName.label'), + 'label' => 'user.firstName.label', 'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode, ]) ->add('last_name', TextType::class, [ 'required' => false, - 'label' => $this->trans->trans('user.lastName.label'), + 'label' => 'user.lastName.label', 'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode, ]) ->add('department', TextType::class, [ 'required' => false, - 'label' => $this->trans->trans('user.department.label'), + 'label' => 'user.department.label', 'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode, ]) ->add('email', EmailType::class, [ 'required' => false, - 'label' => $this->trans->trans('user.email.label'), + 'label' => 'user.email.label', 'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode, ]) ->add('language', LanguageType::class, [ 'disabled' => $this->demo_mode, 'required' => false, 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], - 'placeholder' => $this->trans->trans('user_settings.language.placeholder'), - 'label' => $this->trans->trans('user.language_select'), + 'placeholder' => 'user_settings.language.placeholder', + 'label' => 'user.language_select', 'preferred_choices' => ['en', 'de'], ]) ->add('timezone', TimezoneType::class, [ 'disabled' => $this->demo_mode, 'required' => false, 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], - 'placeholder' => $this->trans->trans('user_settings.timezone.placeholder'), - 'label' => $this->trans->trans('user.timezone.label'), + 'placeholder' => 'user_settings.timezone.placeholder', + 'label' => 'user.timezone.label', 'preferred_choices' => ['Europe/Berlin'], ]) ->add('theme', ChoiceType::class, [ @@ -102,13 +98,13 @@ class UserSettingsType extends AbstractType 'choice_label' => function ($entity, $key, $value) { return $value; }, - 'placeholder' => $this->trans->trans('user_settings.theme.placeholder'), - 'label' => $this->trans->trans('user.theme.label'), + 'placeholder' => 'user_settings.theme.placeholder', + 'label' => 'user.theme.label', ]) ->add('currency', CurrencyEntityType::class, [ 'disabled' => $this->demo_mode, 'required' => false, - 'label' => $this->trans->trans('user.currency.label'), + 'label' => 'user.currency.label', ]) //Buttons diff --git a/src/Services/GitVersionInfo.php b/src/Services/GitVersionInfo.php index ddc0a0c5..b0cbaf2e 100644 --- a/src/Services/GitVersionInfo.php +++ b/src/Services/GitVersionInfo.php @@ -52,7 +52,7 @@ class GitVersionInfo /** * Get hash of the last git commit (on remote "origin"!). * - * @note If this method does not work, try to make a "git pull" first! + * If this method does not work, try to make a "git pull" first! * * @param int $length if this is smaller than 40, only the first $length characters will be returned * diff --git a/templates/_flash.html.twig b/templates/_flash.html.twig index 583f88e8..2a38ca1a 100644 --- a/templates/_flash.html.twig +++ b/templates/_flash.html.twig @@ -23,7 +23,7 @@
- {{ message}} + {{ message | trans}}
{% endfor %} diff --git a/translations/messages.de.xlf b/translations/messages.de.xlf index be5989bf..18932f71 100644 --- a/translations/messages.de.xlf +++ b/translations/messages.de.xlf @@ -475,7 +475,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\AdminPages\_export_form.html.twig:4 - src\Form\AdminPages\ImportType.php:60 + src\Form\AdminPages\ImportType.php:56 templates\AdminPages\_export_form.html.twig:4 src\Form\ImportType.php:67 @@ -1173,7 +1173,6 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Parts\info\show_part_info.html.twig:46 templates\_navbar.html.twig:46 - src\Form\AdminPages\BaseEntityAdminForm.php:84 templates\base.html.twig:62 templates\Parts\show_part_info.html.twig:74 src\Form\PartType.php:86 @@ -1915,8 +1914,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:18 - src\Form\UserAdminForm.php:89 - src\Form\UserSettingsType.php:63 + src\Form\UserSettingsType.php:57 templates\Users\user_info.html.twig:18 src\Form\UserSettingsType.php:32 @@ -1928,8 +1926,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:24 - src\Form\UserAdminForm.php:96 - src\Form\UserSettingsType.php:68 + src\Form\UserSettingsType.php:62 templates\Users\user_info.html.twig:24 src\Form\UserSettingsType.php:35 @@ -1941,8 +1938,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:30 - src\Form\UserAdminForm.php:104 - src\Form\UserSettingsType.php:78 + src\Form\UserSettingsType.php:72 templates\Users\user_info.html.twig:30 src\Form\UserSettingsType.php:41 @@ -1954,8 +1950,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:37 - src\Form\UserAdminForm.php:111 - src\Form\UserSettingsType.php:73 + src\Form\UserSettingsType.php:67 templates\Users\user_info.html.twig:37 src\Form\UserSettingsType.php:38 @@ -1967,8 +1962,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:47 - src\Form\UserAdminForm.php:75 - src\Form\UserSettingsType.php:58 + src\Form\UserSettingsType.php:53 templates\Users\user_info.html.twig:47 src\Form\UserSettingsType.php:30 @@ -1980,7 +1974,6 @@ Subelemente werden beim Löschen nach oben verschoben. templates\Users\user_info.html.twig:53 - src\Form\UserAdminForm.php:83 src\Services\ElementTypeNameGenerator.php:70 templates\Users\user_info.html.twig:53 @@ -2065,7 +2058,6 @@ Subelemente werden beim Löschen nach oben verschoben. templates\_navbar.html.twig:30 - src\Form\AdminPages\BaseEntityAdminForm.php:69 templates\base.html.twig:54 src\Form\PartType.php:62 @@ -2190,8 +2182,7 @@ Subelemente werden beim Löschen nach oben verschoben. templates\_navbar.html.twig:115 - src\Form\UserAdminForm.php:122 - src\Form\UserSettingsType.php:86 + src\Form\UserSettingsType.php:77 templates\base.html.twig:106 src\Form\UserSettingsType.php:44 @@ -2297,41 +2288,37 @@ Subelemente werden beim Löschen nach oben verschoben. src\Controller\AdminPages\BaseAdminController.php:110 - new - + entity.edit_flash - + Änderungen erfolgreich gespeichert. src\Controller\AdminPages\BaseAdminController.php:116 - new - + entity.edit_flash.invalid - + Änderungen konnten nicht gespeichert werden! Prüfen Sie ihre Eingaben! src\Controller\AdminPages\BaseAdminController.php:166 - new - + entity.created_flash - + Element erfolgreich angelegt! src\Controller\AdminPages\BaseAdminController.php:172 - new - + entity.created_flash.invalid - + Element konnte nicht angelegt werden! Prüfen Sie ihre Eingaben! @@ -2348,77 +2335,10 @@ Subelemente werden beim Löschen nach oben verschoben. src\Controller\AdminPages\BaseAdminController.php:257 - new - + csfr_invalid - - - - - - src\Controller\DebugController.php:38 - src\Controller\DebugController.php:45 - new - - - Success Flash Message! - - - - - - src\Controller\DebugController.php:39 - src\Controller\DebugController.php:46 - new - - - Error Flash Message! - - - - - - src\Controller\DebugController.php:40 - src\Controller\DebugController.php:47 - new - - - Warning Flash Message! - - - - - - src\Controller\DebugController.php:41 - src\Controller\DebugController.php:48 - new - - - Notice Flash Message! - - - - - - src\Controller\DebugController.php:42 - src\Controller\DebugController.php:49 - new - - - Info Flash Message! <b>Test</b> - - - - - - src\Controller\DebugController.php:44 - src\Controller\DebugController.php:51 - new - - - Blabla. This message type should be not know to template! - + CSFR-Token ungültig! Laden Sie diese Seite erneut oder kontaktieren Sie einen Administrator, wenn das Problem bestehen bleibt! @@ -2615,11 +2535,10 @@ Subelemente werden beim Löschen nach oben verschoben. src\Controller\PartController.php:133 - new - + part.deleted - + Bauteil erfolgreich gelöscht. @@ -2732,7 +2651,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\AttachmentDataTable.php:89 - src\Form\AttachmentFormType.php:62 + src\Form\AttachmentFormType.php:59 attachment.edit.name @@ -2780,7 +2699,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\AttachmentDataTable.php:169 - src\Form\AttachmentFormType.php:72 + src\Form\AttachmentFormType.php:69 attachment.edit.show_in_table @@ -2963,7 +2882,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:272 src\DataTables\PartsDataTable.php:274 - src\Form\Part\PartBaseType.php:70 + src\Form\Part\PartBaseType.php:68 m_status.unknown @@ -2973,7 +2892,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:275 - src\Form\Part\PartBaseType.php:71 + src\Form\Part\PartBaseType.php:68 m_status.announced @@ -2983,7 +2902,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:276 - src\Form\Part\PartBaseType.php:72 + src\Form\Part\PartBaseType.php:68 m_status.active @@ -2993,7 +2912,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:277 - src\Form\Part\PartBaseType.php:73 + src\Form\Part\PartBaseType.php:68 m_status.nrfnd @@ -3003,7 +2922,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:278 - src\Form\Part\PartBaseType.php:74 + src\Form\Part\PartBaseType.php:68 m_status.eol @@ -3013,7 +2932,7 @@ Subelemente werden beim Löschen nach oben verschoben. src\DataTables\PartsDataTable.php:279 - src\Form\Part\PartBaseType.php:75 + src\Form\Part\PartBaseType.php:68 m_status.discontinued @@ -3065,236 +2984,6 @@ Subelemente werden beim Löschen nach oben verschoben. Login erfolgreich. - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:48 - - - attachment_type.edit.filetype_filter - Erlaubte Dateitypen - - - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:49 - - - attachment_type.edit.filetype_filter.help - Sie können hier eine kommaseparierte Liste von Dateiendungen oder Mimetypen angeben, die eine hochgeladene Datei mit diesem Anhangstyp haben muss. Um alle unterstützten Bilddateien zu erlauben, kann image/* benutzt werden. - - - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:50 - - - attachment_type.edit.filetype_filter.placeholder - z.B. .txt, application/pdf, image/* - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:70 - src\Form\PartType.php:63 - - - part.name.placeholder - z.B. BC547 - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:74 - src\Form\AdminPages\ImportType.php:70 - src\Form\AdminPages\MassCreationForm.php:66 - src\Form\ImportType.php:72 - - - parent.label - Übergeordnetes Element - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:78 - - - entity.edit.not_selectable - Nicht auswählbar - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:79 - - - entity.edit.not_selectable.help - Wenn diese Option aktiviert ist, dann kann dieses Element keinem Bauteil als Eigenschaft zugewiesen werden. Hilfreich z.B. wenn dieses Element nur der reinen Sortierung dienen soll. - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:85 - - - bbcode.hint - Hier kann BBCode verwendet werden (z.B. [b]Fett[/b]) - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:106 - src\Form\Part\PartBaseType.php:213 - - - part.edit.master_attachment - Vorschaubild - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:112 - - - entity.create - Element anlegen - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:112 - - - entity.edit.save - Speichern - - - - - src\Form\AdminPages\CategoryAdminForm.php:36 - - - category.edit.disable_footprints - Deaktiviere Footprints - - - - - src\Form\AdminPages\CategoryAdminForm.php:37 - - - category.edit.disable_footprints.help - Wenn diese Option aktiviert ist, ist die Footprint Eigenschaft für alle Bauteile in dieser Kategorie, deaktiviert. - - - - - src\Form\AdminPages\CategoryAdminForm.php:42 - - - category.edit.disable_manufacturers - Deaktiviere Hersteller - - - - - src\Form\AdminPages\CategoryAdminForm.php:43 - - - category.edit.disable_manufacturers.help - Wenn diese Option aktiviert ist, ist die Hersteller Eigenschaft für alle Bauteile in dieser Kategorie, deaktiviert. - - - - - src\Form\AdminPages\CategoryAdminForm.php:48 - - - category.edit.disable_autodatasheets - Deaktiviere Automatische Datenblatt links - - - - - src\Form\AdminPages\CategoryAdminForm.php:49 - - - category.edit.disable_autodatasheets.help - Wenn diese Option aktiviert ist, werden für Bauteile mit dieser Kategorie keine automatischen Datenblattlinks erzeugt. - - - - - src\Form\AdminPages\CategoryAdminForm.php:54 - - - category.edit.disable_properties - Deaktiviere Eigenschaften - - - - - src\Form\AdminPages\CategoryAdminForm.php:55 - - - category.edit.disable_properties.help - Wenn diese Option aktiviert ist, sind die Bauteileeigenschaften für alle Bauteile in dieser Kategorie, deaktiviert. - - - - - src\Form\AdminPages\CategoryAdminForm.php:60 - - - category.edit.partname_hint - Namenshinweis - - - - - src\Form\AdminPages\CategoryAdminForm.php:61 - - - category.edit.partname_hint.placeholder - z.B. 100nF - - - - - src\Form\AdminPages\CategoryAdminForm.php:65 - - - category.edit.partname_regex - Namensfilter - - - - - src\Form\AdminPages\CategoryAdminForm.php:70 - - - category.edit.default_description - Standard Beschreibung - - - - - src\Form\AdminPages\CategoryAdminForm.php:71 - - - category.edit.default_description.placeholder - z.B. Kondensator, 10mmx10mm, SMD - - - - - src\Form\AdminPages\CategoryAdminForm.php:75 - - - category.edit.default_comment - Standard Kommentar - - src\Form\AdminPages\CategoryAdminForm.php:76 @@ -3304,194 +2993,9 @@ Subelemente werden beim Löschen nach oben verschoben. e.g. Nützlich für Schaltnetzteile - - - src\Form\AdminPages\CompanyForm.php:38 - - - company.edit.address - Anschrift - - - - - src\Form\AdminPages\CompanyForm.php:40 - - - company.edit.address.placeholder - Musterstraße 314 -31415 Beispielhausen - - - - - src\Form\AdminPages\CompanyForm.php:45 - - - company.edit.phone_number - Telefonnummer - - - - - src\Form\AdminPages\CompanyForm.php:47 - - - company.edit.phone_number.placeholder - +49 12345 6789 - - - - - src\Form\AdminPages\CompanyForm.php:53 - - - company.edit.fax_number - Faxnummer - - - - - src\Form\AdminPages\CompanyForm.php:60 - - - company.edit.email - Email Addresse - - - - - src\Form\AdminPages\CompanyForm.php:62 - - - company.edit.email.placeholder - contact@foo.bar - - - - - src\Form\AdminPages\CompanyForm.php:67 - - - company.edit.website - Website - - - - - src\Form\AdminPages\CompanyForm.php:69 - - - company.edit.website.placeholder - https://www.foo.bar - - - - - src\Form\AdminPages\CompanyForm.php:74 - - - company.edit.auto_product_url - Produkt URL - - - - - src\Form\AdminPages\CompanyForm.php:75 - - - company.edit.auto_product_url.help - Wenn diese URL gesetzt ist, wird sie benutzt um die URL eines Bauteils auf der Website des Herstellers zu erzeugen. Dabei wird %PARTNR% mit der Bestellnummer ersetzt. - - - - - src\Form\AdminPages\CompanyForm.php:77 - - - company.edit.auto_product_url.placeholder - https://foo.bar/product/%PARTNR% - - - - - src\Form\AdminPages\CurrencyAdminForm.php:37 - - - currency.edit.iso_code - ISO Code - - - - - src\Form\AdminPages\CurrencyAdminForm.php:44 - - - currency.edit.exchange_rate - Wechselkurs - - - - - src\Form\AdminPages\FootprintAdminForm.php:35 - - - footprint.edit.3d_model - 3D Modell - - - - - src\Form\AdminPages\ImportType.php:63 - src\Form\ImportType.php:70 - - - import.csv_separator - CSV Trennzeichen - - - - - src\Form\AdminPages\ImportType.php:76 - src\Form\ImportType.php:75 - - - import.file - Datei - - - - - src\Form\AdminPages\ImportType.php:82 - src\Form\ImportType.php:78 - - - import.preserve_children - Importiere auch Unterelemente - - - - - src\Form\AdminPages\ImportType.php:85 - src\Form\ImportType.php:80 - - - import.abort_on_validation - Breche bei Invaliden Daten ab - - - - - src\Form\AdminPages\ImportType.php:86 - - - import.abort_on_validation.help - Wenn diese Option aktivert ist, wird beim erkennen ungültiger Daten der gesamte Vorgang abgebrochen. Ist diese Option nicht aktiv, werden ungültige Einträge ignoriert und versucht die anderen Einträge zu importieren. - - - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3501,7 +3005,7 @@ Subelemente werden beim Löschen nach oben verschoben. - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3511,7 +3015,7 @@ Subelemente werden beim Löschen nach oben verschoben. - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3521,7 +3025,7 @@ Subelemente werden beim Löschen nach oben verschoben. - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3529,9 +3033,68 @@ Subelemente werden beim Löschen nach oben verschoben. YAML + + + src\Form\AdminPages\ImportType.php:84 + + + import.abort_on_validation.help + Wenn diese Option aktivert ist, wird beim erkennen ungültiger Daten der gesamte Vorgang abgebrochen. Ist diese Option nicht aktiv, werden ungültige Einträge ignoriert und versucht die anderen Einträge zu importieren. + + + + + src\Form\AdminPages\ImportType.php:60 + src\Form\ImportType.php:70 + + + import.csv_separator + CSV Trennzeichen + + + + + src\Form\AdminPages\ImportType.php:65 + src\Form\ImportType.php:72 + + + parent.label + Übergeordnetes Element + + + + + src\Form\AdminPages\ImportType.php:73 + src\Form\ImportType.php:75 + + + import.file + Datei + + + + + src\Form\AdminPages\ImportType.php:79 + src\Form\ImportType.php:78 + + + import.preserve_children + Importiere auch Unterelemente + + + + + src\Form\AdminPages\ImportType.php:82 + src\Form\ImportType.php:80 + + + import.abort_on_validation + Breche bei Invaliden Daten ab + + - src\Form\AdminPages\ImportType.php:90 + src\Form\AdminPages\ImportType.php:88 src\Form\ImportType.php:85 @@ -3539,182 +3102,27 @@ Subelemente werden beim Löschen nach oben verschoben. Importieren - + - src\Form\AdminPages\MassCreationForm.php:55 + src\Form\AttachmentFormType.php:78 - mass_creation.lines - Eingabe + attachment.edit.secure_file.help + Auf ein Anhang der als privat gekennzeichnet ist, kann nur durch einen angemeldeten Benutzer zugegriffen werden, der die entsprechende Berechtigung besitzt. Wenn diese Option aktiv ist, werden keine Thumbnails erzeugt, und der Zugriff auf die Datei ist langsamer. - + - src\Form\AdminPages\MassCreationForm.php:58 + src\Form\AttachmentFormType.php:89 - mass_creation.lines.placeholder - Element 1 -Element 2 -Element 3 - - - - - src\Form\AdminPages\MassCreationForm.php:72 - - - entity.mass_creation.btn - Anlegen - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:36 - - - measurement_unit.edit.is_integer - Ganzzahlig - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:37 - - - measurement_unit.edit.is_integer.help - Wenn diese Option aktiviert ist, werden alle Mengen in dieser Einheit auf ganze Zahlen gerundet. - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:42 - - - measurement_unit.edit.use_si_prefix - Benutze SI Prefixe - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:43 - - - measurement_unit.edit.use_si_prefix.help - Wenn diese Option aktiviert ist, werden bei Ausgabe der Zahlen SI Prefixe benutzt (z.B. 1,2kg anstatt 1200g) - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:48 - - - measurement_unit.edit.unit_symbol - Einheitensymbol - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:49 - - - measurement_unit.edit.unit_symbol.placeholder - z.B. m - - - - - src\Form\AdminPages\StorelocationAdminForm.php:38 - - - storelocation.edit.is_full.label - Lagerort voll - - - - - src\Form\AdminPages\StorelocationAdminForm.php:39 - - - storelocation.edit.is_full.help - Wenn diese Option aktiviert ist, ist es weder möglich neue Bauteile zu diesem Lagerort hinzuzufügen, noch die Anzahl bereits vorhandener Bauteile zu erhöhen. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:45 - - - storelocation.limit_to_existing.label - Nur bestehende Bauteile - - - - - src\Form\AdminPages\StorelocationAdminForm.php:46 - - - storelocation.limit_to_existing.help - Wenn diese Option aktiv ist, ist es nicht möglich neue Bauteile zu diesem Lagerort hinzuzufügen, es ist aber möglich die Anzahl bereits vorhandener Bauteile zu erhöhen. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:52 - - - storelocation.only_single_part.label - Nur ein ein Bauteil - - - - - src\Form\AdminPages\StorelocationAdminForm.php:53 - - - storelocation.only_single_part.help - Wenn diese Option aktiviert ist, kann dieser Lagerort nur ein einzelnes Bauteil aber in beliebiger Menge fassen. Hilfreich für kleine SMD Fächer oder Feeder. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:59 - - - storelocation.storage_type.label - Lagertyp - - - - - src\Form\AdminPages\StorelocationAdminForm.php:60 - - - storelocation.storage_type.help - Hier kann eine Maßeinheit gewählt werden, die ein Bauteil haben muss, damit es in diesem Lagerort gelagert werden kann. - - - - - src\Form\AdminPages\SupplierForm.php:41 - - - supplier.edit.default_currency - Standardwährung - - - - - src\Form\AdminPages\SupplierForm.php:49 - - - supplier.shipping_costs.label - Versandkosten + attachment.edit.url.help + Hier kann entweder eine URL zu einer externen Datei eingetragen werden, oder es wird durch Eingabe eines Stichwortes in den eingebauten Ressourcen gesucht (z.B. Footprints). - src\Form\AttachmentFormType.php:65 + src\Form\AttachmentFormType.php:62 attachment.edit.attachment_type @@ -3723,43 +3131,25 @@ Element 3 - src\Form\AttachmentFormType.php:77 + src\Form\AttachmentFormType.php:74 attachment.edit.secure_file Privater Anhang - - - src\Form\AttachmentFormType.php:80 - - - attachment.edit.secure_file.help - Auf ein Anhang der als privat gekennzeichnet ist, kann nur durch einen angemeldeten Benutzer zugegriffen werden, der die entsprechende Berechtigung besitzt. Wenn diese Option aktiv ist, werden keine Thumbnails erzeugt, und der Zugriff auf die Datei ist langsamer. - - - src\Form\AttachmentFormType.php:84 + src\Form\AttachmentFormType.php:81 attachment.edit.url URL - - - src\Form\AttachmentFormType.php:91 - - - attachment.edit.url.help - Hier kann entweder eine URL zu einer externen Datei eingetragen werden, oder es wird durch Eingabe eines Stichwortes in den eingebauten Ressourcen gesucht (z.B. Footprints). - - - src\Form\AttachmentFormType.php:98 + src\Form\AttachmentFormType.php:95 attachment.edit.download_url @@ -3768,7 +3158,7 @@ Element 3 - src\Form\AttachmentFormType.php:105 + src\Form\AttachmentFormType.php:102 attachment.edit.file @@ -3777,25 +3167,16 @@ Element 3 - src\Form\Part\OrderdetailType.php:58 + src\Form\Part\OrderdetailType.php:55 orderdetails.edit.supplierpartnr Bestellnummer - - - src\Form\Part\OrderdetailType.php:59 - - - orderdetails.edit.supplierpartnr.placeholder - z.B. BC 547C - - - src\Form\Part\OrderdetailType.php:66 + src\Form\Part\OrderdetailType.php:62 orderdetails.edit.supplier @@ -3804,7 +3185,7 @@ Element 3 - src\Form\Part\OrderdetailType.php:72 + src\Form\Part\OrderdetailType.php:67 orderdetails.edit.url @@ -3813,61 +3194,43 @@ Element 3 - src\Form\Part\OrderdetailType.php:78 + src\Form\Part\OrderdetailType.php:73 orderdetails.edit.obsolete Nicht mehr lieferbar + + + src\Form\Part\OrderdetailType.php:57 + + + orderdetails.edit.supplierpartnr.placeholder + z.B. BC 547C + + - src\Form\Part\PartBaseType.php:82 + src\Form\Part\PartBaseType.php:79 part.edit.name Name - - - src\Form\Part\PartBaseType.php:83 - - - part.edit.name.placeholder - z.B. BC547 - - - src\Form\Part\PartBaseType.php:89 + src\Form\Part\PartBaseType.php:85 part.edit.description Beschreibung - - - src\Form\Part\PartBaseType.php:91 - - - part.edit.description.placeholder - z.B. NPN 45V 0,1A 0,5W - - - - - src\Form\Part\PartBaseType.php:95 - - - part.editmininstock.placeholder - e.g. 1 - - - src\Form\Part\PartBaseType.php:96 + src\Form\Part\PartBaseType.php:93 part.edit.mininstock @@ -3876,7 +3239,7 @@ Element 3 - src\Form\Part\PartBaseType.php:102 + src\Form\Part\PartBaseType.php:99 part.edit.category @@ -3885,7 +3248,7 @@ Element 3 - src\Form\Part\PartBaseType.php:109 + src\Form\Part\PartBaseType.php:105 part.edit.footprint @@ -3894,7 +3257,7 @@ Element 3 - src\Form\Part\PartBaseType.php:115 + src\Form\Part\PartBaseType.php:112 part.edit.tags @@ -3903,7 +3266,7 @@ Element 3 - src\Form\Part\PartBaseType.php:127 + src\Form\Part\PartBaseType.php:123 part.edit.manufacturer.label @@ -3912,7 +3275,7 @@ Element 3 - src\Form\Part\PartBaseType.php:134 + src\Form\Part\PartBaseType.php:130 part.edit.manufacturer_url.label @@ -3921,7 +3284,7 @@ Element 3 - src\Form\Part\PartBaseType.php:140 + src\Form\Part\PartBaseType.php:136 part.edit.mpn @@ -3930,7 +3293,7 @@ Element 3 - src\Form\Part\PartBaseType.php:143 + src\Form\Part\PartBaseType.php:141 part.edit.manufacturing_status @@ -3939,7 +3302,7 @@ Element 3 - src\Form\Part\PartBaseType.php:153 + src\Form\Part\PartBaseType.php:149 part.edit.needs_review @@ -3948,7 +3311,7 @@ Element 3 - src\Form\Part\PartBaseType.php:159 + src\Form\Part\PartBaseType.php:155 part.edit.is_favorite @@ -3957,7 +3320,7 @@ Element 3 - src\Form\Part\PartBaseType.php:164 + src\Form\Part\PartBaseType.php:161 part.edit.mass @@ -3966,7 +3329,7 @@ Element 3 - src\Form\Part\PartBaseType.php:172 + src\Form\Part\PartBaseType.php:167 part.edit.partUnit @@ -3975,16 +3338,25 @@ Element 3 - src\Form\Part\PartBaseType.php:179 + src\Form\Part\PartBaseType.php:176 part.edit.comment Kommentat + + + src\Form\Part\PartBaseType.php:209 + + + part.edit.master_attachment + Vorschaubild + + - src\Form\Part\PartBaseType.php:233 + src\Form\Part\PartBaseType.php:232 src\Form\PartType.php:91 @@ -3994,7 +3366,7 @@ Element 3 - src\Form\Part\PartBaseType.php:234 + src\Form\Part\PartBaseType.php:233 src\Form\PartType.php:92 @@ -4002,9 +3374,36 @@ Element 3 Änderungen verwerfen + + + src\Form\Part\PartBaseType.php:82 + + + part.edit.name.placeholder + z.B. BC547 + + + + + src\Form\Part\PartBaseType.php:90 + + + part.edit.description.placeholder + z.B. NPN 45V 0,1A 0,5W + + + + + src\Form\Part\PartBaseType.php:94 + + + part.editmininstock.placeholder + e.g. 1 + + - src\Form\Part\PartLotType.php:52 + src\Form\Part\PartLotType.php:49 part_lot.edit.description @@ -4013,7 +3412,7 @@ Element 3 - src\Form\Part\PartLotType.php:59 + src\Form\Part\PartLotType.php:56 part_lot.edit.location @@ -4022,7 +3421,7 @@ Element 3 - src\Form\Part\PartLotType.php:67 + src\Form\Part\PartLotType.php:63 part_lot.edit.amount @@ -4031,7 +3430,7 @@ Element 3 - src\Form\Part\PartLotType.php:72 + src\Form\Part\PartLotType.php:69 part_lot.edit.instock_unknown @@ -4040,7 +3439,7 @@ Element 3 - src\Form\Part\PartLotType.php:78 + src\Form\Part\PartLotType.php:75 part_lot.edit.needs_refill @@ -4049,7 +3448,7 @@ Element 3 - src\Form\Part\PartLotType.php:84 + src\Form\Part\PartLotType.php:81 part_lot.edit.expiration_date @@ -4058,51 +3457,20 @@ Element 3 - src\Form\Part\PartLotType.php:89 + src\Form\Part\PartLotType.php:86 part_lot.edit.comment Kommentar - - - src\Form\Part\PricedetailType.php:38 - new - - - min_discount_quantity - - - - - - src\Form\Part\PricedetailType.php:42 - new - - - price_related_quantity - - - - - - src\Form\Part\PricedetailType.php:46 - new - - - price - - - - src\Form\Part\PricedetailType.php:51 - new + src\Form\Part\PricedetailType.php:54 - + currency - + Währung @@ -4117,140 +3485,48 @@ Element 3 src\Form\Type\SIUnitType.php:115 - new - + M - + M src\Form\Type\SIUnitType.php:115 - new - + k - + k - - - + + + src\Form\Type\SIUnitType.php:115 - new - + m - + m src\Form\Type\SIUnitType.php:115 - new - + µ - - - - - - src\Form\Type\SIUnitType.php:103 - new - - - value - - - - - - src\Form\Type\SIUnitType.php:114 - new - - - prefix - - - - - - src\Form\UserAdminForm.php:76 - - - user.username.placeholder - z.B. m.muster - - - - - src\Form\UserAdminForm.php:90 - - - user.firstName.placeholder - z.B. Max - - - - - src\Form\UserAdminForm.php:97 - - - user.lastName.placeholder - z.B. Muster - - - - - src\Form\UserAdminForm.php:105 - - - user.email.placeholder - z.B. m.muster@ecorp.com - - - - - src\Form\UserAdminForm.php:112 - - - user.department.placeholder - z.B. Entwicklung - - - - - src\Form\UserAdminForm.php:121 - src\Form\UserSettingsType.php:85 - src\Form\UserSettingsType.php:45 - - - user_settings.language.placeholder - Serverweite Sprache - - - - - src\Form\UserAdminForm.php:129 - src\Form\UserSettingsType.php:93 - src\Form\UserSettingsType.php:48 - - - user_settings.timezone.placeholder - Serverweite Zeitzone + µ - src\Form\UserAdminForm.php:130 - src\Form\UserSettingsType.php:94 + src\Form\UserSettingsType.php:85 src\Form\UserSettingsType.php:46 @@ -4258,21 +3534,9 @@ Element 3 Zeitzone - - - src\Form\UserAdminForm.php:141 - src\Form\UserSettingsType.php:105 - src\Form\UserSettingsType.php:50 - - - user_settings.theme.placeholder - Serverweites Theme - - - src\Form\UserAdminForm.php:142 - src\Form\UserSettingsType.php:106 + src\Form\UserSettingsType.php:93 src\Form\UserSettingsType.php:49 @@ -4282,80 +3546,16 @@ Element 3 - src\Form\UserAdminForm.php:147 - src\Form\UserSettingsType.php:111 + src\Form\UserSettingsType.php:104 user.currency.label Bevorzugte Währung - - - src\Form\UserAdminForm.php:153 - - - user.settings.pw_new.label - Neues Passwort - - - - - src\Form\UserAdminForm.php:154 - - - user.settings.pw_confirm.label - Neues Passwort bestätigen - - - - - src\Form\UserAdminForm.php:168 - - - user.edit.needs_pw_change - Nutzer muss Passwort ändern - - - - - src\Form\UserAdminForm.php:175 - - - user.edit.user_disabled - Benutzer deaktiviert (kein Login möglich) - - - - - src\Form\UserAdminForm.php:208 - - - user.create - Benutzer anlegen - - - - - src\Form\UserAdminForm.php:208 - - - user.edit.save - Speichern - - - - - src\Form\UserAdminForm.php:212 - - - entity.edit.reset - Änderungen verwerfen - - - src\Form\UserSettingsType.php:115 + src\Form\UserSettingsType.php:111 src\Form\UserSettingsType.php:53 @@ -4365,7 +3565,7 @@ Element 3 - src\Form\UserSettingsType.php:116 + src\Form\UserSettingsType.php:112 src\Form\UserSettingsType.php:54 @@ -4373,6 +3573,36 @@ Element 3 Änderungen verwerfen + + + src\Form\UserSettingsType.php:81 + src\Form\UserSettingsType.php:45 + + + user_settings.language.placeholder + Serverweite Sprache + + + + + src\Form\UserSettingsType.php:89 + src\Form\UserSettingsType.php:48 + + + user_settings.timezone.placeholder + Serverweite Zeitzone + + + + + src\Form\UserSettingsType.php:101 + src\Form\UserSettingsType.php:50 + + + user_settings.theme.placeholder + Serverweites Theme + + src\Services\ElementTypeNameGenerator.php:56 @@ -4660,6 +3890,631 @@ Element 3 Neues Element + + + obsolete + + + attachment_type.edit.filetype_filter + Erlaubte Dateitypen + + + + + obsolete + + + attachment_type.edit.filetype_filter.help + Sie können hier eine kommaseparierte Liste von Dateiendungen oder Mimetypen angeben, die eine hochgeladene Datei mit diesem Anhangstyp haben muss. Um alle unterstützten Bilddateien zu erlauben, kann image/* benutzt werden. + + + + + obsolete + + + attachment_type.edit.filetype_filter.placeholder + z.B. .txt, application/pdf, image/* + + + + + src\Form\PartType.php:63 + obsolete + + + part.name.placeholder + z.B. BC547 + + + + + obsolete + + + entity.edit.not_selectable + Nicht auswählbar + + + + + obsolete + + + entity.edit.not_selectable.help + Wenn diese Option aktiviert ist, dann kann dieses Element keinem Bauteil als Eigenschaft zugewiesen werden. Hilfreich z.B. wenn dieses Element nur der reinen Sortierung dienen soll. + + + + + obsolete + + + bbcode.hint + Hier kann BBCode verwendet werden (z.B. [b]Fett[/b]) + + + + + obsolete + + + entity.create + Element anlegen + + + + + obsolete + + + entity.edit.save + Speichern + + + + + obsolete + + + category.edit.disable_footprints + Deaktiviere Footprints + + + + + obsolete + + + category.edit.disable_footprints.help + Wenn diese Option aktiviert ist, ist die Footprint Eigenschaft für alle Bauteile in dieser Kategorie, deaktiviert. + + + + + obsolete + + + category.edit.disable_manufacturers + Deaktiviere Hersteller + + + + + obsolete + + + category.edit.disable_manufacturers.help + Wenn diese Option aktiviert ist, ist die Hersteller Eigenschaft für alle Bauteile in dieser Kategorie, deaktiviert. + + + + + obsolete + + + category.edit.disable_autodatasheets + Deaktiviere Automatische Datenblatt links + + + + + obsolete + + + category.edit.disable_autodatasheets.help + Wenn diese Option aktiviert ist, werden für Bauteile mit dieser Kategorie keine automatischen Datenblattlinks erzeugt. + + + + + obsolete + + + category.edit.disable_properties + Deaktiviere Eigenschaften + + + + + obsolete + + + category.edit.disable_properties.help + Wenn diese Option aktiviert ist, sind die Bauteileeigenschaften für alle Bauteile in dieser Kategorie, deaktiviert. + + + + + obsolete + + + category.edit.partname_hint + Namenshinweis + + + + + obsolete + + + category.edit.partname_hint.placeholder + z.B. 100nF + + + + + obsolete + + + category.edit.partname_regex + Namensfilter + + + + + obsolete + + + category.edit.default_description + Standard Beschreibung + + + + + obsolete + + + category.edit.default_description.placeholder + z.B. Kondensator, 10mmx10mm, SMD + + + + + obsolete + + + category.edit.default_comment + Standard Kommentar + + + + + obsolete + + + company.edit.address + Anschrift + + + + + obsolete + + + company.edit.address.placeholder + Musterstraße 314 +31415 Beispielhausen + + + + + obsolete + + + company.edit.phone_number + Telefonnummer + + + + + obsolete + + + company.edit.phone_number.placeholder + +49 12345 6789 + + + + + obsolete + + + company.edit.fax_number + Faxnummer + + + + + obsolete + + + company.edit.email + Email Addresse + + + + + obsolete + + + company.edit.email.placeholder + contact@foo.bar + + + + + obsolete + + + company.edit.website + Website + + + + + obsolete + + + company.edit.website.placeholder + https://www.foo.bar + + + + + obsolete + + + company.edit.auto_product_url + Produkt URL + + + + + obsolete + + + company.edit.auto_product_url.help + Wenn diese URL gesetzt ist, wird sie benutzt um die URL eines Bauteils auf der Website des Herstellers zu erzeugen. Dabei wird %PARTNR% mit der Bestellnummer ersetzt. + + + + + obsolete + + + company.edit.auto_product_url.placeholder + https://foo.bar/product/%PARTNR% + + + + + obsolete + + + currency.edit.iso_code + ISO Code + + + + + obsolete + + + currency.edit.exchange_rate + Wechselkurs + + + + + obsolete + + + footprint.edit.3d_model + 3D Modell + + + + + obsolete + + + mass_creation.lines + Eingabe + + + + + obsolete + + + mass_creation.lines.placeholder + Element 1 +Element 2 +Element 3 + + + + + obsolete + + + entity.mass_creation.btn + Anlegen + + + + + obsolete + + + measurement_unit.edit.is_integer + Ganzzahlig + + + + + obsolete + + + measurement_unit.edit.is_integer.help + Wenn diese Option aktiviert ist, werden alle Mengen in dieser Einheit auf ganze Zahlen gerundet. + + + + + obsolete + + + measurement_unit.edit.use_si_prefix + Benutze SI Prefixe + + + + + obsolete + + + measurement_unit.edit.use_si_prefix.help + Wenn diese Option aktiviert ist, werden bei Ausgabe der Zahlen SI Prefixe benutzt (z.B. 1,2kg anstatt 1200g) + + + + + obsolete + + + measurement_unit.edit.unit_symbol + Einheitensymbol + + + + + obsolete + + + measurement_unit.edit.unit_symbol.placeholder + z.B. m + + + + + obsolete + + + storelocation.edit.is_full.label + Lagerort voll + + + + + obsolete + + + storelocation.edit.is_full.help + Wenn diese Option aktiviert ist, ist es weder möglich neue Bauteile zu diesem Lagerort hinzuzufügen, noch die Anzahl bereits vorhandener Bauteile zu erhöhen. + + + + + obsolete + + + storelocation.limit_to_existing.label + Nur bestehende Bauteile + + + + + obsolete + + + storelocation.limit_to_existing.help + Wenn diese Option aktiv ist, ist es nicht möglich neue Bauteile zu diesem Lagerort hinzuzufügen, es ist aber möglich die Anzahl bereits vorhandener Bauteile zu erhöhen. + + + + + obsolete + + + storelocation.only_single_part.label + Nur ein ein Bauteil + + + + + obsolete + + + storelocation.only_single_part.help + Wenn diese Option aktiviert ist, kann dieser Lagerort nur ein einzelnes Bauteil aber in beliebiger Menge fassen. Hilfreich für kleine SMD Fächer oder Feeder. + + + + + obsolete + + + storelocation.storage_type.label + Lagertyp + + + + + obsolete + + + storelocation.storage_type.help + Hier kann eine Maßeinheit gewählt werden, die ein Bauteil haben muss, damit es in diesem Lagerort gelagert werden kann. + + + + + obsolete + + + supplier.edit.default_currency + Standardwährung + + + + + obsolete + + + supplier.shipping_costs.label + Versandkosten + + + + + obsolete + + + user.username.placeholder + z.B. m.muster + + + + + obsolete + + + user.firstName.placeholder + z.B. Max + + + + + obsolete + + + user.lastName.placeholder + z.B. Muster + + + + + obsolete + + + user.email.placeholder + z.B. m.muster@ecorp.com + + + + + obsolete + + + user.department.placeholder + z.B. Entwicklung + + + + + obsolete + + + user.settings.pw_new.label + Neues Passwort + + + + + obsolete + + + user.settings.pw_confirm.label + Neues Passwort bestätigen + + + + + obsolete + + + user.edit.needs_pw_change + Nutzer muss Passwort ändern + + + + + obsolete + + + user.edit.user_disabled + Benutzer deaktiviert (kein Login möglich) + + + + + obsolete + + + user.create + Benutzer anlegen + + + + + obsolete + + + user.edit.save + Speichern + + + + + obsolete + + + entity.edit.reset + Änderungen verwerfen + + templates\Parts\show_part_info.html.twig:161 diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 4e06412c..067877db 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -471,7 +471,7 @@ Subelements will be moved upwards.]]> templates\AdminPages\_export_form.html.twig:4 - src\Form\AdminPages\ImportType.php:60 + src\Form\AdminPages\ImportType.php:56 templates\AdminPages\_export_form.html.twig:4 src\Form\ImportType.php:67 @@ -1167,7 +1167,6 @@ Subelements will be moved upwards.]]> templates\Parts\info\show_part_info.html.twig:46 templates\_navbar.html.twig:46 - src\Form\AdminPages\BaseEntityAdminForm.php:84 templates\base.html.twig:62 templates\Parts\show_part_info.html.twig:74 src\Form\PartType.php:86 @@ -1906,8 +1905,7 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:18 - src\Form\UserAdminForm.php:89 - src\Form\UserSettingsType.php:63 + src\Form\UserSettingsType.php:57 templates\Users\user_info.html.twig:18 src\Form\UserSettingsType.php:32 @@ -1919,8 +1917,7 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:24 - src\Form\UserAdminForm.php:96 - src\Form\UserSettingsType.php:68 + src\Form\UserSettingsType.php:62 templates\Users\user_info.html.twig:24 src\Form\UserSettingsType.php:35 @@ -1932,8 +1929,7 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:30 - src\Form\UserAdminForm.php:104 - src\Form\UserSettingsType.php:78 + src\Form\UserSettingsType.php:72 templates\Users\user_info.html.twig:30 src\Form\UserSettingsType.php:41 @@ -1945,8 +1941,7 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:37 - src\Form\UserAdminForm.php:111 - src\Form\UserSettingsType.php:73 + src\Form\UserSettingsType.php:67 templates\Users\user_info.html.twig:37 src\Form\UserSettingsType.php:38 @@ -1958,8 +1953,7 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:47 - src\Form\UserAdminForm.php:75 - src\Form\UserSettingsType.php:58 + src\Form\UserSettingsType.php:53 templates\Users\user_info.html.twig:47 src\Form\UserSettingsType.php:30 @@ -1971,7 +1965,6 @@ Subelements will be moved upwards.]]> templates\Users\user_info.html.twig:53 - src\Form\UserAdminForm.php:83 src\Services\ElementTypeNameGenerator.php:70 templates\Users\user_info.html.twig:53 @@ -2056,7 +2049,6 @@ Subelements will be moved upwards.]]> templates\_navbar.html.twig:30 - src\Form\AdminPages\BaseEntityAdminForm.php:69 templates\base.html.twig:54 src\Form\PartType.php:62 @@ -2181,8 +2173,7 @@ Subelements will be moved upwards.]]> templates\_navbar.html.twig:115 - src\Form\UserAdminForm.php:122 - src\Form\UserSettingsType.php:86 + src\Form\UserSettingsType.php:77 templates\base.html.twig:106 src\Form\UserSettingsType.php:44 @@ -2289,36 +2280,36 @@ Subelements will be moved upwards.]]> src\Controller\AdminPages\BaseAdminController.php:110 - + entity.edit_flash - + Changes saved successful. src\Controller\AdminPages\BaseAdminController.php:116 - + entity.edit_flash.invalid - + Can not save changed. Please check your input! src\Controller\AdminPages\BaseAdminController.php:166 - + entity.created_flash - + Element created. src\Controller\AdminPages\BaseAdminController.php:172 - + entity.created_flash.invalid - + Could not create element. Please check your input! @@ -2335,69 +2326,9 @@ Subelements will be moved upwards.]]> src\Controller\AdminPages\BaseAdminController.php:257 - + csfr_invalid - - - - - - src\Controller\DebugController.php:38 - src\Controller\DebugController.php:45 - - - Success Flash Message! - - - - - - src\Controller\DebugController.php:39 - src\Controller\DebugController.php:46 - - - Error Flash Message! - - - - - - src\Controller\DebugController.php:40 - src\Controller\DebugController.php:47 - - - Warning Flash Message! - - - - - - src\Controller\DebugController.php:41 - src\Controller\DebugController.php:48 - - - Notice Flash Message! - - - - - - src\Controller\DebugController.php:42 - src\Controller\DebugController.php:49 - - - Info Flash Message! <b>Test</b> - - - - - - src\Controller\DebugController.php:44 - src\Controller\DebugController.php:51 - - - Blabla. This message type should be not know to template! - + CSFR Token invalid. Please reload this page or contact an administrator if this message stays. @@ -2594,9 +2525,9 @@ Subelements will be moved upwards.]]> src\Controller\PartController.php:133 - + part.deleted - + Part deleted successful. @@ -2706,7 +2637,7 @@ Subelements will be moved upwards.]]> src\DataTables\AttachmentDataTable.php:89 - src\Form\AttachmentFormType.php:62 + src\Form\AttachmentFormType.php:59 attachment.edit.name @@ -2754,7 +2685,7 @@ Subelements will be moved upwards.]]> src\DataTables\AttachmentDataTable.php:169 - src\Form\AttachmentFormType.php:72 + src\Form\AttachmentFormType.php:69 attachment.edit.show_in_table @@ -2937,7 +2868,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:272 src\DataTables\PartsDataTable.php:274 - src\Form\Part\PartBaseType.php:70 + src\Form\Part\PartBaseType.php:68 m_status.unknown @@ -2947,7 +2878,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:275 - src\Form\Part\PartBaseType.php:71 + src\Form\Part\PartBaseType.php:68 m_status.announced @@ -2957,7 +2888,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:276 - src\Form\Part\PartBaseType.php:72 + src\Form\Part\PartBaseType.php:68 m_status.active @@ -2967,7 +2898,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:277 - src\Form\Part\PartBaseType.php:73 + src\Form\Part\PartBaseType.php:68 m_status.nrfnd @@ -2977,7 +2908,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:278 - src\Form\Part\PartBaseType.php:74 + src\Form\Part\PartBaseType.php:68 m_status.eol @@ -2987,7 +2918,7 @@ Subelements will be moved upwards.]]> src\DataTables\PartsDataTable.php:279 - src\Form\Part\PartBaseType.php:75 + src\Form\Part\PartBaseType.php:68 m_status.discontinued @@ -3039,236 +2970,6 @@ Subelements will be moved upwards.]]> Login successful - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:48 - - - attachment_type.edit.filetype_filter - Allowed file extensions. - - - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:49 - - - attachment_type.edit.filetype_filter.help - You can specify a comma separated list of file extension or mimetypes, which an uploaded file must have when assigned to this attachment type. To allow all supported image files you can use image/*. - - - - - src\Form\AdminPages\AttachmentTypeAdminForm.php:50 - - - attachment_type.edit.filetype_filter.placeholder - e.g. .txt, application/pdf, image/* - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:70 - src\Form\PartType.php:63 - - - part.name.placeholder - e.g. BC547 - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:74 - src\Form\AdminPages\ImportType.php:70 - src\Form\AdminPages\MassCreationForm.php:66 - src\Form\ImportType.php:72 - - - parent.label - Parent element - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:78 - - - entity.edit.not_selectable - Not selectable - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:79 - - - entity.edit.not_selectable.help - If this option is activated, this element can not be assigned to a part property. Useful if this element is just used for grouping. - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:85 - - - bbcode.hint - You can use BBCode here (e.g. [b]Bold[/b]) - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:106 - src\Form\Part\PartBaseType.php:213 - - - part.edit.master_attachment - Preview image - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:112 - - - entity.create - Create element - - - - - src\Form\AdminPages\BaseEntityAdminForm.php:112 - - - entity.edit.save - Save - - - - - src\Form\AdminPages\CategoryAdminForm.php:36 - - - category.edit.disable_footprints - Disable footprints - - - - - src\Form\AdminPages\CategoryAdminForm.php:37 - - - category.edit.disable_footprints.help - If this option is activated, the footprint property is disabled for all parts with this category. - - - - - src\Form\AdminPages\CategoryAdminForm.php:42 - - - category.edit.disable_manufacturers - Disable manufacturers - - - - - src\Form\AdminPages\CategoryAdminForm.php:43 - - - category.edit.disable_manufacturers.help - If this option is activated, the manufacturer property is disabled for all parts with this category. - - - - - src\Form\AdminPages\CategoryAdminForm.php:48 - - - category.edit.disable_autodatasheets - Disable automatic datasheet links - - - - - src\Form\AdminPages\CategoryAdminForm.php:49 - - - category.edit.disable_autodatasheets.help - If this option is activated, no automatic links to datasheets are created for parts with this category. - - - - - src\Form\AdminPages\CategoryAdminForm.php:54 - - - category.edit.disable_properties - Disable properties - - - - - src\Form\AdminPages\CategoryAdminForm.php:55 - - - category.edit.disable_properties.help - If this option is activated, the part properties are disabled for parts with this category. - - - - - src\Form\AdminPages\CategoryAdminForm.php:60 - - - category.edit.partname_hint - Part name hint - - - - - src\Form\AdminPages\CategoryAdminForm.php:61 - - - category.edit.partname_hint.placeholder - e.g. 100nF - - - - - src\Form\AdminPages\CategoryAdminForm.php:65 - - - category.edit.partname_regex - Name filter - - - - - src\Form\AdminPages\CategoryAdminForm.php:70 - - - category.edit.default_description - Default description - - - - - src\Form\AdminPages\CategoryAdminForm.php:71 - - - category.edit.default_description.placeholder - e.g. Capacitor, 10mm x 10mm, SMD - - - - - src\Form\AdminPages\CategoryAdminForm.php:75 - - - category.edit.default_comment - Default comment - - src\Form\AdminPages\CategoryAdminForm.php:76 @@ -3278,194 +2979,9 @@ Subelements will be moved upwards.]]> e.g. useful for switching - - - src\Form\AdminPages\CompanyForm.php:38 - - - company.edit.address - Address - - - - - src\Form\AdminPages\CompanyForm.php:40 - - - company.edit.address.placeholder - e.g. Examplestreet 314 -Exampletown - - - - - src\Form\AdminPages\CompanyForm.php:45 - - - company.edit.phone_number - Phone number - - - - - src\Form\AdminPages\CompanyForm.php:47 - - - company.edit.phone_number.placeholder - +49 12345 6789 - - - - - src\Form\AdminPages\CompanyForm.php:53 - - - company.edit.fax_number - Fax number - - - - - src\Form\AdminPages\CompanyForm.php:60 - - - company.edit.email - Email - - - - - src\Form\AdminPages\CompanyForm.php:62 - - - company.edit.email.placeholder - e.g. contact@foo.bar - - - - - src\Form\AdminPages\CompanyForm.php:67 - - - company.edit.website - Website - - - - - src\Form\AdminPages\CompanyForm.php:69 - - - company.edit.website.placeholder - https://www.foo.bar - - - - - src\Form\AdminPages\CompanyForm.php:74 - - - company.edit.auto_product_url - Product url - - - - - src\Form\AdminPages\CompanyForm.php:75 - - - company.edit.auto_product_url.help - This field is used to determine an link to the part on the company page. %PARTNR% will be replaced with the order number. - - - - - src\Form\AdminPages\CompanyForm.php:77 - - - company.edit.auto_product_url.placeholder - https://foo.bar/product/%PARTNR% - - - - - src\Form\AdminPages\CurrencyAdminForm.php:37 - - - currency.edit.iso_code - ISO code - - - - - src\Form\AdminPages\CurrencyAdminForm.php:44 - - - currency.edit.exchange_rate - Exchange rate - - - - - src\Form\AdminPages\FootprintAdminForm.php:35 - - - footprint.edit.3d_model - 3D model - - - - - src\Form\AdminPages\ImportType.php:63 - src\Form\ImportType.php:70 - - - import.csv_separator - CSV separator - - - - - src\Form\AdminPages\ImportType.php:76 - src\Form\ImportType.php:75 - - - import.file - File - - - - - src\Form\AdminPages\ImportType.php:82 - src\Form\ImportType.php:78 - - - import.preserve_children - Preserve child elements on import - - - - - src\Form\AdminPages\ImportType.php:85 - src\Form\ImportType.php:80 - - - import.abort_on_validation - Abort on invalid data - - - - - src\Form\AdminPages\ImportType.php:86 - - - import.abort_on_validation.help - When this option is activated, the whole import process is aborted if invalid data is detected. If not selected, the invalid data is ignored and the importer will try to import the other elements. - - - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3475,7 +2991,7 @@ Exampletown - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3485,7 +3001,7 @@ Exampletown - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3495,7 +3011,7 @@ Exampletown - src\Form\AdminPages\ImportType.php:59 + src\Form\AdminPages\ImportType.php:57 src\Form\ImportType.php:68 @@ -3503,9 +3019,68 @@ Exampletown YAML + + + src\Form\AdminPages\ImportType.php:84 + + + import.abort_on_validation.help + When this option is activated, the whole import process is aborted if invalid data is detected. If not selected, the invalid data is ignored and the importer will try to import the other elements. + + + + + src\Form\AdminPages\ImportType.php:60 + src\Form\ImportType.php:70 + + + import.csv_separator + CSV separator + + + + + src\Form\AdminPages\ImportType.php:65 + src\Form\ImportType.php:72 + + + parent.label + Parent element + + + + + src\Form\AdminPages\ImportType.php:73 + src\Form\ImportType.php:75 + + + import.file + File + + + + + src\Form\AdminPages\ImportType.php:79 + src\Form\ImportType.php:78 + + + import.preserve_children + Preserve child elements on import + + + + + src\Form\AdminPages\ImportType.php:82 + src\Form\ImportType.php:80 + + + import.abort_on_validation + Abort on invalid data + + - src\Form\AdminPages\ImportType.php:90 + src\Form\AdminPages\ImportType.php:88 src\Form\ImportType.php:85 @@ -3513,182 +3088,27 @@ Exampletown Import - + - src\Form\AdminPages\MassCreationForm.php:55 + src\Form\AttachmentFormType.php:78 - mass_creation.lines - Input + attachment.edit.secure_file.help + An attachment marked private can only accessed by authenticated users with the proper permission. If this is activated no thumbnails are generated and access to file is less perfomant. - + - src\Form\AdminPages\MassCreationForm.php:58 + src\Form\AttachmentFormType.php:89 - mass_creation.lines.placeholder - Element 1 -Element 2 -Element 3 - - - - - src\Form\AdminPages\MassCreationForm.php:72 - - - entity.mass_creation.btn - Create - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:36 - - - measurement_unit.edit.is_integer - Is integer - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:37 - - - measurement_unit.edit.is_integer.help - If this option is activated, all values with this unit will be rounded to whole numbers. - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:42 - - - measurement_unit.edit.use_si_prefix - Use SI prefix - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:43 - - - measurement_unit.edit.use_si_prefix.help - If this option is activated, values are outputted with SI prefixes (e.g. 1,2kg instead of 1200g) - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:48 - - - measurement_unit.edit.unit_symbol - Unit symbol - - - - - src\Form\AdminPages\MeasurementUnitAdminForm.php:49 - - - measurement_unit.edit.unit_symbol.placeholder - e.g. m - - - - - src\Form\AdminPages\StorelocationAdminForm.php:38 - - - storelocation.edit.is_full.label - Storelocation full - - - - - src\Form\AdminPages\StorelocationAdminForm.php:39 - - - storelocation.edit.is_full.help - If this option is selected, it is neither possible to add new parts to this storelocation or to increase the amount of existing parts. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:45 - - - storelocation.limit_to_existing.label - Limit to existing parts - - - - - src\Form\AdminPages\StorelocationAdminForm.php:46 - - - storelocation.limit_to_existing.help - If this option is activated, it is not possible to add new parts to this storelocation, but the amount of existing parts can be increased. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:52 - - - storelocation.only_single_part.label - Only single part - - - - - src\Form\AdminPages\StorelocationAdminForm.php:53 - - - storelocation.only_single_part.help - If this option is activated, only a single part (with every amount) can be assigned to this store location. Useful for small SMD boxes or feeders. - - - - - src\Form\AdminPages\StorelocationAdminForm.php:59 - - - storelocation.storage_type.label - Storage type - - - - - src\Form\AdminPages\StorelocationAdminForm.php:60 - - - storelocation.storage_type.help - You can select a measurement unit here, which a part must have to be able to be assigned to this storage loaction - - - - - src\Form\AdminPages\SupplierForm.php:41 - - - supplier.edit.default_currency - Default currency - - - - - src\Form\AdminPages\SupplierForm.php:49 - - - supplier.shipping_costs.label - Shipping Costs + attachment.edit.url.help + You can specify a url to an external file here, or input an keyword which is used to search in builtin ressources (e.g. footprints) - src\Form\AttachmentFormType.php:65 + src\Form\AttachmentFormType.php:62 attachment.edit.attachment_type @@ -3697,43 +3117,25 @@ Element 3 - src\Form\AttachmentFormType.php:77 + src\Form\AttachmentFormType.php:74 attachment.edit.secure_file Private attachment - - - src\Form\AttachmentFormType.php:80 - - - attachment.edit.secure_file.help - An attachment marked private can only accessed by authenticated users with the proper permission. If this is activated no thumbnails are generated and access to file is less perfomant. - - - src\Form\AttachmentFormType.php:84 + src\Form\AttachmentFormType.php:81 attachment.edit.url URL - - - src\Form\AttachmentFormType.php:91 - - - attachment.edit.url.help - You can specify a url to an external file here, or input an keyword which is used to search in builtin ressources (e.g. footprints) - - - src\Form\AttachmentFormType.php:98 + src\Form\AttachmentFormType.php:95 attachment.edit.download_url @@ -3742,7 +3144,7 @@ Element 3 - src\Form\AttachmentFormType.php:105 + src\Form\AttachmentFormType.php:102 attachment.edit.file @@ -3751,25 +3153,16 @@ Element 3 - src\Form\Part\OrderdetailType.php:58 + src\Form\Part\OrderdetailType.php:55 orderdetails.edit.supplierpartnr Order number - - - src\Form\Part\OrderdetailType.php:59 - - - orderdetails.edit.supplierpartnr.placeholder - e.g. BC 547 - - - src\Form\Part\OrderdetailType.php:66 + src\Form\Part\OrderdetailType.php:62 orderdetails.edit.supplier @@ -3778,7 +3171,7 @@ Element 3 - src\Form\Part\OrderdetailType.php:72 + src\Form\Part\OrderdetailType.php:67 orderdetails.edit.url @@ -3787,61 +3180,43 @@ Element 3 - src\Form\Part\OrderdetailType.php:78 + src\Form\Part\OrderdetailType.php:73 orderdetails.edit.obsolete No longer available + + + src\Form\Part\OrderdetailType.php:57 + + + orderdetails.edit.supplierpartnr.placeholder + e.g. BC 547 + + - src\Form\Part\PartBaseType.php:82 + src\Form\Part\PartBaseType.php:79 part.edit.name Name - - - src\Form\Part\PartBaseType.php:83 - - - part.edit.name.placeholder - e.g. BC547 - - - src\Form\Part\PartBaseType.php:89 + src\Form\Part\PartBaseType.php:85 part.edit.description Description - - - src\Form\Part\PartBaseType.php:91 - - - part.edit.description.placeholder - e.g. NPN 45V, 0,1A, 0,5W - - - - - src\Form\Part\PartBaseType.php:95 - - - part.editmininstock.placeholder - e.g. 1 - - - src\Form\Part\PartBaseType.php:96 + src\Form\Part\PartBaseType.php:93 part.edit.mininstock @@ -3850,7 +3225,7 @@ Element 3 - src\Form\Part\PartBaseType.php:102 + src\Form\Part\PartBaseType.php:99 part.edit.category @@ -3859,7 +3234,7 @@ Element 3 - src\Form\Part\PartBaseType.php:109 + src\Form\Part\PartBaseType.php:105 part.edit.footprint @@ -3868,7 +3243,7 @@ Element 3 - src\Form\Part\PartBaseType.php:115 + src\Form\Part\PartBaseType.php:112 part.edit.tags @@ -3877,7 +3252,7 @@ Element 3 - src\Form\Part\PartBaseType.php:127 + src\Form\Part\PartBaseType.php:123 part.edit.manufacturer.label @@ -3886,7 +3261,7 @@ Element 3 - src\Form\Part\PartBaseType.php:134 + src\Form\Part\PartBaseType.php:130 part.edit.manufacturer_url.label @@ -3895,7 +3270,7 @@ Element 3 - src\Form\Part\PartBaseType.php:140 + src\Form\Part\PartBaseType.php:136 part.edit.mpn @@ -3904,7 +3279,7 @@ Element 3 - src\Form\Part\PartBaseType.php:143 + src\Form\Part\PartBaseType.php:141 part.edit.manufacturing_status @@ -3913,7 +3288,7 @@ Element 3 - src\Form\Part\PartBaseType.php:153 + src\Form\Part\PartBaseType.php:149 part.edit.needs_review @@ -3922,7 +3297,7 @@ Element 3 - src\Form\Part\PartBaseType.php:159 + src\Form\Part\PartBaseType.php:155 part.edit.is_favorite @@ -3931,7 +3306,7 @@ Element 3 - src\Form\Part\PartBaseType.php:164 + src\Form\Part\PartBaseType.php:161 part.edit.mass @@ -3940,7 +3315,7 @@ Element 3 - src\Form\Part\PartBaseType.php:172 + src\Form\Part\PartBaseType.php:167 part.edit.partUnit @@ -3949,16 +3324,25 @@ Element 3 - src\Form\Part\PartBaseType.php:179 + src\Form\Part\PartBaseType.php:176 part.edit.comment Comment + + + src\Form\Part\PartBaseType.php:209 + + + part.edit.master_attachment + Preview image + + - src\Form\Part\PartBaseType.php:233 + src\Form\Part\PartBaseType.php:232 src\Form\PartType.php:91 @@ -3968,7 +3352,7 @@ Element 3 - src\Form\Part\PartBaseType.php:234 + src\Form\Part\PartBaseType.php:233 src\Form\PartType.php:92 @@ -3976,9 +3360,36 @@ Element 3 Reset changes + + + src\Form\Part\PartBaseType.php:82 + + + part.edit.name.placeholder + e.g. BC547 + + + + + src\Form\Part\PartBaseType.php:90 + + + part.edit.description.placeholder + e.g. NPN 45V, 0,1A, 0,5W + + + + + src\Form\Part\PartBaseType.php:94 + + + part.editmininstock.placeholder + e.g. 1 + + - src\Form\Part\PartLotType.php:52 + src\Form\Part\PartLotType.php:49 part_lot.edit.description @@ -3987,7 +3398,7 @@ Element 3 - src\Form\Part\PartLotType.php:59 + src\Form\Part\PartLotType.php:56 part_lot.edit.location @@ -3996,7 +3407,7 @@ Element 3 - src\Form\Part\PartLotType.php:67 + src\Form\Part\PartLotType.php:63 part_lot.edit.amount @@ -4005,7 +3416,7 @@ Element 3 - src\Form\Part\PartLotType.php:72 + src\Form\Part\PartLotType.php:69 part_lot.edit.instock_unknown @@ -4014,7 +3425,7 @@ Element 3 - src\Form\Part\PartLotType.php:78 + src\Form\Part\PartLotType.php:75 part_lot.edit.needs_refill @@ -4023,7 +3434,7 @@ Element 3 - src\Form\Part\PartLotType.php:84 + src\Form\Part\PartLotType.php:81 part_lot.edit.expiration_date @@ -4032,49 +3443,13 @@ Element 3 - src\Form\Part\PartLotType.php:89 + src\Form\Part\PartLotType.php:86 part_lot.edit.comment Comment - - - src\Form\Part\PricedetailType.php:38 - - - min_discount_quantity - - - - - - src\Form\Part\PricedetailType.php:42 - - - price_related_quantity - - - - - - src\Form\Part\PricedetailType.php:46 - - - price - - - - - - src\Form\Part\PricedetailType.php:51 - - - currency - - - src\Form\Permissions\PermissionsType.php:78 @@ -4088,133 +3463,47 @@ Element 3 src\Form\Type\SIUnitType.php:115 - + M - + M src\Form\Type\SIUnitType.php:115 - + k - + k - - - + + + src\Form\Type\SIUnitType.php:115 - + m - + m src\Form\Type\SIUnitType.php:115 - + µ - - - - - - src\Form\Type\SIUnitType.php:103 - - - value - - - - - - src\Form\Type\SIUnitType.php:114 - - - prefix - - - - - - src\Form\UserAdminForm.php:76 - - - user.username.placeholder - e.g. j.doe - - - - - src\Form\UserAdminForm.php:90 - - - user.firstName.placeholder - e.g John - - - - - src\Form\UserAdminForm.php:97 - - - user.lastName.placeholder - e.g. Doe - - - - - src\Form\UserAdminForm.php:105 - - - user.email.placeholder - j.doe@ecorp.com - - - - - src\Form\UserAdminForm.php:112 - - - user.department.placeholder - e.g. Development - - - - - src\Form\UserAdminForm.php:121 - src\Form\UserSettingsType.php:85 - src\Form\UserSettingsType.php:45 - - - user_settings.language.placeholder - Serverwide language - - - - - src\Form\UserAdminForm.php:129 - src\Form\UserSettingsType.php:93 - src\Form\UserSettingsType.php:48 - - - user_settings.timezone.placeholder - Serverwide Timezone + µ - src\Form\UserAdminForm.php:130 - src\Form\UserSettingsType.php:94 + src\Form\UserSettingsType.php:85 src\Form\UserSettingsType.php:46 @@ -4222,21 +3511,9 @@ Element 3 Timezone - - - src\Form\UserAdminForm.php:141 - src\Form\UserSettingsType.php:105 - src\Form\UserSettingsType.php:50 - - - user_settings.theme.placeholder - Serverwide Theme - - - src\Form\UserAdminForm.php:142 - src\Form\UserSettingsType.php:106 + src\Form\UserSettingsType.php:93 src\Form\UserSettingsType.php:49 @@ -4246,80 +3523,16 @@ Element 3 - src\Form\UserAdminForm.php:147 - src\Form\UserSettingsType.php:111 + src\Form\UserSettingsType.php:104 user.currency.label Preferred currency - - - src\Form\UserAdminForm.php:153 - - - user.settings.pw_new.label - New password - - - - - src\Form\UserAdminForm.php:154 - - - user.settings.pw_confirm.label - Confirm new password - - - - - src\Form\UserAdminForm.php:168 - - - user.edit.needs_pw_change - User needs to change password - - - - - src\Form\UserAdminForm.php:175 - - - user.edit.user_disabled - User disbaled (no login possible) - - - - - src\Form\UserAdminForm.php:208 - - - user.create - Create user - - - - - src\Form\UserAdminForm.php:208 - - - user.edit.save - Save - - - - - src\Form\UserAdminForm.php:212 - - - entity.edit.reset - Discard changes - - - src\Form\UserSettingsType.php:115 + src\Form\UserSettingsType.php:111 src\Form\UserSettingsType.php:53 @@ -4329,7 +3542,7 @@ Element 3 - src\Form\UserSettingsType.php:116 + src\Form\UserSettingsType.php:112 src\Form\UserSettingsType.php:54 @@ -4337,6 +3550,36 @@ Element 3 Discard changes + + + src\Form\UserSettingsType.php:81 + src\Form\UserSettingsType.php:45 + + + user_settings.language.placeholder + Serverwide language + + + + + src\Form\UserSettingsType.php:89 + src\Form\UserSettingsType.php:48 + + + user_settings.timezone.placeholder + Serverwide Timezone + + + + + src\Form\UserSettingsType.php:101 + src\Form\UserSettingsType.php:50 + + + user_settings.theme.placeholder + Serverwide Theme + + src\Services\ElementTypeNameGenerator.php:56 @@ -4616,13 +3859,629 @@ Element 3 New Element - + obsolete - FormExtractorTest - + attachment_type.edit.filetype_filter + Allowed file extensions. + + + + + obsolete + + + attachment_type.edit.filetype_filter.help + You can specify a comma separated list of file extension or mimetypes, which an uploaded file must have when assigned to this attachment type. To allow all supported image files you can use image/*. + + + + + obsolete + + + attachment_type.edit.filetype_filter.placeholder + e.g. .txt, application/pdf, image/* + + + + + src\Form\PartType.php:63 + obsolete + + + part.name.placeholder + e.g. BC547 + + + + + obsolete + + + entity.edit.not_selectable + Not selectable + + + + + obsolete + + + entity.edit.not_selectable.help + If this option is activated, this element can not be assigned to a part property. Useful if this element is just used for grouping. + + + + + obsolete + + + bbcode.hint + You can use BBCode here (e.g. [b]Bold[/b]) + + + + + obsolete + + + entity.create + Create element + + + + + obsolete + + + entity.edit.save + Save + + + + + obsolete + + + category.edit.disable_footprints + Disable footprints + + + + + obsolete + + + category.edit.disable_footprints.help + If this option is activated, the footprint property is disabled for all parts with this category. + + + + + obsolete + + + category.edit.disable_manufacturers + Disable manufacturers + + + + + obsolete + + + category.edit.disable_manufacturers.help + If this option is activated, the manufacturer property is disabled for all parts with this category. + + + + + obsolete + + + category.edit.disable_autodatasheets + Disable automatic datasheet links + + + + + obsolete + + + category.edit.disable_autodatasheets.help + If this option is activated, no automatic links to datasheets are created for parts with this category. + + + + + obsolete + + + category.edit.disable_properties + Disable properties + + + + + obsolete + + + category.edit.disable_properties.help + If this option is activated, the part properties are disabled for parts with this category. + + + + + obsolete + + + category.edit.partname_hint + Part name hint + + + + + obsolete + + + category.edit.partname_hint.placeholder + e.g. 100nF + + + + + obsolete + + + category.edit.partname_regex + Name filter + + + + + obsolete + + + category.edit.default_description + Default description + + + + + obsolete + + + category.edit.default_description.placeholder + e.g. Capacitor, 10mm x 10mm, SMD + + + + + obsolete + + + category.edit.default_comment + Default comment + + + + + obsolete + + + company.edit.address + Address + + + + + obsolete + + + company.edit.address.placeholder + e.g. Examplestreet 314 +Exampletown + + + + + obsolete + + + company.edit.phone_number + Phone number + + + + + obsolete + + + company.edit.phone_number.placeholder + +49 12345 6789 + + + + + obsolete + + + company.edit.fax_number + Fax number + + + + + obsolete + + + company.edit.email + Email + + + + + obsolete + + + company.edit.email.placeholder + e.g. contact@foo.bar + + + + + obsolete + + + company.edit.website + Website + + + + + obsolete + + + company.edit.website.placeholder + https://www.foo.bar + + + + + obsolete + + + company.edit.auto_product_url + Product url + + + + + obsolete + + + company.edit.auto_product_url.help + This field is used to determine an link to the part on the company page. %PARTNR% will be replaced with the order number. + + + + + obsolete + + + company.edit.auto_product_url.placeholder + https://foo.bar/product/%PARTNR% + + + + + obsolete + + + currency.edit.iso_code + ISO code + + + + + obsolete + + + currency.edit.exchange_rate + Exchange rate + + + + + obsolete + + + footprint.edit.3d_model + 3D model + + + + + obsolete + + + mass_creation.lines + Input + + + + + obsolete + + + mass_creation.lines.placeholder + Element 1 +Element 2 +Element 3 + + + + + obsolete + + + entity.mass_creation.btn + Create + + + + + obsolete + + + measurement_unit.edit.is_integer + Is integer + + + + + obsolete + + + measurement_unit.edit.is_integer.help + If this option is activated, all values with this unit will be rounded to whole numbers. + + + + + obsolete + + + measurement_unit.edit.use_si_prefix + Use SI prefix + + + + + obsolete + + + measurement_unit.edit.use_si_prefix.help + If this option is activated, values are outputted with SI prefixes (e.g. 1,2kg instead of 1200g) + + + + + obsolete + + + measurement_unit.edit.unit_symbol + Unit symbol + + + + + obsolete + + + measurement_unit.edit.unit_symbol.placeholder + e.g. m + + + + + obsolete + + + storelocation.edit.is_full.label + Storelocation full + + + + + obsolete + + + storelocation.edit.is_full.help + If this option is selected, it is neither possible to add new parts to this storelocation or to increase the amount of existing parts. + + + + + obsolete + + + storelocation.limit_to_existing.label + Limit to existing parts + + + + + obsolete + + + storelocation.limit_to_existing.help + If this option is activated, it is not possible to add new parts to this storelocation, but the amount of existing parts can be increased. + + + + + obsolete + + + storelocation.only_single_part.label + Only single part + + + + + obsolete + + + storelocation.only_single_part.help + If this option is activated, only a single part (with every amount) can be assigned to this store location. Useful for small SMD boxes or feeders. + + + + + obsolete + + + storelocation.storage_type.label + Storage type + + + + + obsolete + + + storelocation.storage_type.help + You can select a measurement unit here, which a part must have to be able to be assigned to this storage loaction + + + + + obsolete + + + supplier.edit.default_currency + Default currency + + + + + obsolete + + + supplier.shipping_costs.label + Shipping Costs + + + + + obsolete + + + user.username.placeholder + e.g. j.doe + + + + + obsolete + + + user.firstName.placeholder + e.g John + + + + + obsolete + + + user.lastName.placeholder + e.g. Doe + + + + + obsolete + + + user.email.placeholder + j.doe@ecorp.com + + + + + obsolete + + + user.department.placeholder + e.g. Development + + + + + obsolete + + + user.settings.pw_new.label + New password + + + + + obsolete + + + user.settings.pw_confirm.label + Confirm new password + + + + + obsolete + + + user.edit.needs_pw_change + User needs to change password + + + + + obsolete + + + user.edit.user_disabled + User disbaled (no login possible) + + + + + obsolete + + + user.create + Create user + + + + + obsolete + + + user.edit.save + Save + + + + + obsolete + + + entity.edit.reset + Discard changes diff --git a/translations/validators.de.xlf b/translations/validators.de.xlf index c2064889..f13e0ced 100644 --- a/translations/validators.de.xlf +++ b/translations/validators.de.xlf @@ -20,7 +20,6 @@ src\Entity\PriceInformations\Currency.php:0 src\Entity\UserSystem\Group.php:0 src\Entity\UserSystem\User.php:0 - new part.master_attachment.must_be_picture @@ -62,7 +61,6 @@ src\Entity\UserSystem\User.php:0 - new validator.user.username_already_used