/** * For internal use only. */ public static function load($lang_code = null) { global $translations; global $custom_translations; self::$lang_code = $lang_code; if ($lang_code === null) { $lang_code = self::get_lang_code(); } if (!$lang_code) { return; } $translations = array(); $custom_translations = array(); $file = DATA_DIR . '/Base_Lang/base/' . $lang_code . '.php'; if (file_exists($file)) { include $file; } if (!is_array($translations)) { $translations = array(); } $file = DATA_DIR . '/Base_Lang/custom/' . $lang_code . '.php'; if (file_exists($file)) { include $file; } if (!is_array($custom_translations)) { $custom_translations = array(); } self::$loaded = true; eval_js_once('Epesi.default_indicator="' . __('Loading...') . '";'); }