public static function load($pluginPath, $domain = "") { if (!function_exists("bindtextdomain") or strpos($_SERVER["SERVER_SOFTWARE"], "BitWebServer") !== false) { return; } self::$domainPaths[$domain] = $pluginPath . "/locale"; if (!self::$localeSet) { setlocale(LC_MESSAGES, Session::getLanguage() . ".UTF-8"); self::$localeSet = true; } self::D($domain); bindtextdomain("messages{$domain}", self::$domainPaths[$domain]); bind_textdomain_codeset("messages{$domain}", "UTF-8"); }