From 7dd54648b9d13373e320f870bbf0136e4f58fab5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Aug 2011 20:22:09 +0000 Subject: [PATCH] merging all translations in window.egw_lang, to not have to search n-arrays --- phpgwapi/lang.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/lang.php b/phpgwapi/lang.php index 805bf9aa76..9ac3424ce7 100644 --- a/phpgwapi/lang.php +++ b/phpgwapi/lang.php @@ -46,8 +46,8 @@ if (!count(translation::$lang_arr)) echo ' -if (typeof egw_lang == "undefined") egw_lang = {}; -egw_lang.'.$_GET['app'].' = '.json_encode(translation::$lang_arr); +if (typeof window.egw_lang == "undefined") window.egw_lang = {}; +$j.extend(window.egw_lang, '.json_encode(translation::$lang_arr).');'; // Content-Lenght header is important, otherwise browsers dont cache! Header('Content-Length: '.ob_get_length()); \ No newline at end of file