From 41e068fcc77fd57de7aa1249f1da126deb5e325d Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 2 Jan 2025 11:03:04 +0100 Subject: [PATCH] make user roles translatable --- application/controllers/Club.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/application/controllers/Club.php b/application/controllers/Club.php index 225570508..99a27960a 100644 --- a/application/controllers/Club.php +++ b/application/controllers/Club.php @@ -8,16 +8,22 @@ class Club extends CI_Controller * 3 - Member * * These permission levels are independent of the codeigniter permission levels and managed in the club_permissions table! - * // TODO: Add a Wiki Link to the Permission Levels and Explainations about the Club Features + * https://github.com/wavelog/wavelog/wiki/Clubstations */ /** * @var array $permissions */ - private $permissions = [ - 9 => "Club Officer", - 3 => "Club Member", - ]; + private $permissions; + + function __construct() { + parent::__construct(); + + $this->permissions = [ + 9 => __("Club Officer"), + 3 => __("Club Member"), + ]; + } public function index() {