mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
Revert some whitespace changes
This commit is contained in:
parent
6d0d5e1632
commit
db5e76880b
@ -147,12 +147,10 @@ class Settings{
|
||||
}
|
||||
setLang(lang, noEvent){
|
||||
strings = lang
|
||||
|
||||
var boldFonts = strings.font === "Microsoft YaHei, sans-serif"
|
||||
loader.screen.style.fontFamily = strings.font
|
||||
loader.screen.style.fontWeight = boldFonts ? "bold" : ""
|
||||
loader.screen.classList[boldFonts ? "add" : "remove"]("bold-fonts")
|
||||
|
||||
if(!noEvent){
|
||||
pageEvents.send("language-change", lang.id)
|
||||
}
|
||||
|
@ -1073,9 +1073,7 @@ var translations = {
|
||||
ko: "가사가있는"
|
||||
}
|
||||
}
|
||||
|
||||
var allStrings = {}
|
||||
|
||||
function separateStrings(){
|
||||
for(var j in languageList){
|
||||
var lang = languageList[j]
|
||||
@ -1083,9 +1081,8 @@ function separateStrings(){
|
||||
id: lang
|
||||
}
|
||||
var str = allStrings[lang]
|
||||
|
||||
var translateObj = function(obj, name, str){
|
||||
if(obj != null && "en" in obj && obj["en"] != null){
|
||||
if("en" in obj){
|
||||
for(var i in obj){
|
||||
str[name] = obj[lang] || obj.en
|
||||
}
|
||||
@ -1096,11 +1093,9 @@ function separateStrings(){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(var i in translations){
|
||||
translateObj(translations[i], i, str)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
separateStrings()
|
||||
|
@ -78,7 +78,6 @@ class Titlescreen{
|
||||
}
|
||||
setLang(lang, noEvent){
|
||||
settings.setLang(lang, true)
|
||||
|
||||
if(this.songId){
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user