diff options
author | 0neGal <mail@0negal.com> | 2022-04-28 00:23:34 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-04-28 00:23:34 +0200 |
commit | 5302d33b7433c68947083ef57b6bb784bd02124f (patch) | |
tree | 55ed179f5976c659c3e3109a044fbfb5782c74c4 /src/lang | |
parent | 4f543a32e2fe5aa9d6a136e853dff8ab2cff4faf (diff) | |
download | Viper-5302d33b7433c68947083ef57b6bb784bd02124f.tar.gz Viper-5302d33b7433c68947083ef57b6bb784bd02124f.zip |
added: error if config file isn't valid
Essentially just validates the config file and then prompts you about
it, it allows you to reset it directly or just to exit and let yourself
fix it. And because the error message appears directly in the renderer
we have access to navigator.language, and can therefore still localize
the string. However! We can't actually care if the user has disabled
auto detection of their language, since... y'know, the config file where
that's stored isn't able to be read properly.
And so I added an argument to lang(), which allows you to force it to
use a specific language if that language is available, if not it
defaults back to English.
Diffstat (limited to 'src/lang')
-rw-r--r-- | src/lang/en.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lang/en.json b/src/lang/en.json index af388d8..6849573 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -145,5 +145,7 @@ "general.mods.installed": "Installed mods:", "general.missingpath": "Game location could not be found automatically! Please select it manually!", "general.notinstalled": "Northstar is not installed!", - "general.launching": "Launching" + "general.launching": "Launching", + "general.reset": "Reset", + "general.invalidconfig": "Your config file is improperly formatted, if it's been manually edited, please validate that everything is typed correctly.\n\nIf you did not manually edit the config file, it is recommended to simply reset the config.\n\nTo reset your config file simply click \"Ok\" below.\n\nMore details:\n" } |