From 957024bd28517df295a38551ba760161181a2ceb Mon Sep 17 00:00:00 2001 From: Ambroise Maupate Date: Tue, 29 Aug 2023 10:01:59 +0200 Subject: [PATCH] fix: Renamed NodeTypeField and CustomFormField defaultValues field label --- lib/Rozier/src/Forms/CustomFormFieldType.php | 2 +- lib/Rozier/src/Forms/NodeTypeFieldType.php | 2 +- lib/Rozier/src/Resources/translations/messages.en.xlf | 8 ++++++++ lib/Rozier/src/Resources/translations/messages.fr.xlf | 7 +++++++ lib/Rozier/src/Resources/translations/messages.xlf | 2 ++ 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/lib/Rozier/src/Forms/CustomFormFieldType.php b/lib/Rozier/src/Forms/CustomFormFieldType.php index 1e7eeca0..0fc5675a 100644 --- a/lib/Rozier/src/Forms/CustomFormFieldType.php +++ b/lib/Rozier/src/Forms/CustomFormFieldType.php @@ -50,7 +50,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'defaultValues', TextareaType::class, [ - 'label' => 'defaultValues', + 'label' => 'customFormField.defaultValues', 'required' => false, 'attr' => [ 'placeholder' => 'enter_values_comma_separated', diff --git a/lib/Rozier/src/Forms/NodeTypeFieldType.php b/lib/Rozier/src/Forms/NodeTypeFieldType.php index 6de0803d..2d779998 100644 --- a/lib/Rozier/src/Forms/NodeTypeFieldType.php +++ b/lib/Rozier/src/Forms/NodeTypeFieldType.php @@ -72,7 +72,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'required' => false, ]) ->add('defaultValues', DynamicType::class, [ - 'label' => 'defaultValues', + 'label' => 'nodeTypeField.defaultValues', 'required' => false, 'help' => 'for_children_node_and_node_references_enter_node_type_names_comma_separated', 'attr' => [ diff --git a/lib/Rozier/src/Resources/translations/messages.en.xlf b/lib/Rozier/src/Resources/translations/messages.en.xlf index 4e6b94b3..a9970db6 100644 --- a/lib/Rozier/src/Resources/translations/messages.en.xlf +++ b/lib/Rozier/src/Resources/translations/messages.en.xlf @@ -394,6 +394,14 @@ defaultValues Default values + + customFormField.defaultValues + Advanced field configuration + + + nodeTypeField.defaultValues + Advanced field configuration + enter_values_comma_separated Enter each values separated with commas. diff --git a/lib/Rozier/src/Resources/translations/messages.fr.xlf b/lib/Rozier/src/Resources/translations/messages.fr.xlf index 4e969475..d72d87d0 100644 --- a/lib/Rozier/src/Resources/translations/messages.fr.xlf +++ b/lib/Rozier/src/Resources/translations/messages.fr.xlf @@ -393,6 +393,13 @@ defaultValues Valeur(s) par défaut + + customFormField.defaultValues + Configuration avancée + + + nodeTypeField.defaultValues + Configuration avancée enter_values_comma_separated diff --git a/lib/Rozier/src/Resources/translations/messages.xlf b/lib/Rozier/src/Resources/translations/messages.xlf index 2f4ce0c4..3a606174 100644 --- a/lib/Rozier/src/Resources/translations/messages.xlf +++ b/lib/Rozier/src/Resources/translations/messages.xlf @@ -100,6 +100,8 @@ type indexed defaultValues + customFormField.defaultValues + nodeTypeField.defaultValues enter_values_comma_separated node.%name%.translated node_source.%node_source%.updated.%translation%