aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-11-25 07:04:02 +0000
committerThomas Hackl <hackl@data-quest.de>2024-11-25 07:04:02 +0000
commit4b946d95b8a1a84614e52168ea73f20dc0f57623 (patch)
tree3358bd1c6ad8f7a02adffe9a43b017d58b3247dd /templates
parent687255810bb918b82d3c048fc068d8972cfce5ac (diff)
Resolve "Umbau der Verwaltung von Anmeldesets auf Vue.js"
Closes #3270 Merge request studip/studip!2413
Diffstat (limited to 'templates')
-rw-r--r--templates/userfilter/display.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/userfilter/display.php b/templates/userfilter/display.php
index 57fdfe6..189f6cd 100644
--- a/templates/userfilter/display.php
+++ b/templates/userfilter/display.php
@@ -14,9 +14,10 @@ foreach ($filter->getFields() as $field) {
}
if ($filter->show_user_count) {
$user_count = count($filter->getUsers());
- $fieldText .= ' ('.sprintf(_('%s Personen'), $user_count);
- if (!$user_count) {
- $fieldText .= Icon::create('exclaim-circle', 'attention', ['title' => _("Niemand erfüllt diese Bedingung.")])->asImg();
+ $fieldText .= ' (' . sprintf(ngettext('Eine Person', '%s Personen', $user_count), $user_count);
+ if ($user_count === 0) {
+ $fieldText .= '&nbsp;' . Icon::create('exclaim-circle', Icon::ROLE_ATTENTION)
+ ->asImg(['title' => _('Niemand erfüllt diese Bedingung.')]);
}
$fieldText .= ')';
}