From 5a94de276934c514715241b181464f3811fa5fc3 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Fri, 21 Jun 2013 13:46:47 +0000 Subject: [PATCH] Multilinguified Active Queues --- app/fifo_list/app_languages.php | 28 ++++++++++++++++ app/fifo_list/fifo_interactive.php | 11 +++++-- app/fifo_list/fifo_interactive_inc.php | 44 ++++++++++---------------- app/fifo_list/fifo_list.php | 12 +++++-- app/fifo_list/fifo_list_inc.php | 20 ++++++++---- 5 files changed, 76 insertions(+), 39 deletions(-) create mode 100644 app/fifo_list/app_languages.php diff --git a/app/fifo_list/app_languages.php b/app/fifo_list/app_languages.php new file mode 100644 index 0000000000..f7f9ef83bf --- /dev/null +++ b/app/fifo_list/app_languages.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/app/fifo_list/fifo_interactive.php b/app/fifo_list/fifo_interactive.php index 52e13b942d..d23df3f592 100644 --- a/app/fifo_list/fifo_interactive.php +++ b/app/fifo_list/fifo_interactive.php @@ -34,6 +34,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //get the fifo_name from http and set it to a php variable $fifo_name = trim($_REQUEST["c"]); @@ -52,6 +58,7 @@ else { //show the header require_once "includes/header.php"; + $page["title"] = $text['title-queue']; ?>