From fd35556e6872d961fe25552509b30e63f6705739 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 24 Mar 2016 17:27:16 +0000 Subject: [PATCH] i18n: Translate ticket sources --- include/class.ticket.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index b2a225194..13a0feb08 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -216,7 +216,13 @@ EOF; } static function getSources() { - return self::$sources; + static $translated = false; + if (!$translated) { + foreach (static::$sources as $k=>$v) + static::$sources[$k] = __($v); + } + + return static::$sources; } } -- GitLab