mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* 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>
17 lines
488 B
Plaintext
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
|