static function initAppGlobals() { global $current_language, $app_strings, $app_list_strings, $app_currency_strings; $app_currency_strings = return_app_currency_strings_language($current_language); $app_strings = return_application_language($current_language); $app_list_strings = return_app_list_strings_language($current_language); }
$log->debug('Current theme is: ' . $theme); //Used for current record focus $focus = ""; // if the language is not set yet, then set it to the default language. if (isset($_SESSION['authenticated_user_language']) && $_SESSION['authenticated_user_language'] != '') { $current_language = $_SESSION['authenticated_user_language']; } else { if (!empty($current_user->language)) { $current_language = $current_user->language; } else { $current_language = $default_language; } } $log->debug('current_language is: ' . $current_language); //set module and application string arrays based upon selected language $app_currency_strings = return_app_currency_strings_language($current_language); $app_strings = return_application_language($current_language); $app_list_strings = return_app_list_strings_language($current_language); $mod_strings = return_module_language($current_language, $currentModule); //If DetailView, set focus to record passed in if ($action == "DetailView") { if (!isset($_REQUEST['record'])) { die("A record number must be specified to view details."); } // If we are going to a detail form, load up the record now. // Use the record to track the viewing. // todo - Have a record of modules and thier primary object names. //Getting the actual module switch ($currentModule) { case 'Webmails': //No need to create a webmail object here