From 89219bd6a673abf697ec8f1294367c282812d617 Mon Sep 17 00:00:00 2001 From: Jacky <49626969+jacquelynra@users.noreply.github.com> Date: Fri, 12 Jun 2020 18:26:44 -0300 Subject: [PATCH] Adding every HTML string to the en_US lang --- README.md | 10 ++++ app/app.ejs | 2 +- app/assets/lang/en_US.json | 97 +++++++++++++++++++++++++++++++++++++- app/landing.ejs | 2 +- app/settings.ejs | 78 +++++++++++++++--------------- app/welcome.ejs | 15 +++++- 6 files changed, 161 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 130176ed..dcfb6f3a 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,16 @@ We reserve the right to update these conditions at any time, please check back p --- +### Note on Translations + +You can translate this project to use your own language. You can do that, cloning the existing en_US.json to the name of the language you want to translate to. + +For changing the language in the project, you can change the line 17 on ./assets/js/preloader.js + +Changing the original ejs if there is a entry on the [language].json file would render that change useless. + +--- + ## Resources * [Wiki][wiki] diff --git a/app/app.ejs b/app/app.ejs index 4cdb091e..d8e49237 100644 --- a/app/app.ejs +++ b/app/app.ejs @@ -1,7 +1,7 @@ - Westeroscraft Launcher + Westeroscraft Launcher diff --git a/app/assets/lang/en_US.json b/app/assets/lang/en_US.json index 25b34c24..cf2b977b 100644 --- a/app/assets/lang/en_US.json +++ b/app/assets/lang/en_US.json @@ -1,6 +1,101 @@ { "html": { - "avatarOverlay": "Edit" + "comment1" : "========== [landing.ejs] ==========", + "updateAvailableTooltip": "Update Available", + "avatarOverlay": "Edit", + "settingsTooltip": "Settings", + "landingPlayerLabel": "SERVER", + "player_count": "OFFLINE", + "mojang_status": "MOJANG STATUS", + "mojangStatusTooltipTitle": "Services", + "mojangStatusNETitle": "Non Essential", + "newsButtonText": "NEWS", + "launch_button": "PLAY", + "server_selection_button": "• No Server Selected", + "launch_details_text": "Please wait..", + "nELoadSpan": "Checking for News..", + "nEFailedSpan": "Failed to Load News", + "newsErrorRetry": "Try Again", + "nENoneSpan": "No News", + + "comment2": "========== [app.ejs] ==========", + "exe_title": "Westeroscraft Launcher", + + "comment3": "========== [frame.ejs] ==========", + "frameTitleText": "Helios Launcher", + + "comment4": "========== [overlay.ejs] ==========", + "serverSelectHeader": "Available Servers", + "accountSelectHeader": "Select an Account", + + "comment5": "========== [settings.ejs] ==========", + "settingsNavHeaderText": "Settings", + "settingsNavAccount": "Account", + "minecraftNav": "Minecraft", + "modsNav": "Mods", + "javaNav": "Java", + "launcherNav": "Launcher", + "aboutNav": "About", + "settingsNavUpdate": "Updates", + "settingsNavDone": "Done", + "acctab_title": "Account Settings", + "acctab_sett": "Add new accounts or manage existing ones.", + "settingsAddAccountText": "+ Add Account", + "acctab_curr": "Current Accounts", + "mintab_title": "Minecraft Settings", + "mintab_desc": "Options related to game launch.", + "mintab_res": "Game Resolution", + "mintab_full": "Launch in fullscreen", + "mintab_auto": "Automatically connect to the server on launch.", + "mintab_detch": "Launch game process detached from launcher.", + "mintab_detchdesc": "If the game is not detached, closing the launcher will also close the game.", + "modtab_title": "Mod Settings", + "modtab_desc": "Enable or disable mods.", + "settingsSwitchServerButton": "Switch", + "modtab_requi": "Required Mods", + "modtab_optional": "Optional Mods", + "modtab_dropin": "Drop-in Mods", + "modtab_add": "+ Add Mods ", + "settingsDropinRefreshNote": "(F5 to Refresh)", + "modtab_shader": "Shaderpacks", + "settingsShaderpackDesc": "Enable or disable shaders. Please note, shaders will only run smoothly on powerful setups. You may add custom packs here.", + "settingsShadersSelected": "Select Shaderpack", + "javatab_title": "Java Settings", + "javatab_desc": "Manage the Java configuration (advanced).", + "settingsMemoryTitle": "Memory", + "javatab_ram": "Maximum RAM", + "javatab_min": "Minimum RAM", + "settingsMemoryDesc": "The recommended minimum RAM is 3 gigabytes. Setting the minimum and maximum values to the same value may reduce lag.", + "javatab_pctotal": "Total", + "javatab_pcavailable": "Available", + "javatab_exe": "Java Executable", + "settingsJavaExecSel": "Choose File", + "javatab_desc1": "The Java executable is validated before game launch. ", + "javatab_desc2": "Requires Java 8 x64.", + "javatab_desc3": "The path should end with ", + "settingsJVMOptsTitle": "Additional JVM Options", + "javatab_jvm1": "Options to be provided to the JVM at runtime. -Xms and -Xmx should not be included.
", + "javatab_jvm2": "Available Options for Java 8", + "launchtab_title": "Launcher Settings", + "launchtab_desc": "Options related to the launcher itself.", + "launchtab_update": "Allow Pre-Release Updates.", + "launchtab_updesc": "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.", + "settingsDataDirTitle": "Data Directory", + "launchtab_folder": "Choose Folder", + "launchtab_folderdesc": "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.", + "launchtab_abouttitle": "About", + "launchtab_aboutdesc": "View information and release notes for the current version.", + "settingsAboutTitle": "Helios Launcher", + "settingsAboutCurrentVersionText": "Version ", + "settingsAboutSourceButton": "Source (GitHub)", + "settingsAboutSupportButton": "Support", + "settingsAboutDevToolsButton": "DevTools Console", + + "comment6": "========== [welcome.ejs] ==========", + "welcomeHeader": "WELCOME TO WESTEROSCRAFT", + "welcomeDescription": "Our mission is to recreate the universe imagined by author George RR Martin in his fantasy series, A Song of Ice and Fire. Through the collaborative effort of thousands of community members, we have sought to create Westeros as accurately and precisely as possible within Minecraft. The world we are creating is yours to explore. Journey from Dorne to Castle Black, and if you aren’t afraid, beyond the Wall itself, but best not delay. As the words of House Stark ominously warn: Winter is Coming.", + "welcomeDescCTA": "You are just a few clicks away from Westeros.", + "welcome_continue": "CONTINUE" }, "js": { "login": { diff --git a/app/landing.ejs b/app/landing.ejs index 2522200d..963f0ad7 100644 --- a/app/landing.ejs +++ b/app/landing.ejs @@ -101,7 +101,7 @@
- MOJANG STATUS + MOJANG STATUS
Services
diff --git a/app/settings.ejs b/app/settings.ejs index f5505cfe..1d072b91 100644 --- a/app/settings.ejs +++ b/app/settings.ejs @@ -7,12 +7,12 @@
- - - - + + + +
- +
@@ -25,8 +25,8 @@
- Account Settings - Add new accounts or manage existing ones. + Account Settings + Add new accounts or manage existing ones.
- Current Accounts + Current Accounts
@@ -42,11 +42,11 @@