From f5d19d99d4dcbd47dec42c93d323b37051692858 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 21 Aug 2014 14:24:30 +0100 Subject: [PATCH] Get the ice-coder lang array into a JS array So the /lib/ice-coder.js file can make use of it --- index.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/index.php b/index.php index a6ab92f..7b71113 100644 --- a/index.php +++ b/index.php @@ -53,6 +53,21 @@ window.onbeforeunload = function() { } } } + +t = { + $value) { + $tOutput .= '"'.$key.'" : "'.$value.'",'.PHP_EOL; +} +echo rtrim($tOutput,",".PHP_EOL).PHP_EOL; + +// Back to the lang array for index +$t = $text['index']; +?> +}