mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-21 22:58:24 +00:00
hardcoded language defaults
This commit is contained in:
parent
a73c3ed5cd
commit
71235a59c3
@ -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: ",
|
||||
|
@ -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()
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user