From 5e55225d9f2c72ac4ef450778576ecb699351f15 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sat, 4 May 2013 02:53:37 +0000 Subject: [PATCH] Multilinguified (SVG excluded). --- app/traffic_graph/app_languages.php | 23 +++++++++++++++++++++++ app/traffic_graph/status_graph.php | 17 +++++++++++------ 2 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 app/traffic_graph/app_languages.php diff --git a/app/traffic_graph/app_languages.php b/app/traffic_graph/app_languages.php new file mode 100644 index 0000000000..e5678728b7 --- /dev/null +++ b/app/traffic_graph/app_languages.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/app/traffic_graph/status_graph.php b/app/traffic_graph/status_graph.php index bb4b496416..c1b880acd8 100644 --- a/app/traffic_graph/status_graph.php +++ b/app/traffic_graph/status_graph.php @@ -43,6 +43,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if ($_REQUEST['interface']) { $interface = $_REQUEST['interface']; } @@ -63,18 +69,17 @@ else { $height = "330"; //275 //330 //396 } -$pg_title = "Traffic Graph\n"; - require_once "includes/header.php"; +$page["title"] = $text['title-traffic_graph']; ?>
-

+

- Interface: + :
-Note: the Adobe SVG Viewer, Firefox 1.5 or later or other browser supporting SVG is required to view the graph. +

@@ -128,7 +133,7 @@ require_once "includes/header.php";
- Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin. +