add validation to aggregator and filters

This commit is contained in:
2017-03-07 16:03:49 +01:00
parent cc91ade6fe
commit 559239aca1
7 changed files with 55 additions and 6 deletions

View File

@@ -160,7 +160,7 @@ class CountryOfBirthAggregator implements AggregatorInterface
// initialize array and add blank key for null values
$labels[''] = $this->translator->trans('without data');
$labels['_header'] = $this->translator->trans('Nationality');
$labels['_header'] = $this->translator->trans('Country of birth');
foreach($countries as $row) {
$labels[$row['c_countryCode']] = $this->translatableStringHelper->localize($row['c_name']);
}
@@ -177,7 +177,7 @@ class CountryOfBirthAggregator implements AggregatorInterface
'NA' => $this->translator->trans('North America'),
'OC' => $this->translator->trans('Oceania'),
'' => $this->translator->trans('without data'),
'_header' => $this->translator->trans('Continent')
'_header' => $this->translator->trans('Continent of birth')
);
}