improve translations for treating agent

This commit is contained in:
2022-08-11 17:33:58 +02:00
parent f7993eaf2b
commit b03950d0f7
5 changed files with 26 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ final class JobAggregator implements AggregatorInterface
*/
public function getTitle(): string
{
return 'Group by user job';
return 'Group by treating agent job';
}
/**

View File

@@ -64,7 +64,7 @@ final class ScopeAggregator implements AggregatorInterface
*/
public function getTitle(): string
{
return 'Group by user scope';
return 'Group by treating agent scope';
}
/**

View File

@@ -39,7 +39,7 @@ class JobFilter implements FilterInterface
public function buildForm(FormBuilderInterface $builder)
{
$builder->add('userjob', EntityType::class, [
$builder->add('job', EntityType::class, [
'class' => UserJob::class,
'choice_label' => function (UserJob $j) {
return $this->translatableStringHelper->localize(
@@ -55,13 +55,13 @@ class JobFilter implements FilterInterface
{
$userjobs = [];
foreach ($data['userjob'] as $j) {
foreach ($data['job'] as $j) {
$userjobs[] = $this->translatableStringHelper->localize(
$j->getLabel());
}
return ['Filtered by the following jobs: only %userjobs%', [
'%userjobs%' => implode(', ou ', $userjobs)
return ['Filtered by treating agent job: only %jobs%', [
'%jobs%' => implode(', ou ', $userjobs)
]];
}
@@ -75,7 +75,7 @@ class JobFilter implements FilterInterface
$qb->join('acpw.referrers', 'r');
$where = $qb->getDQLPart('where');
$clause = $qb->expr()->in('r.userJob', ':userjob');
$clause = $qb->expr()->in('r.userJob', ':job');
if ($where instanceof Andx) {
$where->add($clause);
@@ -84,7 +84,7 @@ class JobFilter implements FilterInterface
}
$qb->add('where', $where);
$qb->setParameter('userjob', $data['userjob']);
$qb->setParameter('job', $data['job']);
}
public function applyOn()
@@ -93,8 +93,8 @@ class JobFilter implements FilterInterface
}
public function getTitle()
public function getTitle(): string
{
return 'Filter by user job';
return 'Filter by treating agent job';
}
}

View File

@@ -59,8 +59,8 @@ class ScopeFilter implements FilterInterface
$s->getName());
}
return ['Filtered by the following scopes: only %scope%', [
'%scope%' => implode(', ou ', $scopes)
return ['Filtered by treating agent scope: only %scopes%', [
'%scopes%' => implode(', ou ', $scopes)
]];
}
@@ -94,6 +94,6 @@ class ScopeFilter implements FilterInterface
public function getTitle()
{
return 'Filter by scope';
return 'Filter by treating agent scope';
}
}