From 7218f84ad58ed22a926b3ffa7a152ca7f93f0204 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 16 Mar 2018 15:11:58 +0000 Subject: [PATCH] Localized top manager role name in list of active users. --- WEB-INF/lib/ttTeamHelper.class.php | 4 ++++ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 1cf0d270..4e39628a 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -71,6 +71,7 @@ class ttTeamHelper { // The getActiveUsers obtains all active users in a given team. static function getActiveUsers($options = null) { global $user; + global $i18n; $mdb2 = getConnection(); if (isset($options['getAllFields'])) @@ -82,6 +83,9 @@ class ttTeamHelper { if (is_a($res, 'PEAR_Error')) return false; while ($val = $res->fetchRow()) { + // Localize top manager role name, as it is not localized in db. + if ($val['rank'] == 512) + $val['role_name'] = $i18n->getKey('role.top_manager.label'); $user_list[] = $val; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index a1a57597..98c18e5e 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.47.4084 | Copyright © Anuko | +  Anuko Time Tracker 1.17.47.4085 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1