i18n for uicore.js

This commit is contained in:
Kamesuta 2023-09-02 21:41:21 +09:00
parent 9a956c4553
commit ba8a346df4
2 changed files with 10 additions and 3 deletions

View File

@ -42,7 +42,7 @@ if(!isDev){
switch(arg){ switch(arg){
case 'checking-for-update': case 'checking-for-update':
loggerAutoUpdater.info('Checking for update..') loggerAutoUpdater.info('Checking for update..')
settingsUpdateButtonStatus('Checking for Updates..', true) settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.checkingForUpdateButton'), true)
break break
case 'update-available': case 'update-available':
loggerAutoUpdater.info('New update available', info.version) loggerAutoUpdater.info('New update available', info.version)
@ -56,7 +56,7 @@ if(!isDev){
break break
case 'update-downloaded': case 'update-downloaded':
loggerAutoUpdater.info('Update ' + info.version + ' ready to be installed.') loggerAutoUpdater.info('Update ' + info.version + ' ready to be installed.')
settingsUpdateButtonStatus('Install Now', false, () => { settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.installNowButton'), false, () => {
if(!isDev){ if(!isDev){
ipcRenderer.send('autoUpdateAction', 'installUpdateNow') ipcRenderer.send('autoUpdateAction', 'installUpdateNow')
} }
@ -65,7 +65,7 @@ if(!isDev){
break break
case 'update-not-available': case 'update-not-available':
loggerAutoUpdater.info('No new update found.') loggerAutoUpdater.info('No new update found.')
settingsUpdateButtonStatus('Check for Updates') settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.checkForUpdatesButton'))
break break
case 'ready': case 'ready':
updateCheckListener = setInterval(() => { updateCheckListener = setInterval(() => {

View File

@ -326,5 +326,12 @@
"selectAnotherAccountButton": "Select Another Account" "selectAnotherAccountButton": "Select Another Account"
} }
} }
},
"uicore": {
"autoUpdate": {
"checkingForUpdateButton": "Checking for Updates...",
"installNowButton": "Install Now",
"checkForUpdatesButton": "Check for Updates"
}
} }
} }