diff --git a/app/assets/js/scripts/uibinder.js b/app/assets/js/scripts/uibinder.js
index a1cf7eb9..f2b2607e 100644
--- a/app/assets/js/scripts/uibinder.js
+++ b/app/assets/js/scripts/uibinder.js
@@ -115,9 +115,9 @@ function showFatalStartupError(){
$('#loadingContainer').fadeOut(250, () => {
document.getElementById('overlayContainer').style.background = 'none'
setOverlayContent(
- 'Fatal Error: Unable to Load Distribution Index',
- 'A connection could not be established to our servers to download the distribution index. No local copies were available to load.
The distribution index is an essential file which provides the latest server information. The launcher is unable to start without it. Ensure you are connected to the internet and relaunch the application.',
- 'Close'
+ Lang.queryJS('uibinder.startup.fatalErrorTitle'),
+ Lang.queryJS('uibinder.startup.fatalErrorMessage'),
+ Lang.queryJS('uibinder.startup.closeButton')
)
setOverlayHandler(() => {
const window = remote.getCurrentWindow()
@@ -333,10 +333,12 @@ async function validateSelectedAccount(){
ConfigManager.save()
const accLen = Object.keys(ConfigManager.getAuthAccounts()).length
setOverlayContent(
- 'Failed to Refresh Login',
- `We were unable to refresh the login for ${selectedAcc.displayName}. Please ${accLen > 0 ? 'select another account or ' : ''} login again.`,
- 'Login',
- 'Select Another Account'
+ Lang.queryJS('uibinder.validateAccount.failedMessageTitle'),
+ accLen > 0
+ ? Lang.queryJS('uibinder.validateAccount.failedMessage', { 'account': selectedAcc.displayName })
+ : Lang.queryJS('uibinder.validateAccount.failedMessageSelectAnotherAccount', { 'account': selectedAcc.displayName }),
+ Lang.queryJS('uibinder.validateAccount.loginButton'),
+ Lang.queryJS('uibinder.validateAccount.selectAnotherAccountButton')
)
setOverlayHandler(() => {
diff --git a/app/assets/lang/en_US.json b/app/assets/lang/en_US.json
index 08c805c8..13d5e479 100644
--- a/app/assets/lang/en_US.json
+++ b/app/assets/lang/en_US.json
@@ -311,6 +311,20 @@
"checkForUpdatesButton": "Check for Updates",
"checkingForUpdatesButton": "Checking for Updates.."
}
+ },
+ "uibinder": {
+ "startup": {
+ "fatalErrorTitle": "Fatal Error: Unable to Load Distribution Index",
+ "fatalErrorMessage": "A connection could not be established to our servers to download the distribution index. No local copies were available to load.
The distribution index is an essential file which provides the latest server information. The launcher is unable to start without it. Ensure you are connected to the internet and relaunch the application.",
+ "closeButton": "Close"
+ },
+ "validateAccount": {
+ "failedMessageTitle": "Failed to Refresh Login",
+ "failedMessage": "We were unable to refresh the login for {account}. Please select another account or login again.",
+ "failedMessageSelectAnotherAccount": "We were unable to refresh the login for {account}. Please login again.",
+ "loginButton": "Login",
+ "selectAnotherAccountButton": "Select Another Account"
+ }
}
}
}
\ No newline at end of file