Skip to content

Commit

Permalink
fix: Renamed NodeTypeField and CustomFormField defaultValues field label
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Aug 29, 2023
1 parent 48d06ce commit 957024b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Rozier/src/Forms/CustomFormFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion lib/Rozier/src/Forms/NodeTypeFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
8 changes: 8 additions & 0 deletions lib/Rozier/src/Resources/translations/messages.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,14 @@
<source>defaultValues</source>
<target state="final">Default values</target>
</trans-unit>
<trans-unit xml:space="preserve" id="customFormField.defaultValues">
<source>customFormField.defaultValues</source>
<target state="final">Advanced field configuration</target>
</trans-unit>
<trans-unit xml:space="preserve" id="nodeTypeField.defaultValues">
<source>nodeTypeField.defaultValues</source>
<target state="final">Advanced field configuration</target>
</trans-unit>
<trans-unit xml:space="preserve" id="101" approved="yes">
<source>enter_values_comma_separated</source>
<target state="final">Enter each values separated with commas.</target>
Expand Down
7 changes: 7 additions & 0 deletions lib/Rozier/src/Resources/translations/messages.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,13 @@
<trans-unit xml:space="preserve" id="100" approved="yes">
<source>defaultValues</source>
<target state="final">Valeur(s) par défaut</target>
</trans-unit><trans-unit xml:space="preserve" id="customFormField.defaultValues">
<source>customFormField.defaultValues</source>
<target state="final">Configuration avancée</target>
</trans-unit>
<trans-unit xml:space="preserve" id="nodeTypeField.defaultValues">
<source>nodeTypeField.defaultValues</source>
<target state="final">Configuration avancée</target>
</trans-unit>
<trans-unit xml:space="preserve" id="101" approved="yes">
<source>enter_values_comma_separated</source>
Expand Down
2 changes: 2 additions & 0 deletions lib/Rozier/src/Resources/translations/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
<trans-unit xml:space="preserve" id="98"><source>type</source></trans-unit>
<trans-unit xml:space="preserve" id="99"><source>indexed</source></trans-unit>
<trans-unit xml:space="preserve" id="100"><source>defaultValues</source></trans-unit>
<trans-unit xml:space="preserve" id="customFormField.defaultValues"><source>customFormField.defaultValues</source></trans-unit>
<trans-unit xml:space="preserve" id="nodeTypeField.defaultValues"><source>nodeTypeField.defaultValues</source></trans-unit>
<trans-unit xml:space="preserve" id="101"><source>enter_values_comma_separated</source></trans-unit>
<trans-unit xml:space="preserve" id="102"><source>node.%name%.translated</source></trans-unit>
<trans-unit xml:space="preserve" id="103"><source>node_source.%node_source%.updated.%translation%</source></trans-unit>
Expand Down

0 comments on commit 957024b

Please sign in to comment.