Make EN language load first (fixes file reset)
This commit is contained in:
parent
fa7a8b28dd
commit
4bf717237c
6
!lang.sk
6
!lang.sk
@ -10,14 +10,12 @@ on script load:
|
||||
loop {_languages::*}:
|
||||
set {languageslist::%loop-value%} to loop-value
|
||||
|
||||
load yaml "plugins/Skript/scripts/languages/LanguageEN.yml" as "langEN"
|
||||
loop {languageslist::*}:
|
||||
loop-value is not "EN"
|
||||
#load it in memory so we can always have it loaded
|
||||
load yaml "plugins/Skript/scripts/languages/Language%loop-value%.yml" as "lang%loop-value%"
|
||||
|
||||
#clear non-existent messages that have been removed from original EN file, but still exist in other languages
|
||||
|
||||
loop-value is not "EN":
|
||||
|
||||
loop yaml nodes from "lang%loop-value%":
|
||||
|
||||
yaml value loop-value-2 from "langEN" is not set:
|
||||
|
Loading…
Reference in New Issue
Block a user