Skip to content

Commit

Permalink
Clean translations
Browse files Browse the repository at this point in the history
We're supposed to used the BlockBundle ones
  • Loading branch information
VincentLanglet committed Sep 28, 2022
1 parent 9642ae2 commit 8691fc8
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 416 deletions.
6 changes: 6 additions & 0 deletions src/Block/ChildrenPagesBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,28 @@ public function configureEditForm(FormMapper $form, BlockInterface $block): void
['title', TextType::class, [
'required' => false,
'label' => 'form.label_title',
'translation_domain' => 'SonataPageBundle',
]],
['translation_domain', TextType::class, [
'label' => 'form.label_translation_domain',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['icon', TextType::class, [
'label' => 'form.label_icon',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['current', CheckboxType::class, [
'required' => false,
'label' => 'form.label_current',
'translation_domain' => 'SonataPageBundle',
]],
$this->getPageSelectorBuilder($form, $block),
['class', TextType::class, [
'required' => false,
'label' => 'form.label_class',
'translation_domain' => 'SonataPageBundle',
]],
],
'translation_domain' => 'SonataPageBundle',
Expand Down Expand Up @@ -190,6 +195,7 @@ private function getPageSelectorBuilder(AdminFormMapper $form, PageBlockInterfac
'site' => null !== $page ? $page->getSite() : null,
'required' => false,
'label' => 'form.label_page',
'translation_domain' => 'SonataPageBundle',
]);
$formBuilder->addModelTransformer(new CallbackTransformer(
static fn (?PageInterface $value): ?PageInterface => $value,
Expand Down
4 changes: 4 additions & 0 deletions src/Block/ContainerBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,20 @@ public function configureEditForm(FormMapper $form, BlockInterface $block): void
['code', TextType::class, [
'required' => false,
'label' => 'form.label_code',
'translation_domain' => 'SonataPageBundle',
]],
['layout', TextareaType::class, [
'label' => 'form.label_layout',
'translation_domain' => 'SonataPageBundle',
]],
['class', TextType::class, [
'required' => false,
'label' => 'form.label_class',
'translation_domain' => 'SonataPageBundle',
]],
['template', ContainerTemplateType::class, [
'label' => 'form.label_template_code',
'translation_domain' => 'SonataPageBundle',
]],
],
'translation_domain' => 'SonataPageBundle',
Expand Down
5 changes: 5 additions & 0 deletions src/Block/PageListBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,27 @@ public function configureEditForm(FormMapper $form, BlockInterface $block): void
'keys' => [
['title', TextType::class, [
'label' => 'form.label_title',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['translation_domain', TextType::class, [
'label' => 'form.label_translation_domain',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['icon', TextType::class, [
'label' => 'form.label_icon',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['class', TextType::class, [
'label' => 'form.label_class',
'translation_domain' => 'SonataPageBundle',
'required' => false,
]],
['mode', ChoiceType::class, [
'label' => 'form.label_mode',
'translation_domain' => 'SonataPageBundle',
'choices' => [
'public' => 'form.choice_public',
'admin' => 'form.choice_admin',
Expand Down
1 change: 1 addition & 0 deletions src/Block/SharedBlockBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private function getBlockBuilder(AdminFormMapper $form): FormBuilderInterface
'class' => $this->sharedBlockAdmin->getClass(),
'model_manager' => $this->sharedBlockAdmin->getModelManager(),
'label' => 'form.label_block',
'translation_domain' => 'SonataPageBundle',
]);
$formBuilder->addModelTransformer(new CallbackTransformer(
static fn (?PageBlockInterface $value): ?PageBlockInterface => $value,
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.bg.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -847,38 +847,6 @@
<source>form.label_text</source>
<target>form.label_text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>form.label_menu_name</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>form.label_safe_labels</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>form.label_current_class</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>form.label_first_class</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>form.label_last_class</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>form.label_menu_class</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>form.label_children_class</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>form.label_menu_template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>pages.label_no_sites</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.de.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -850,38 +850,6 @@
<source>form.label_text</source>
<target>Text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>Menu</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>Sichere Label Texte</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>Aktuelle CSS Klasse</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>Erste CSS Klasse</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>Letzte CSS Klasse</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>Menü CSS Klasse</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>Submenü CSS Klasse</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>Menü Template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>Keine Seiten konfiguriert</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -855,38 +855,6 @@
<source>form.label_text</source>
<target>Text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>Menu</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>Safe labels</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>Current CSS class</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>First CSS class</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>Last CSS class</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>Menu CSS class</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>Children CSS class</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>Menu template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>No sites configured</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.es.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -847,38 +847,6 @@
<source>form.label_text</source>
<target>form.label_text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>form.label_menu_name</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>form.label_safe_labels</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>form.label_current_class</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>form.label_first_class</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>form.label_last_class</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>form.label_menu_class</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>form.label_children_class</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>form.label_menu_template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>pages.label_no_sites</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.fr.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -856,38 +856,6 @@
<source>form.label_text</source>
<target>Text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>Nom du menu</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>Labels</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>Class CSS élément séléctionné</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>Class CSS premier élément</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>Class CSS dernier élément</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>Class CSS Menu</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>Class CSS enfant</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>Modèle de page</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>pages.label_no_sites</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.hu.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -850,38 +850,6 @@
<source>form.label_text</source>
<target>form.label_text</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>form.label_menu_name</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>form.label_safe_labels</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>form.label_current_class</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>form.label_first_class</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>form.label_last_class</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>form.label_menu_class</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>form.label_children_class</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>form.label_menu_template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>pages.label_no_sites</target>
Expand Down
32 changes: 0 additions & 32 deletions src/Resources/translations/SonataPageBundle.it.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -856,38 +856,6 @@
<source>form.label_text</source>
<target>Testo</target>
</trans-unit>
<trans-unit id="form.label_menu_name">
<source>form.label_menu_name</source>
<target>Menu</target>
</trans-unit>
<trans-unit id="form.label_safe_labels">
<source>form.label_safe_labels</source>
<target>Etichette sicure</target>
</trans-unit>
<trans-unit id="form.label_current_class">
<source>form.label_current_class</source>
<target>Classe CSS corrente</target>
</trans-unit>
<trans-unit id="form.label_first_class">
<source>form.label_first_class</source>
<target>Classe CSS primo</target>
</trans-unit>
<trans-unit id="form.label_last_class">
<source>form.label_last_class</source>
<target>Classe CSS ultimo</target>
</trans-unit>
<trans-unit id="form.label_menu_class">
<source>form.label_menu_class</source>
<target>Classe CSS menu</target>
</trans-unit>
<trans-unit id="form.label_children_class">
<source>form.label_children_class</source>
<target>Classe CSS figli</target>
</trans-unit>
<trans-unit id="form.label_menu_template">
<source>form.label_menu_template</source>
<target>Menu template</target>
</trans-unit>
<trans-unit id="pages.label_no_sites">
<source>pages.label_no_sites</source>
<target>Nessun sito configurato</target>
Expand Down
Loading

0 comments on commit 8691fc8

Please sign in to comment.