Skip to content

Commit

Permalink
fixed filter option count label
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed May 20, 2019
1 parent 8d6b576 commit 9a5191f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Choice/YearChoice.php
Expand Up @@ -154,7 +154,7 @@ protected function collect()
$years[$value] = $label.' ('.$entryCount[$value].')';
}
else {
$years[$value] = $this->container->get('translator')->trans($element->optionCountLabel, [
$years[$value] = $this->container->get('translator')->transChoice($element->optionCountLabel, $entryCount[$value], [
'%value%' => $value,
'%count%' => $entryCount[$value],
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_filter_config_element.php
Expand Up @@ -1037,7 +1037,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_filter_config_element']['optionCountLabel'],
'exclude' => true,
'inputType' => 'select',
'default' => 'huh.filter.option_count',
'default' => 'huh.filter.option_count.default',
'options_callback' => function (\Contao\DataContainer $dc) {
return \Contao\System::getContainer()->get('huh.utils.choice.message')->getCachedChoices('huh.filter.option_count');
},
Expand Down

0 comments on commit 9a5191f

Please sign in to comment.