Translatable user groups & cutoff fix

Closes #318 (Typo: "irt Manager" instead of "Shirt Manager")
This commit is contained in:
Igor Scheller 2018-10-24 16:25:10 +02:00 committed by msquare
parent 414a21b3c6
commit 7762c0eb2b
1 changed files with 2 additions and 1 deletions

View File

@ -799,7 +799,8 @@ function User_groups_render($user_groups)
{
$output = [];
foreach ($user_groups as $group) {
$output[] = substr($group['Name'], 2);
$groupName = preg_replace('/(^\d+-)/', '', $group['Name']);
$output[] = __($groupName);
}
return div('col-md-3', [