def set_localized(self, langcode, langname, langsubname): if langcode == "deDE": self.de_name = langname self.de_subname = langsubname elif langcode == "esES": self.es_name = langname self.es_subname = langsubname elif langcode == "ruRU": self.ru_name = langname self.ru_subname = langsubname elif langcode == "frFR": self.fr_name = langname self.fr_subname = langsubname else: frostlib.dout("Undefined Language Code: " + str(langcode))
def set_lang(self, script_lang, script_text): if script_lang == "deDE": self.de_text = script_text elif script_lang == "esES": self.es_text = script_text elif script_lang == "frFR": self.fr_text = script_text elif script_lang == "ruRU": self.ru_text = script_text else: frostlib.dout("Undefined Language Code: " + str(script_lang))
def set_localized(self, langcode, langname, langdesc): if langcode == "deDE": self.de_name = langname self.de_description = langdesc elif langcode == "esES": self.es_name = langname self.es_description = langdesc elif langcode == "ruRU": self.ru_name = langname self.ru_description = langdesc elif langcode == "frFR": self.fr_name = langname self.fr_description = langdesc else: frostlib.dout("Undefined Language Code: " + str(langcode))
* * NON PUBLIC VER */ """ import frostlib from time import sleep import warnings warnings.filterwarnings("ignore") frostlib.config.loadlogonconf() frostlib.nout("__________ _____ _________ ") frostlib.nout("___ ____/______________ __________ /___ ____/______ _____________ ") frostlib.nout("__ /_ __ ___/_ __ \__ ___/_ __/_ / _ __ \__ ___/_ _ \\") frostlib.nout("_ __/ _ / / /_/ /_(__ ) / /_ / /___ / /_/ /_ / / __/") frostlib.nout("/_/ /_/ \____/ /____/ \__/ \____/ \____/ /_/ \___/ ") frostlib.dout("FrostCore Revision: " + str(frostlib.RELEASE_TYPE) + "-" + str(frostlib.REVISION)) frostlib.dout("Checking FrostLIB Hash...") frostlib_hash = frostlib.hash.GetHashofDirs("frostlib", 1) frostlib.dout("FrostLIB Hash: " + str(frostlib_hash)) if frostlib_hash != frostlib.HASH: frostlib.nout("False FrostLIB HASH") frostlib.shutdown() frostlib.dout("FrostCore Logon is starting...") # twisted Imports from twisted.internet.protocol import Protocol, Factory from twisted.internet import reactor, threads, defer active_connections = 0 class LogonProtocol(Protocol):