data file options and translations

This commit is contained in:
SpikeHD 2022-05-07 20:13:54 -07:00
parent 5f81ced09f
commit 376171b2cf
3 changed files with 16 additions and 3 deletions

View File

@ -28,6 +28,7 @@
"enableServerLauncherSubtitle": "Enable to server launcher tile for launching a local Grasscutter instance.", "enableServerLauncherSubtitle": "Enable to server launcher tile for launching a local Grasscutter instance.",
"httpsOption": "Use HTTPS", "httpsOption": "Use HTTPS",
"httpsSubtitle": "Choose between using HTTPS or HTTP.", "httpsSubtitle": "Choose between using HTTPS or HTTP.",
"debugOption": "Debugging",
"introSen1": "Looks like this is your first time opening GrassClipper!", "introSen1": "Looks like this is your first time opening GrassClipper!",
"introSen2": "First of all, welcome, happy to see you here! :)", "introSen2": "First of all, welcome, happy to see you here! :)",
@ -74,6 +75,8 @@
"devSubtitle": "Install Grasscutter development branch. This build sometimes has bugs, and is frequently updated. Use at your own risk.", "devSubtitle": "Install Grasscutter development branch. This build sometimes has bugs, and is frequently updated. Use at your own risk.",
"downloadResources": "Download Grasscutter Resources", "downloadResources": "Download Grasscutter Resources",
"resourceSubtitle": "Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally.", "resourceSubtitle": "Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally.",
"downloadData": "Download Grasscutter Data",
"dataSubtitle": "Downloads Grasscutter data files, such as keys, spawns, and other vital files.",
"gcScriptRunning": "Running...", "gcScriptRunning": "Running...",
"stableInstall": "Download", "stableInstall": "Download",

View File

@ -185,10 +185,10 @@
<div class="downloadRow"> <div class="downloadRow">
<div class="downloadSection"> <div class="downloadSection">
<span class="downloadLabel" id="downloadData">Download Data Files</span> <span class="downloadLabel" id="downloadData">Download Data Files</span>
<button class="smolBtn" onclick="downloadDataFiles()" id="resourceInstall">Download</button> <button class="smolBtn" onclick="downloadDataFiles()" id="dataInstall">Download</button>
</div> </div>
<span class="downloadSubtitle" id="resourceSubtitle"> <span class="downloadSubtitle" id="dataSubtitle">
Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally. Downloads Grasscutter data files, such as keys, spawns, and other vital files.
</span> </span>
</div> </div>
</div> </div>
@ -262,6 +262,13 @@
Choose between using HTTPS or HTTP. Choose between using HTTPS or HTTP.
</span> </span>
</div> </div>
<div class="settingsRow">
<div class="settingSection">
<span class="settingLabel", id="debugTitle">Debugging</span>
<input type="checkbox" id="debugOption" onchange="toggleDebugging()" />
</select>
</div>
</div>
</div> </div>
</div> </div>

View File

@ -58,6 +58,7 @@ async function doTranslation() {
set('serverSubtitle', 'enableServerLauncherSubtitle') set('serverSubtitle', 'enableServerLauncherSubtitle')
set('httpsTitle', 'httpsOption') set('httpsTitle', 'httpsOption')
set('httpsSubtitle', 'httpsSubtitle') set('httpsSubtitle', 'httpsSubtitle')
set('debugTitle', 'debugOption')
// Intro popup // Intro popup
const popup = document.getElementById('firstTimeNotice') const popup = document.getElementById('firstTimeNotice')
@ -100,6 +101,8 @@ async function doTranslation() {
set('stableSubtitle', 'stableSubtitle') set('stableSubtitle', 'stableSubtitle')
set('downloadDev', 'downloadDev') set('downloadDev', 'downloadDev')
set('devSubtitle', 'devSubtitle') set('devSubtitle', 'devSubtitle')
set('dataSubtitle', 'dataSubtitle')
set('downloadData', 'downloadData')
set('downloadResources', 'downloadResources') set('downloadResources', 'downloadResources')
set('resourceSubtitle', 'resourceSubtitle') set('resourceSubtitle', 'resourceSubtitle')
set('stableInstall', 'stableInstall') set('stableInstall', 'stableInstall')