diff --git a/src/assets/translations/en-US.json b/src/assets/translations/en-US.json index 51bdaf55..af1035ec 100644 --- a/src/assets/translations/en-US.json +++ b/src/assets/translations/en-US.json @@ -39,6 +39,8 @@ "requirements_button_bypass_warning_1": "If you believe the requirement checks are false, you can bypass them.", "requirements_button_bypass_warning_2": "However, if you are wrong you should expect issues installing or running the game!", "gameControls_button_play": "Play", + "gameControls_button_features": "Features", + "gameControls_button_features_textures": "Texture Packs", "gameControls_button_advanced": "Advanced", "gameControls_button_playInDebug": "Play in Debug Mode", "gameControls_button_openREPL": "Open REPL", @@ -122,5 +124,14 @@ "splash_step_errorOpening": "Problem opening Launcher", "gameJob_deleteTexturePacks": "Deleting Packs", "gameJob_enablingTexturePacks": "Enabling Packs", - "gameJob_applyTexturePacks": "Applying Packs" + "gameJob_applyTexturePacks": "Applying Packs", + "features_textures_invalidPack": "Invalid texture pack format, ensure it contains a top-level `texture_replacements` folder.", + "features_textures_addNewPack": "Add New Pack", + "features_textures_applyChanges": "Apply Texture Changes", + "features_textures_listHeading": "Currently Added Packs", + "features_textures_description": "You can enable as many packs as you want, but if multiple packs replace the same file the order matters. For example if two packs replace the grass, the first pack in the list will take precedence.", + "features_textures_replacedCount": "Textures replaced", + "features_textures_enabled": "Enabled", + "features_textures_disabled": "Disabled", + "features_textures_conflictsDetected": "Conflicts Detected!" } diff --git a/src/components/games/GameControls.svelte b/src/components/games/GameControls.svelte index fc1f3554..ea62c80f 100644 --- a/src/components/games/GameControls.svelte +++ b/src/components/games/GameControls.svelte @@ -11,13 +11,12 @@ DropdownItem, DropdownDivider, Helper, - Chevron, } from "flowbite-svelte"; import { resetGameSettings, uninstallGame } from "$lib/rpc/game"; import { platform } from "@tauri-apps/api/os"; import { launchGame, openREPL } from "$lib/rpc/binaries"; import { _ } from "svelte-i18n"; - import { Link, navigate } from "svelte-navigator"; + import { navigate } from "svelte-navigator"; export let activeGame: SupportedGame; @@ -59,7 +58,7 @@ > {$_("gameControls_button_features")} - Texture Packs + {$_("gameControls_button_features_textures")} {#if pending_changes(availablePacks, availablePacksOriginal)} {$_("features_textures_applyChanges")} {/if} @@ -246,13 +246,11 @@ {/if}
-

Currently Added Packs

+

{$_("features_textures_listHeading")}

- You can enable as many packs as you want, but if multiple packs - replace the same file the order matters. For example if two packs - replace the grass, the first pack in the list will take precedence. + {$_("features_textures_description")}

{#each availablePacks as pack, packIndex} @@ -282,7 +280,9 @@ {extractedPackInfo[pack.name]["releaseDate"]}

- Textures replaced - {num_textures_in_pack(pack.name)} + {$_("features_textures_replacedCount")} - {num_textures_in_pack( + pack.name + )}

{extractedPackInfo[pack.name]["description"]} @@ -303,7 +303,9 @@ pack.enabled = !pack.enabled; }} > - {pack.enabled ? "Enabled" : "Disabled"} + {pack.enabled + ? $_("features_textures_enabled") + : $_("features_textures_disabled")}

@@ -373,7 +375,7 @@ clip-rule="evenodd" /> - Conflicts Detected! + {$_("features_textures_conflictsDetected")}