mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-23 04:02:14 -08:00
i18n for settings.js
This commit is contained in:
parent
5c010464eb
commit
988d9391a5
@ -316,7 +316,7 @@ async function asyncSystemScan(effectiveJavaOptions, launchAfter = true){
|
|||||||
// Show this information to the user.
|
// Show this information to the user.
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
Lang.queryJS('landing.systemScan.noCompatibleJava'),
|
Lang.queryJS('landing.systemScan.noCompatibleJava'),
|
||||||
Lang.queryJS('landing.systemScan.installJavaMessage', { 'suggestedMajor': effectiveJavaOptions.suggestedMajor }),
|
Lang.queryJS('landing.systemScan.installJavaMessage', { 'major': effectiveJavaOptions.suggestedMajor }),
|
||||||
Lang.queryJS('landing.systemScan.installJava'),
|
Lang.queryJS('landing.systemScan.installJava'),
|
||||||
Lang.queryJS('landing.systemScan.installJavaManually')
|
Lang.queryJS('landing.systemScan.installJavaManually')
|
||||||
)
|
)
|
||||||
@ -336,7 +336,7 @@ async function asyncSystemScan(effectiveJavaOptions, launchAfter = true){
|
|||||||
//$('#overlayDismiss').toggle(false)
|
//$('#overlayDismiss').toggle(false)
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
Lang.queryJS('landing.systemScan.javaRequired'),
|
Lang.queryJS('landing.systemScan.javaRequired'),
|
||||||
Lang.queryJS('landing.systemScan.javaRequiredMessage', { 'suggestedMajor': effectiveJavaOptions.suggestedMajor }),
|
Lang.queryJS('landing.systemScan.javaRequiredMessage', { 'major': effectiveJavaOptions.suggestedMajor }),
|
||||||
Lang.queryJS('landing.systemScan.javaRequiredDismiss'),
|
Lang.queryJS('landing.systemScan.javaRequiredDismiss'),
|
||||||
Lang.queryJS('landing.systemScan.javaRequiredCancel')
|
Lang.queryJS('landing.systemScan.javaRequiredCancel')
|
||||||
)
|
)
|
||||||
|
@ -289,7 +289,7 @@ async function populateServerListings(){
|
|||||||
<path class="cls-1" d="M100.93,65.54C89,62,68.18,55.65,63.54,52.13c2.7-5.23,18.8-19.2,28-27.55C81.36,31.74,63.74,43.87,58.09,45.3c-2.41-5.37-3.61-26.52-4.37-39-.77,12.46-2,33.64-4.36,39-5.7-1.46-23.3-13.57-33.49-20.72,9.26,8.37,25.39,22.36,28,27.55C39.21,55.68,18.47,62,6.52,65.55c12.32-2,33.63-6.06,39.34-4.9-.16,5.87-8.41,26.16-13.11,37.69,6.1-10.89,16.52-30.16,21-33.9,4.5,3.79,14.93,23.09,21,34C70,86.84,61.73,66.48,61.59,60.65,67.36,59.49,88.64,63.52,100.93,65.54Z"/>
|
<path class="cls-1" d="M100.93,65.54C89,62,68.18,55.65,63.54,52.13c2.7-5.23,18.8-19.2,28-27.55C81.36,31.74,63.74,43.87,58.09,45.3c-2.41-5.37-3.61-26.52-4.37-39-.77,12.46-2,33.64-4.36,39-5.7-1.46-23.3-13.57-33.49-20.72,9.26,8.37,25.39,22.36,28,27.55C39.21,55.68,18.47,62,6.52,65.55c12.32-2,33.63-6.06,39.34-4.9-.16,5.87-8.41,26.16-13.11,37.69,6.1-10.89,16.52-30.16,21-33.9,4.5,3.79,14.93,23.09,21,34C70,86.84,61.73,66.48,61.59,60.65,67.36,59.49,88.64,63.52,100.93,65.54Z"/>
|
||||||
<circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
|
<circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="serverListingStarTooltip">${Lang.queryJS('overlay.mainServer')}</span>
|
<span class="serverListingStarTooltip">${Lang.queryJS('settings.serverListing.mainServer')}</span>
|
||||||
</div>` : ''}
|
</div>` : ''}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,8 +59,8 @@ function bindFileSelectors(){
|
|||||||
|
|
||||||
if(isJavaExecSel && process.platform === 'win32') {
|
if(isJavaExecSel && process.platform === 'win32') {
|
||||||
options.filters = [
|
options.filters = [
|
||||||
{ name: 'Executables', extensions: ['exe'] },
|
{ name: Lang.queryJS('settings.fileSelectors.executables'), extensions: ['exe'] },
|
||||||
{ name: 'All Files', extensions: ['*'] }
|
{ name: Lang.queryJS('settings.fileSelectors.allFiles'), extensions: ['*'] }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -374,9 +374,9 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => {
|
|||||||
|
|
||||||
// Unexpected error.
|
// Unexpected error.
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
'Something Went Wrong',
|
Lang.queryJS('settings.msftLogin.errorTitle'),
|
||||||
'Microsoft authentication failed. Please try again.',
|
Lang.queryJS('settings.msftLogin.errorMessage'),
|
||||||
'OK'
|
Lang.queryJS('settings.msftLogin.okButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
toggleOverlay(false)
|
toggleOverlay(false)
|
||||||
@ -401,7 +401,7 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => {
|
|||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
error,
|
error,
|
||||||
errorDesc,
|
errorDesc,
|
||||||
'OK'
|
Lang.queryJS('settings.msftLogin.okButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
toggleOverlay(false)
|
toggleOverlay(false)
|
||||||
@ -429,10 +429,7 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => {
|
|||||||
} else {
|
} else {
|
||||||
// Uh oh.
|
// Uh oh.
|
||||||
msftLoginLogger.error('Unhandled error during login.', displayableError)
|
msftLoginLogger.error('Unhandled error during login.', displayableError)
|
||||||
actualDisplayableError = {
|
actualDisplayableError = Lang.queryJS('login.error.unknown')
|
||||||
title: 'Unknown Error During Login',
|
|
||||||
desc: 'An unknown error has occurred. Please see the console for details.'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switchView(getCurrentView(), viewOnClose, 500, 500, () => {
|
switchView(getCurrentView(), viewOnClose, 500, 500, () => {
|
||||||
@ -461,11 +458,11 @@ function bindAuthAccountSelect(){
|
|||||||
for(let i=0; i<selectBtns.length; i++){
|
for(let i=0; i<selectBtns.length; i++){
|
||||||
if(selectBtns[i].hasAttribute('selected')){
|
if(selectBtns[i].hasAttribute('selected')){
|
||||||
selectBtns[i].removeAttribute('selected')
|
selectBtns[i].removeAttribute('selected')
|
||||||
selectBtns[i].innerHTML = 'Select Account'
|
selectBtns[i].innerHTML = Lang.queryJS('settings.authAccountSelect.selectButton')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val.setAttribute('selected', '')
|
val.setAttribute('selected', '')
|
||||||
val.innerHTML = 'Selected Account ✔'
|
val.innerHTML = Lang.queryJS('settings.authAccountSelect.selectedButton')
|
||||||
setSelectedAccount(val.closest('.settingsAuthAccount').getAttribute('uuid'))
|
setSelectedAccount(val.closest('.settingsAuthAccount').getAttribute('uuid'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -483,10 +480,10 @@ function bindAuthAccountLogOut(){
|
|||||||
if(Object.keys(ConfigManager.getAuthAccounts()).length === 1){
|
if(Object.keys(ConfigManager.getAuthAccounts()).length === 1){
|
||||||
isLastAccount = true
|
isLastAccount = true
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
'Warning<br>This is Your Last Account',
|
Lang.queryJS('settings.authAccountLogout.lastAccountWarningTitle'),
|
||||||
'In order to use the launcher you must be logged into at least one account. You will need to login again after.<br><br>Are you sure you want to log out?',
|
Lang.queryJS('settings.authAccountLogout.lastAccountWarningMessage'),
|
||||||
'I\'m Sure',
|
Lang.queryJS('settings.authAccountLogout.confirmButton'),
|
||||||
'Cancel'
|
Lang.queryJS('settings.authAccountLogout.cancelButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
processLogOut(val, isLastAccount)
|
processLogOut(val, isLastAccount)
|
||||||
@ -555,9 +552,9 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGOUT, (_, ...arguments_) => {
|
|||||||
|
|
||||||
// Unexpected error.
|
// Unexpected error.
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
'Something Went Wrong',
|
Lang.queryJS('settings.msftLogout.errorTitle'),
|
||||||
'Microsoft logout failed. Please try again.',
|
Lang.queryJS('settings.msftLogout.errorMessage'),
|
||||||
'OK'
|
Lang.queryJS('settings.msftLogout.okButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
toggleOverlay(false)
|
toggleOverlay(false)
|
||||||
@ -611,12 +608,12 @@ function refreshAuthAccountSelected(uuid){
|
|||||||
const selBtn = val.getElementsByClassName('settingsAuthAccountSelect')[0]
|
const selBtn = val.getElementsByClassName('settingsAuthAccountSelect')[0]
|
||||||
if(uuid === val.getAttribute('uuid')){
|
if(uuid === val.getAttribute('uuid')){
|
||||||
selBtn.setAttribute('selected', '')
|
selBtn.setAttribute('selected', '')
|
||||||
selBtn.innerHTML = 'Selected Account ✔'
|
selBtn.innerHTML = Lang.queryJS('settings.authAccountSelect.selectedButton')
|
||||||
} else {
|
} else {
|
||||||
if(selBtn.hasAttribute('selected')){
|
if(selBtn.hasAttribute('selected')){
|
||||||
selBtn.removeAttribute('selected')
|
selBtn.removeAttribute('selected')
|
||||||
}
|
}
|
||||||
selBtn.innerHTML = 'Select Account'
|
selBtn.innerHTML = Lang.queryJS('settings.authAccountSelect.selectButton')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -648,18 +645,18 @@ function populateAuthAccounts(){
|
|||||||
<div class="settingsAuthAccountRight">
|
<div class="settingsAuthAccountRight">
|
||||||
<div class="settingsAuthAccountDetails">
|
<div class="settingsAuthAccountDetails">
|
||||||
<div class="settingsAuthAccountDetailPane">
|
<div class="settingsAuthAccountDetailPane">
|
||||||
<div class="settingsAuthAccountDetailTitle">Username</div>
|
<div class="settingsAuthAccountDetailTitle">${Lang.queryJS('settings.authAccountPopulate.username')}</div>
|
||||||
<div class="settingsAuthAccountDetailValue">${acc.displayName}</div>
|
<div class="settingsAuthAccountDetailValue">${acc.displayName}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settingsAuthAccountDetailPane">
|
<div class="settingsAuthAccountDetailPane">
|
||||||
<div class="settingsAuthAccountDetailTitle">UUID</div>
|
<div class="settingsAuthAccountDetailTitle">${Lang.queryJS('settings.authAccountPopulate.uuid')}</div>
|
||||||
<div class="settingsAuthAccountDetailValue">${acc.uuid}</div>
|
<div class="settingsAuthAccountDetailValue">${acc.uuid}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settingsAuthAccountActions">
|
<div class="settingsAuthAccountActions">
|
||||||
<button class="settingsAuthAccountSelect" ${selectedUUID === acc.uuid ? 'selected>Selected Account ✔' : '>Select Account'}</button>
|
<button class="settingsAuthAccountSelect" ${selectedUUID === acc.uuid ? 'selected>' + Lang.queryJS('settings.authAccountPopulate.selectedAccount') : '>' + Lang.queryJS('settings.authAccountPopulate.selectAccount')}</button>
|
||||||
<div class="settingsAuthAccountWrapper">
|
<div class="settingsAuthAccountWrapper">
|
||||||
<button class="settingsAuthAccountLogOut">Log Out</button>
|
<button class="settingsAuthAccountLogOut">${Lang.queryJS('settings.authAccountPopulate.logout')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -873,7 +870,7 @@ async function resolveDropinModsForUI(){
|
|||||||
<div class="settingsModDetails">
|
<div class="settingsModDetails">
|
||||||
<span class="settingsModName">${dropin.name}</span>
|
<span class="settingsModName">${dropin.name}</span>
|
||||||
<div class="settingsDropinRemoveWrapper">
|
<div class="settingsDropinRemoveWrapper">
|
||||||
<button class="settingsDropinRemoveButton" remmod="${dropin.fullName}">Remove</button>
|
<button class="settingsDropinRemoveButton" remmod="${dropin.fullName}">${Lang.queryJS('settings.dropinMods.removeButton')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -901,9 +898,9 @@ function bindDropinModsRemoveButton(){
|
|||||||
document.getElementById(fullName).remove()
|
document.getElementById(fullName).remove()
|
||||||
} else {
|
} else {
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
`Failed to Delete<br>Drop-in Mod ${fullName}`,
|
Lang.queryJS('settings.dropinMods.deleteFailedTitle', { fullName }),
|
||||||
'Make sure the file is not in use and try again.',
|
Lang.queryJS('settings.dropinMods.deleteFailedMessage'),
|
||||||
'Okay'
|
Lang.queryJS('settings.okButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(null)
|
setOverlayHandler(null)
|
||||||
toggleOverlay(true)
|
toggleOverlay(true)
|
||||||
@ -956,9 +953,9 @@ function saveDropinModConfiguration(){
|
|||||||
DropinModUtil.toggleDropinMod(CACHE_SETTINGS_MODS_DIR, dropin.fullName, dropinUIEnabled).catch(err => {
|
DropinModUtil.toggleDropinMod(CACHE_SETTINGS_MODS_DIR, dropin.fullName, dropinUIEnabled).catch(err => {
|
||||||
if(!isOverlayVisible()){
|
if(!isOverlayVisible()){
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
'Failed to Toggle<br>One or More Drop-in Mods',
|
Lang.queryJS('settings.dropinMods.failedToggleTitle'),
|
||||||
err.message,
|
err.message,
|
||||||
'Okay'
|
Lang.queryJS('settings.okButton')
|
||||||
)
|
)
|
||||||
setOverlayHandler(null)
|
setOverlayHandler(null)
|
||||||
toggleOverlay(true)
|
toggleOverlay(true)
|
||||||
@ -1093,7 +1090,7 @@ async function loadSelectedServerOnModsTab(){
|
|||||||
<path class="cls-1" d="M100.93,65.54C89,62,68.18,55.65,63.54,52.13c2.7-5.23,18.8-19.2,28-27.55C81.36,31.74,63.74,43.87,58.09,45.3c-2.41-5.37-3.61-26.52-4.37-39-.77,12.46-2,33.64-4.36,39-5.7-1.46-23.3-13.57-33.49-20.72,9.26,8.37,25.39,22.36,28,27.55C39.21,55.68,18.47,62,6.52,65.55c12.32-2,33.63-6.06,39.34-4.9-.16,5.87-8.41,26.16-13.11,37.69,6.1-10.89,16.52-30.16,21-33.9,4.5,3.79,14.93,23.09,21,34C70,86.84,61.73,66.48,61.59,60.65,67.36,59.49,88.64,63.52,100.93,65.54Z"/>
|
<path class="cls-1" d="M100.93,65.54C89,62,68.18,55.65,63.54,52.13c2.7-5.23,18.8-19.2,28-27.55C81.36,31.74,63.74,43.87,58.09,45.3c-2.41-5.37-3.61-26.52-4.37-39-.77,12.46-2,33.64-4.36,39-5.7-1.46-23.3-13.57-33.49-20.72,9.26,8.37,25.39,22.36,28,27.55C39.21,55.68,18.47,62,6.52,65.55c12.32-2,33.63-6.06,39.34-4.9-.16,5.87-8.41,26.16-13.11,37.69,6.1-10.89,16.52-30.16,21-33.9,4.5,3.79,14.93,23.09,21,34C70,86.84,61.73,66.48,61.59,60.65,67.36,59.49,88.64,63.52,100.93,65.54Z"/>
|
||||||
<circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
|
<circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="serverListingStarTooltip">Main Server</span>
|
<span class="serverListingStarTooltip">${Lang.queryJS('settings.serverListing.mainServer')}</span>
|
||||||
</div>` : ''}
|
</div>` : ''}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1344,19 +1341,19 @@ async function populateJavaExecDetails(execPath){
|
|||||||
const details = await validateSelectedJvm(ensureJavaDirIsRoot(execPath), server.effectiveJavaOptions.supported)
|
const details = await validateSelectedJvm(ensureJavaDirIsRoot(execPath), server.effectiveJavaOptions.supported)
|
||||||
|
|
||||||
if(details != null) {
|
if(details != null) {
|
||||||
settingsJavaExecDetails.innerHTML = `Selected: Java ${details.semverStr} (${details.vendor})`
|
settingsJavaExecDetails.innerHTML = Lang.queryJS('settings.java.selectedJava', { version: details.semverStr, vendor: details.vendor })
|
||||||
} else {
|
} else {
|
||||||
settingsJavaExecDetails.innerHTML = 'Invalid Selection'
|
settingsJavaExecDetails.innerHTML = Lang.queryJS('settings.java.invalidSelection')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateJavaReqDesc(server) {
|
function populateJavaReqDesc(server) {
|
||||||
settingsJavaReqDesc.innerHTML = `Requires Java ${server.effectiveJavaOptions.suggestedMajor} x64.`
|
settingsJavaReqDesc.innerHTML = Lang.queryJS('settings.java.requiresJava', { major: server.effectiveJavaOptions.suggestedMajor })
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateJvmOptsLink(server) {
|
function populateJvmOptsLink(server) {
|
||||||
const major = server.effectiveJavaOptions.suggestedMajor
|
const major = server.effectiveJavaOptions.suggestedMajor
|
||||||
settingsJvmOptsLink.innerHTML = `Available Options for Java ${major} (HotSpot VM)`
|
settingsJvmOptsLink.innerHTML = Lang.queryJS('settings.java.availableOptions', { major: major })
|
||||||
if(major >= 12) {
|
if(major >= 12) {
|
||||||
settingsJvmOptsLink.href = `https://docs.oracle.com/en/java/javase/${major}/docs/specs/man/java.html#extra-options-for-java`
|
settingsJvmOptsLink.href = `https://docs.oracle.com/en/java/javase/${major}/docs/specs/man/java.html#extra-options-for-java`
|
||||||
}
|
}
|
||||||
@ -1433,11 +1430,11 @@ function isPrerelease(version){
|
|||||||
function populateVersionInformation(version, valueElement, titleElement, checkElement){
|
function populateVersionInformation(version, valueElement, titleElement, checkElement){
|
||||||
valueElement.innerHTML = version
|
valueElement.innerHTML = version
|
||||||
if(isPrerelease(version)){
|
if(isPrerelease(version)){
|
||||||
titleElement.innerHTML = 'Pre-release'
|
titleElement.innerHTML = Lang.queryJS('settings.about.preReleaseTitle')
|
||||||
titleElement.style.color = '#ff886d'
|
titleElement.style.color = '#ff886d'
|
||||||
checkElement.style.background = '#ff886d'
|
checkElement.style.background = '#ff886d'
|
||||||
} else {
|
} else {
|
||||||
titleElement.innerHTML = 'Stable Release'
|
titleElement.innerHTML = Lang.queryJS('settings.about.stableReleaseTitle')
|
||||||
titleElement.style.color = null
|
titleElement.style.color = null
|
||||||
checkElement.style.background = null
|
checkElement.style.background = null
|
||||||
}
|
}
|
||||||
@ -1476,7 +1473,7 @@ function populateReleaseNotes(){
|
|||||||
},
|
},
|
||||||
timeout: 2500
|
timeout: 2500
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
settingsAboutChangelogText.innerHTML = 'Failed to load release notes.'
|
settingsAboutChangelogText.innerHTML = Lang.queryJS('settings.about.releaseNotesFailed')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1524,27 +1521,27 @@ function settingsUpdateButtonStatus(text, disabled = false, handler = null){
|
|||||||
*/
|
*/
|
||||||
function populateSettingsUpdateInformation(data){
|
function populateSettingsUpdateInformation(data){
|
||||||
if(data != null){
|
if(data != null){
|
||||||
settingsUpdateTitle.innerHTML = `New ${isPrerelease(data.version) ? 'Pre-release' : 'Release'} Available`
|
settingsUpdateTitle.innerHTML = isPrerelease(data.version) ? Lang.queryJS('settings.updates.newPreReleaseTitle') : Lang.queryJS('settings.updates.newReleaseTitle')
|
||||||
settingsUpdateChangelogCont.style.display = null
|
settingsUpdateChangelogCont.style.display = null
|
||||||
settingsUpdateChangelogTitle.innerHTML = data.releaseName
|
settingsUpdateChangelogTitle.innerHTML = data.releaseName
|
||||||
settingsUpdateChangelogText.innerHTML = data.releaseNotes
|
settingsUpdateChangelogText.innerHTML = data.releaseNotes
|
||||||
populateVersionInformation(data.version, settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
|
populateVersionInformation(data.version, settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
|
||||||
|
|
||||||
if(process.platform === 'darwin'){
|
if(process.platform === 'darwin'){
|
||||||
settingsUpdateButtonStatus('Download from GitHub<span style="font-size: 10px;color: gray;text-shadow: none !important;">Close the launcher and run the dmg to update.</span>', false, () => {
|
settingsUpdateButtonStatus(Lang.queryJS('settings.updates.downloadButton'), false, () => {
|
||||||
shell.openExternal(data.darwindownload)
|
shell.openExternal(data.darwindownload)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
settingsUpdateButtonStatus('Downloading..', true)
|
settingsUpdateButtonStatus(Lang.queryJS('settings.updates.downloadingButton'), true)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
settingsUpdateTitle.innerHTML = 'You Are Running the Latest Version'
|
settingsUpdateTitle.innerHTML = Lang.queryJS('settings.updates.latestVersionTitle')
|
||||||
settingsUpdateChangelogCont.style.display = 'none'
|
settingsUpdateChangelogCont.style.display = 'none'
|
||||||
populateVersionInformation(remote.app.getVersion(), settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
|
populateVersionInformation(remote.app.getVersion(), settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
|
||||||
settingsUpdateButtonStatus('Check for Updates', false, () => {
|
settingsUpdateButtonStatus(Lang.queryJS('settings.updates.checkForUpdatesButton'), false, () => {
|
||||||
if(!isDev){
|
if(!isDev){
|
||||||
ipcRenderer.send('autoUpdateAction', 'checkForUpdate')
|
ipcRenderer.send('autoUpdateAction', 'checkForUpdate')
|
||||||
settingsUpdateButtonStatus('Checking for Updates..', true)
|
settingsUpdateButtonStatus(Lang.queryJS('settings.updates.checkingForUpdatesButton'), true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -210,14 +210,14 @@
|
|||||||
"systemScan": {
|
"systemScan": {
|
||||||
"checking": "Checking system info..",
|
"checking": "Checking system info..",
|
||||||
"noCompatibleJava": "No Compatible<br>Java Installation Found",
|
"noCompatibleJava": "No Compatible<br>Java Installation Found",
|
||||||
"installJavaMessage": "In order to join WesterosCraft, you need a 64-bit installation of Java {suggestedMajor}. Would you like us to install a copy?",
|
"installJavaMessage": "In order to join WesterosCraft, you need a 64-bit installation of Java {major}. Would you like us to install a copy?",
|
||||||
"installJava": "Install Java",
|
"installJava": "Install Java",
|
||||||
"installJavaManually": "Install Manually",
|
"installJavaManually": "Install Manually",
|
||||||
"javaDownloadPrepare": "Preparing Java Download..",
|
"javaDownloadPrepare": "Preparing Java Download..",
|
||||||
"javaDownloadFailureTitle": "Error During Java Download",
|
"javaDownloadFailureTitle": "Error During Java Download",
|
||||||
"javaDownloadFailureText": "See console (CTRL + Shift + i) for more details.",
|
"javaDownloadFailureText": "See console (CTRL + Shift + i) for more details.",
|
||||||
"javaRequired": "Java is Required<br>to Launch",
|
"javaRequired": "Java is Required<br>to Launch",
|
||||||
"javaRequiredMessage": "A valid x64 installation of Java {suggestedMajor} is required to launch.<br><br>Please refer to our <a href=\"https://github.com/dscalzi/HeliosLauncher/wiki/Java-Management#manually-installing-a-valid-version-of-java\">Java Management Guide</a> for instructions on how to manually install Java.",
|
"javaRequiredMessage": "A valid x64 installation of Java {major} is required to launch.<br><br>Please refer to our <a href=\"https://github.com/dscalzi/HeliosLauncher/wiki/Java-Management#manually-installing-a-valid-version-of-java\">Java Management Guide</a> for instructions on how to manually install Java.",
|
||||||
"javaRequiredDismiss": "I Understand",
|
"javaRequiredDismiss": "I Understand",
|
||||||
"javaRequiredCancel": "Go Back"
|
"javaRequiredCancel": "Go Back"
|
||||||
},
|
},
|
||||||
@ -249,8 +249,68 @@
|
|||||||
"checking": "Checking for News"
|
"checking": "Checking for News"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overlay": {
|
"settings": {
|
||||||
|
"fileSelectors": {
|
||||||
|
"executables": "Executables",
|
||||||
|
"allFiles": "All Files"
|
||||||
|
},
|
||||||
|
"mstfLogin": {
|
||||||
|
"errorTitle": "Something Went Wrong",
|
||||||
|
"errorMessage": "Microsoft authentication failed. Please try again.",
|
||||||
|
"okButton": "OK"
|
||||||
|
},
|
||||||
|
"mstfLogout": {
|
||||||
|
"errorTitle": "Something Went Wrong",
|
||||||
|
"errorMessage": "Microsoft logout failed. Please try again.",
|
||||||
|
"okButton": "OK"
|
||||||
|
},
|
||||||
|
"authAccountSelect": {
|
||||||
|
"selectButton": "Select Account",
|
||||||
|
"selectedButton": "Selected Account ✔"
|
||||||
|
},
|
||||||
|
"authAccountLogout": {
|
||||||
|
"lastAccountWarningTitle": "Warning<br>This is Your Last Account",
|
||||||
|
"lastAccountWarningMessage": "In order to use the launcher you must be logged into at least one account. You will need to login again after.<br><br>Are you sure you want to log out?",
|
||||||
|
"confirmButton": "I'm Sure",
|
||||||
|
"cancelButton": "Cancel"
|
||||||
|
},
|
||||||
|
"authAccountPopulate": {
|
||||||
|
"username": "Username",
|
||||||
|
"uuid": "UUID",
|
||||||
|
"selectAccount": "Select Account",
|
||||||
|
"selectedAccount": "Selected Account ✓",
|
||||||
|
"logout": "Log Out"
|
||||||
|
},
|
||||||
|
"dropinMods": {
|
||||||
|
"removeButton": "Remove",
|
||||||
|
"deleteFailedTitle": "Failed to Delete<br>Drop-in Mod {fullName}",
|
||||||
|
"deleteFailedMessage": "Make sure the file is not in use and try again.",
|
||||||
|
"failedToggleTitle": "Failed to Toggle<br>One or More Drop-in Mods",
|
||||||
|
"okButton": "Okay"
|
||||||
|
},
|
||||||
|
"serverListing": {
|
||||||
"mainServer": "Main Server"
|
"mainServer": "Main Server"
|
||||||
|
},
|
||||||
|
"java": {
|
||||||
|
"selectedJava": "Selected: Java {version} ({vendor})",
|
||||||
|
"invalidSelection": "Invalid Selection",
|
||||||
|
"requiresJava": "Requires Java {major} x64.",
|
||||||
|
"availableOptions": "Available Options for Java {major} (HotSpot VM)"
|
||||||
|
},
|
||||||
|
"about": {
|
||||||
|
"preReleaseTitle": "Pre-release",
|
||||||
|
"stableReleaseTitle": "Stable Release",
|
||||||
|
"releaseNotesFailed": "Failed to load release notes."
|
||||||
|
},
|
||||||
|
"updates": {
|
||||||
|
"newReleaseTitle": "New Release Available",
|
||||||
|
"newPreReleaseTitle": "New Pre-release Available",
|
||||||
|
"downloadingButton": "Downloading..",
|
||||||
|
"downloadButton": "Download from GitHub<span style=\"font-size: 10px;color: gray;text-shadow: none !important;\">Close the launcher and run the dmg to update.</span>",
|
||||||
|
"latestVersionTitle": "You Are Running the Latest Version",
|
||||||
|
"checkForUpdatesButton": "Check for Updates",
|
||||||
|
"checkingForUpdatesButton": "Checking for Updates.."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user