diff --git a/Js/Main.js b/Js/Main.js index ccf8202..9c491ee 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -142,7 +142,7 @@ function buildQuestSelectList() { let tl_key = utage.questTranslations[cust][q.QuestMstId]; if (!tl_key) { console.log("Failed to build quest list: missing translations"); - return; + continue; } if (!tl_key.Enabled && !utage.quests[cust][q.QuestMstId].Scenes.some((s) => { return utage.sceneTranslations[cust][s].Enabled === true })) { continue; @@ -191,7 +191,7 @@ function buildSceneSelectList() { let tl_key = utage.sceneTranslations[cust][questSceneMstId]; if (!tl_key) { console.log("Failed to build scene list: missing translations"); - return; + continue; } if (!tl_key.Enabled) { continue; diff --git a/Js/Translations b/Js/Translations index 178ec9b..bb6b874 160000 --- a/Js/Translations +++ b/Js/Translations @@ -1 +1 @@ -Subproject commit 178ec9be36f504418d6aae0bb099d5006bd4186a +Subproject commit bb6b8748a985ea6662300faaba12dcac2c8e0a45 diff --git a/Js/UtageParse.js b/Js/UtageParse.js index 3efa61e..a33cde2 100644 --- a/Js/UtageParse.js +++ b/Js/UtageParse.js @@ -141,7 +141,12 @@ class UtageInfo { for (const k of Object.keys(this.questTranslationsInner[this.currentTranslation][c])) { if (this.questTranslationsInner[this.currentTranslation][c][k].Enabled) { for (const s of this.quests[c][k].Scenes) { - this.sceneTranslationsInner[this.currentTranslation][c][s].Enabled = true; + // only propagate if exists in translation file (THANKS GLOBAL) and translated name is supplied + if (c in this.sceneTranslationsInner[this.currentTranslation] + && s in this.sceneTranslationsInner[this.currentTranslation][c] + && this.sceneTranslationsInner[this.currentTranslation][c][s].Name != "") { + this.sceneTranslationsInner[this.currentTranslation][c][s].Enabled = true; + } } } }