mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add missing translations
This commit is contained in:
parent
802ff20b5c
commit
0d365e16e5
@ -228,7 +228,7 @@ final class FilterOrderHelper
|
|||||||
foreach ($this->checkboxes as $name => ['choices' => $choices, 'trans' => $trans]) {
|
foreach ($this->checkboxes as $name => ['choices' => $choices, 'trans' => $trans]) {
|
||||||
$translatedChoice = array_combine($choices, [...$trans]);
|
$translatedChoice = array_combine($choices, [...$trans]);
|
||||||
foreach ($this->getCheckboxData($name) as $keyChoice) {
|
foreach ($this->getCheckboxData($name) as $keyChoice) {
|
||||||
$result[] = ['value' => $translatedChoice[$keyChoice], 'label' => '', 'position' => FilterOrderPositionEnum::Checkboxes->value, 'name' => $name];
|
$result[] = ['value' => $this->translator->trans($translatedChoice[$keyChoice]), 'label' => '', 'position' => FilterOrderPositionEnum::Checkboxes->value, 'name' => $name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ final class FilterOrderHelper
|
|||||||
$value = (string) $selected;
|
$value = (string) $selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result[] = ['value' => $value, 'label' => $label, 'position' => FilterOrderPositionEnum::EntityChoice->value, 'name' => $name];
|
$result[] = ['value' => $this->translator->trans($value), 'label' => $label, 'position' => FilterOrderPositionEnum::EntityChoice->value, 'name' => $name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user