diff -r 8a00247d1dee -r 2b283402e4e4 includes/template.php --- a/includes/template.php Sun Oct 28 14:32:13 2007 -0400 +++ b/includes/template.php Sun Oct 28 16:40:24 2007 -0400 @@ -135,6 +135,7 @@ { global $db, $session, $paths, $template, $plugins; // Common objects global $email; + global $lang; dc_here("template: initializing all variables"); @@ -632,6 +633,10 @@ // Add the e-mail address client code to the header $this->add_header($email->jscode()); + // Add language file + $lang_uri = makeUrlNS('Special', 'LangExportJSON/' . $lang->lang_id, false, true); + $this->add_header(""); + // Generate the code for the Log out and Change theme sidebar buttons // Once again, the new template parsing system can be used here @@ -710,7 +715,8 @@ } } $js_dynamic .= '\'; - var ENANO_CURRENT_THEME = \''. $session->theme .'\';'; + var ENANO_CURRENT_THEME = \''. $session->theme .'\'; + var ENANO_LANG_ID = ' . $lang->lang_id . ';'; foreach($paths->nslist as $k => $c) { $js_dynamic .= "namespace_list['{$k}'] = '$c';";