Final fixes / German translation for user-groups-listing

This commit is contained in:
Manfred Hoffmann 2020-04-05 23:55:25 +02:00 committed by GitHub
parent 490bcd17d8
commit a648a579cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -131,7 +131,7 @@ class UserHelper extends Base
'limited_list' => $limitedList,
'has_groups' => $total > 0,
'total' => $total,
'not_shown' => $total - count($limitedList),
'shown' => count($limitedList),
];
}

View File

@ -1418,7 +1418,7 @@ return array(
'Enable global tags for this project' => 'Globale Schlagworte für dieses Projekt aktivieren',
'Group membership(s):' => 'Gruppen-Mitgliedschaft(en):',
'%s is a member of the following group(s): %s' => '%s ist Mitglied in der/den folgenden Gruppe(n): %s',
// '%d/%d group(s) shown' => '',
'%d/%d group(s) shown' => '%d/%d Gruppe(n) angezeigt',
'Group membership(s):' => 'Gruppen Mitgliedschaft(en)',
'Subtask creation or modification' => 'Teilaufgabe erstellen oder ändern',
);

View File

@ -17,8 +17,8 @@
<?php if ($users_groups['has_groups']): ?>
<span title="<?= $groups_list_tooltip ?>">
<i class="fa fa-fw fa-group" aria-hidden="true"></i><?= $this->text->implode(', ', $users_groups['limited_list']) ?>
<?php if ($users_groups['not_shown'] > 0): ?>
&nbsp;<?= t('%d/%d group(s) shown', $users_groups['not_shown'], $users_groups['total']) ?>
<?php if ($users_groups['shown'] != $users_groups['total']): ?>
&nbsp;<?= t('%d/%d group(s) shown', $users_groups['shown'], $users_groups['total']) ?>
<?php endif ?>
</span>
<?php endif ?>

View File

@ -14,7 +14,7 @@
</div>
<ul class="panel">
<li><?= t('Role:') ?> <strong><?= $this->user->getRoleName($user['role']) ?></strong></li>
<li><?= t('Group membership(s):') ?> <strong><?= $this->user->getUsersGroupNames($user['id'])['full_list'] ?></strong></li>
<li><?= t('Group membership(s):') ?> <strong><?= implode(', ', $this->user->getUsersGroupNames($user['id'])['full_list']) ?></strong></li>
<li><?= t('Account type:') ?> <strong><?= $user['is_ldap_user'] ? t('Remote') : t('Local') ?></strong></li>
<li><?= $user['twofactor_activated'] == 1 ? t('Two factor authentication enabled') : t('Two factor authentication disabled') ?></li>
<li><?= t('Number of failed login:') ?> <strong><?= $user['nb_failed_login'] ?></strong></li>