diff --git a/src/js/states/mods.js b/src/js/states/mods.js index 0a264222..e4e5a1fe 100644 --- a/src/js/states/mods.js +++ b/src/js/states/mods.js @@ -30,17 +30,17 @@ export class ModsState extends TextualGameState { return ` - ${T.mods.dev_hint.replace( - "", - `${T.mods.modding_docs}` + ${T.mods.devHint.replace( + "", + `${T.mods.moddingDocs}` )} - ${T.mods.installed_mods} + ${T.mods.installedMods}
- ${T.mods.mods_browser} + ${T.mods.modsBrowser}
`; } @@ -65,7 +65,7 @@ export class ModsState extends TextualGameState { const mods = this.app.modManager.getMods(); if (mods.length === 0) { - this.installedModsElement.innerHTML = T.mods.no_mods_found; + this.installedModsElement.innerHTML = T.mods.noModsFound; return; } @@ -78,7 +78,7 @@ export class ModsState extends TextualGameState { const uninstallButton = document.createElement("button"); uninstallButton.classList.add("styledButton", "uninstallMod"); - uninstallButton.innerText = T.mods.uninstall_mod; + uninstallButton.innerText = T.mods.uninstallMod; elem.appendChild(uninstallButton); this.trackClicks(uninstallButton, () => this.uninstallMod(mod)); } @@ -97,7 +97,7 @@ export class ModsState extends TextualGameState { .then(mods => this.rerenderModsGallery(mods)) .catch(err => { globalWarn(this, "Failed to fetch mod gallery:", err); - this.modGalleryElement.innerHTML = T.mods.mod_gallery_fail + " " + err; + this.modGalleryElement.innerHTML = T.mods.modGalleryFail + " " + err; }); } @@ -138,7 +138,7 @@ export class ModsState extends TextualGameState { if (mod.is_game_changing) { const hint = document.createElement("span"); hint.classList.add("gameChangingHint"); - hint.innerText = T.mods.gamechanging_hint; + hint.innerText = T.mods.gamechangingHint; elem.appendChild(hint); } @@ -154,7 +154,7 @@ export class ModsState extends TextualGameState { removeAllChildren(this.modGalleryElement); if (mods.length === 0) { - this.modGalleryElement.innerHTML = T.mods.no_mods_found; + this.modGalleryElement.innerHTML = T.mods.noModsFound; return; } @@ -167,19 +167,19 @@ export class ModsState extends TextualGameState { const installCount = document.createElement("span"); installCount.classList.add("installCount"); - installCount.innerText = T.mods.install_count.replace("", "" + mod.install_count); + installCount.innerText = T.mods.installCount.replace("", "" + mod.install_count); elem.appendChild(installCount); if (this.app.modManager.getModByName(mod.name)) { const installedText = document.createElement("span"); - installedText.innerText = T.mods.mod_installed; + installedText.innerText = T.mods.modInstalled; installedText.classList.add("installedText"); elem.appendChild(installedText); elem.classList.add("installed"); } else { const installButton = document.createElement("button"); installButton.classList.add("styledButton", "installMod"); - installButton.innerText = T.mods.install_mod; + installButton.innerText = T.mods.installMod; elem.appendChild(installButton); this.trackClicks(installButton, () => this.tryInstallMod(mod)); } @@ -198,8 +198,8 @@ export class ModsState extends TextualGameState { closeLoading(); const { restart } = this.dialogs.showInfo( - T.mods.mod_uninstalled_dialog.title, - T.mods.mod_uninstalled_dialog.desc, + T.mods.modUninstalledDialog.title, + T.mods.modUninstalledDialog.desc, this.app.platformWrapper.getSupportsRestart() ? ["ok:good", "restart:misc"] : ["ok:good"] ); if (restart) { @@ -222,15 +222,15 @@ export class ModsState extends TextualGameState { */ tryInstallMod(mod) { const { install } = this.dialogs.showWarning( - T.mods.mod_warning.title, + T.mods.modWarning.title, ` - ${T.mods.mod_warning.desc} + ${T.mods.modWarning.desc} `, // @ts-ignore @@ -268,8 +268,8 @@ export class ModsState extends TextualGameState { closeLoading(); const { restart } = this.dialogs.showInfo( - T.mods.mod_installed_dialog.title, - T.mods.mod_installed_dialog.desc, + T.mods.modInstalledDialog.title, + T.mods.modInstalledDialog.desc, this.app.platformWrapper.getSupportsRestart() ? ["ok:good", "restart:misc"] : ["ok:good"] diff --git a/translations/base-en.yaml b/translations/base-en.yaml index 11a95b16..ad84afcc 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -59,41 +59,41 @@ mods: title: Mods # Links to developer information - dev_hint: Interested in creating mods? Check out ! - modding_docs: Mod Documentation + devHint: Interested in creating mods? Check out ! + moddingDocs: Mod Documentation - installed_mods: Installed Mods - install_count: mods installed - mods_browser: Popular Mods + installedMods: Installed Mods + installCount: mods installed + modsBrowser: Popular Mods website: Visit Website - no_mods_found: No mods found - mod_gallery_fail: >- + noModsFound: No mods found + modGalleryFail: >- Failed to fetch mod gallery: - install_mod: Install - uninstall_mod: Remove - mod_installed: Installed + installMod: Install + uninstallMod: Remove + modInstalled: Installed - gamechanging_hint: This mod is gamechanging and thus cannot be removed once added to a game save! + gamechangingHint: This mod is gamechanging and thus cannot be removed once added to a game save! - mod_warning: + modWarning: title: Modded Warning desc: >- Please note the following when installing mods: - point_0: Mods are not created by the developer. - point_1: They may crash and corrupt your games. - point_2: Mods are not created by the developer, and the developer (tobspr) is not responsible for any damage caused by mods. - point_3: Mods have full access to the game, including other game save files. + point0: Mods are not created by the developer. + point1: They may crash and corrupt your games. + point2: Mods are not created by the developer, and the developer (tobspr) is not responsible for any damage caused by mods. + point3: Mods have full access to the game, including other game save files. - disclaimer_gamechanging: Gamechanging mods cannot be removed once added to a game save. + disclaimerGamechanging: Gamechanging mods cannot be removed once added to a game save. - mod_installed_dialog: + modInstalledDialog: title: Mod Installed desc: The mod has succssfully been installed and will be loaded after a restart. - mod_uninstalled_dialog: + modUninstalledDialog: title: Mod Removed desc: The mod has successfully beeen removed and will get unloaded after a restart.