From f5317e9444ce9f1966e7683e2f746b0007d59ae3 Mon Sep 17 00:00:00 2001 From: Kamesuta Date: Thu, 31 Aug 2023 03:45:21 +0900 Subject: [PATCH] i18n for settings.ejs --- app/assets/lang/en_US.json | 90 ++++++++++++++++++++ app/settings.ejs | 168 ++++++++++++++++++------------------- index.js | 10 ++- 3 files changed, 181 insertions(+), 87 deletions(-) diff --git a/app/assets/lang/en_US.json b/app/assets/lang/en_US.json index ef77e856..0145af64 100644 --- a/app/assets/lang/en_US.json +++ b/app/assets/lang/en_US.json @@ -68,6 +68,96 @@ "overlayDesc": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud..", "overlayAcknowledge": "Conare Iterum", "overlayDismiss": "Dismiss" + }, + "settings": { + "navHeaderText": "Settings", + "navAccount": "Account", + "navMinecraft": "Minecraft", + "navMods": "Mods", + "navJava": "Java", + "navLauncher": "Launcher", + "navAbout": "About", + "navUpdates": "Updates", + "navDone": "Done", + "tabAccountHeaderText": "Account Settings", + "tabAccountHeaderDesc": "Add new accounts or manage existing ones.", + "microsoftAccount": "Microsoft", + "addMicrosoftAccount": "+ Add Microsoft Account", + "mojangAccount": "Mojang", + "addMojangAccount": "+ Add Mojang Account", + "minecraftTabHeaderText": "Minecraft Settings", + "minecraftTabHeaderDesc": "Options related to game launch.", + "gameResolutionTitle": "Game Resolution", + "gameResolutionCross": "✖", + "launchFullscreenTitle": "Launch in fullscreen.", + "autoConnectTitle": "Automatically connect to the server on launch.", + "launchDetachedTitle": "Launch game process detached from launcher.", + "launchDetachedDesc": "If the game is not detached, closing the launcher will also close the game.", + "tabModsHeaderText": "Mod Settings", + "tabModsHeaderDesc": "Enable or disable mods.", + "switchServerButton": "Switch", + "requiredMods": "Required Mods", + "optionalMods": "Optional Mods", + "dropinMods": "Drop-in Mods", + "addMods": "Add Mods", + "dropinRefreshNote": "(F5 to Refresh)", + "shaderpacks": "Shaderpacks", + "shaderpackDesc": "Enable or disable shaders. Please note, shaders will only run smoothly on powerful setups. You may add custom packs here.", + "shaderpackButton": " + ", + "selectShaderpack": "Select Shaderpack", + "tabJavaHeaderText": "Java Settings", + "tabJavaHeaderDesc": "Manage the Java configuration (advanced).", + "memoryTitle": "Memory", + "maxRAM": "Maximum RAM", + "minRAM": "Minimum RAM", + "memoryDesc": "The recommended minimum RAM is 3 gigabytes. Setting the minimum and maximum values to the same value may reduce lag.", + "memoryTotalTitle": "Total", + "memoryTotalValue": "16G", + "memoryAvailableTitle": "Available", + "memoryAvailableValue": "7.3G", + "javaExecutableTitle": "Java Executable", + "javaExecDetails": "Selected: Java 8 Update 172 (x64)", + "javaExecVal": "null", + "javaExecSelDialogTitle": "Select Java Executable", + "javaExecSelButtonText": "Choose File", + "javaExecDesc": "The Java executable is validated before game launch.", + "javaReqDesc": "Requires Java 8 x64.", + "javaPathDesc": "The path should end with bin<%= process.platform === 'win32' ? '\\\\javaw.exe' : '/java' %>.", + "jvmOptsTitle": "Additional JVM Options", + "jvmOptsDesc": "Options to be provided to the JVM at runtime. -Xms and -Xmx should not be included.", + "jvmOptsLink": "https://docs.oracle.com/javase/8/docs/technotes/tools/<%= process.platform === 'win32' ? 'windows' : 'unix' %>/java.html", + "jvmOptsLinkText": "Available Options for Java 8.", + "launcherTabHeaderText": "Launcher Settings", + "launcherTabHeaderDesc": "Options related to the launcher itself.", + "allowPrereleaseTitle": "Allow Pre-Release Updates.", + "allowPrereleaseDesc": "Pre-Releases include new features which may have not been fully tested or integrated.
This will always be true if you are using a pre-release version.", + "dataDirectoryTitle": "Data Directory", + "selectDataDirectory": "Select Data Directory", + "chooseFolder": "Choose Folder", + "dataDirectoryDesc": "All game files and local Java installations will be stored in the data directory.
Screenshots and world saves are stored in the instance folder for the corresponding server configuration.", + "aboutTabHeaderText": "About", + "aboutTabHeaderDesc": "View information and release notes for the current version.", + "aboutTitle": "Helios Launcher", + "aboutCurrentVersionCheck": "Stable Release", + "versionCheck": "✓", + "stableRelease": "Stable Release", + "versionText": "Version ", + "versionValue": "0.0.1-alpha.18", + "sourceGithub": "Source (GitHub)", + "sourceGithubLink": "https://github.com/dscalZi/HeliosLauncher", + "support": "Support", + "supportLink": "https://github.com/dscalZi/HeliosLauncher/issues", + "devToolsConsole": "DevTools Console", + "releaseNotes": "Release Notes", + "changelog": "Changelog", + "noReleaseNotes": "No Release Notes", + "viewReleaseNotes": "View Release Notes on GitHub", + "launcherUpdatesHeaderText": "Launcher Updates", + "launcherUpdatesHeaderDesc": "Download, install, and review updates for the launcher.", + "latestVersion": "You Are Running the Latest Version", + "checkForUpdates": "Check for Updates", + "whatsNew": "What's New", + "updateReleaseNotes": "Update Release Notes" } }, "js": { diff --git a/app/settings.ejs b/app/settings.ejs index aa1fa764..a7446b98 100644 --- a/app/settings.ejs +++ b/app/settings.ejs @@ -2,21 +2,21 @@
- Settings + <%- lang('settings.navHeaderText') %>
- - - - - + + + + +
- - + +
- +
@@ -25,8 +25,8 @@
- Account Settings - Add new accounts or manage existing ones. + <%- lang('settings.tabAccountHeaderText') %> + <%- lang('settings.tabAccountHeaderDesc') %>
@@ -37,10 +37,10 @@ - Microsoft + <%- lang('settings.microsoftAccount') %>
- +
@@ -57,10 +57,10 @@ - Mojang + <%- lang('settings.mojangAccount') %>
- +
@@ -71,20 +71,20 @@