mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
merging all translations in window.egw_lang, to not have to search n-arrays
This commit is contained in:
parent
0aa128b53e
commit
7dd54648b9
@ -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());
|
Loading…
Reference in New Issue
Block a user