merging all translations in window.egw_lang, to not have to search n-arrays

This commit is contained in:
Ralf Becker 2011-08-21 20:22:09 +00:00
parent 0aa128b53e
commit 7dd54648b9

View File

@ -46,8 +46,8 @@ if (!count(translation::$lang_arr))
echo ' echo '
if (typeof egw_lang == "undefined") egw_lang = {}; if (typeof window.egw_lang == "undefined") window.egw_lang = {};
egw_lang.'.$_GET['app'].' = '.json_encode(translation::$lang_arr); $j.extend(window.egw_lang, '.json_encode(translation::$lang_arr).');';
// Content-Lenght header is important, otherwise browsers dont cache! // Content-Lenght header is important, otherwise browsers dont cache!
Header('Content-Length: '.ob_get_length()); Header('Content-Length: '.ob_get_length());