From 7762c0eb2bdbe72b081cf6eb0d3e0ade7f25689c Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Oct 2018 16:25:10 +0200 Subject: [PATCH] Translatable user groups & cutoff fix Closes #318 (Typo: "irt Manager" instead of "Shirt Manager") --- includes/view/User_view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 3d5cfd69..e092855a 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -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', [