Files
Bubberstation/code/controllers/subsystem/language.dm
SkyratBot ae36263265 [MIRROR] Bilingual can now choose their language [MDB IGNORE] (#22296)
* Bilingual can now choose their language

* Fix a merge error, removes a skyrat edit in favor of modular override

* uh what

* Moves the setup of GLOB.all_languages back into the subsystem + makes it load before SSAssets

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Giz <vinylspiders@gmail.com>
2023-07-13 14:26:00 -04:00

17 lines
488 B
Plaintext

SUBSYSTEM_DEF(language)
name = "Language"
init_order = INIT_ORDER_LANGUAGE
flags = SS_NO_FIRE
/datum/controller/subsystem/language/Initialize()
for(var/datum/language/language as anything in subtypesof(/datum/language))
if(!initial(language.key))
continue
GLOB.all_languages += language
GLOB.language_types_by_name[initial(language.name)] = language
var/datum/language/instance = new language
GLOB.language_datum_instances[language] = instance
return SS_INIT_SUCCESS