hardcoded language defaults

This commit is contained in:
SpikeHD 2022-05-07 19:58:17 -07:00
parent a73c3ed5cd
commit 71235a59c3
3 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@
"proxyInstallBtn": "Install",
"proxyInstallDeny": "No thanks",
"gameFolderDialog": "Select game folder",
"gameFolderDialog": "Select game exe",
"grasscutterFileDialog": "Select Grasscutter server jar file",
"loggingInTo": "Logging in to: ",

View File

@ -428,7 +428,7 @@ async function setGameExe() {
}
async function setGrasscutterFolder() {
const folder = await Neutralino.os.showOpenDialog(localeObj.grasscutterFileDialog, {
const folder = await Neutralino.os.showOpenDialog(localeObj.grasscutterFileDialog || 'Select Grasscutter server jar file', {
filters: [
{ name: 'Jar files', extensions: ['jar'] }
]
@ -437,7 +437,7 @@ async function setGrasscutterFolder() {
if (!folder[0]) return
console.log(hasForeignChars(folder[0]))
if (hasForeignChars(folder[0])) displayAlert(localeObj.foreignCharacterAlert)
if (hasForeignChars(folder[0])) displayAlert(localeObj.foreignCharacterAlert || 'The file path set contains foreign characters, this may cause problems!')
// Set the folder in our configuration
const config = await getCfg()

View File

@ -38,8 +38,8 @@ async function doTranslation() {
set('grasscutterFileSet', 'grasscutterFileSet')
// Private options
document.querySelector('#ip').placeholder = localeObj.ipPlaceholder
document.querySelector('#port').placeholder = localeObj.portPlaceholder
document.querySelector('#ip').placeholder = localeObj.ipPlaceholder || 'IP Address'
document.querySelector('#port').placeholder = localeObj.portPlaceholder || 'Port'
// Settings
set('fullSettingsTitle', 'settingsTitle')