From 00d04db553eb53abb48f0b4e3649a6912fdc10df Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 20 Dec 2024 20:21:28 +0100 Subject: added request.check_with_toasts() and use it This makes it very simple to check if some endpoints are available, and show a toast if not, with an error message saying exactly what isn't available. Currently made use for updates with GitHub and installs with Thunderstore. --- src/lang/en.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lang') diff --git a/src/lang/en.json b/src/lang/en.json index 28e4ecb..9540ad2 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -267,6 +267,7 @@ "malformed": "Incorrect folder structure!", "unknown_error": "Unknown Error!", "no_internet": "No Internet", + "failed_to_connect": "Failed to connect", "failed_launch_command": "Failed running launch command", "missing_launch_command": "Missing launch command", "missing_steam": "Missing Steam", @@ -281,6 +282,7 @@ "duped": "has multiple mod folders in it, with the same name, causing duplicate folders, if you're the developer, you should fix this.", "unknown_error": "An unknown error occurred, click for more details. You may want to take a screenshot of the detailed error when filing a bug report.", "no_internet": "Viper may not work properly.", + "failed_to_connect": "A connection could not be established to %s, check your internet, firewall or whether %s is currently down", "failed_launch_command": "Something went wrong whilst running the custom launch command", "missing_launch_command": "There's currently no custom launch command set, one has to be configured to launch", "missing_steam": "Can't launch with Steam directly, as it doesn't seem to be installed", -- cgit v1.2.3