From 63152a033523556e5d492ccd4f5e5fdf87c5158d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 16 Mar 2020 14:20:53 +0100 Subject: [PATCH] SEBWIN-362: Added retry option for load error page. --- SafeExamBrowser.Browser/Pages/HtmlLoader.cs | 1 + SafeExamBrowser.Browser/Pages/LoadError.html | 1 + SafeExamBrowser.I18n.Contracts/TextKey.cs | 1 + SafeExamBrowser.I18n/Data/de.xml | 3 +++ SafeExamBrowser.I18n/Data/en.xml | 3 +++ 5 files changed, 9 insertions(+) diff --git a/SafeExamBrowser.Browser/Pages/HtmlLoader.cs b/SafeExamBrowser.Browser/Pages/HtmlLoader.cs index 569ab635..eb1b361f 100644 --- a/SafeExamBrowser.Browser/Pages/HtmlLoader.cs +++ b/SafeExamBrowser.Browser/Pages/HtmlLoader.cs @@ -66,6 +66,7 @@ namespace SafeExamBrowser.Browser.Pages var html = reader.ReadToEnd(); html = html.Replace("%%MESSAGE%%", text.Get(TextKey.Browser_LoadErrorPageMessage)); + html = html.Replace("%%RETRY_BUTTON%%", text.Get(TextKey.Browser_LoadErrorPageButton)); html = html.Replace("%%TITLE%%", text.Get(TextKey.Browser_LoadErrorPageTitle)); return html; diff --git a/SafeExamBrowser.Browser/Pages/LoadError.html b/SafeExamBrowser.Browser/Pages/LoadError.html index 880682bc..f2ab90e0 100644 --- a/SafeExamBrowser.Browser/Pages/LoadError.html +++ b/SafeExamBrowser.Browser/Pages/LoadError.html @@ -9,6 +9,7 @@

%%TITLE%%

%%MESSAGE%%

%%STATUS%%

+ \ No newline at end of file diff --git a/SafeExamBrowser.I18n.Contracts/TextKey.cs b/SafeExamBrowser.I18n.Contracts/TextKey.cs index d356628f..37e0744b 100644 --- a/SafeExamBrowser.I18n.Contracts/TextKey.cs +++ b/SafeExamBrowser.I18n.Contracts/TextKey.cs @@ -21,6 +21,7 @@ namespace SafeExamBrowser.I18n.Contracts Browser_BlockedPageMessage, Browser_BlockedPageTitle, Browser_LoadErrorPageMessage, + Browser_LoadErrorPageButton, Browser_LoadErrorPageTitle, Browser_Name, Browser_Tooltip, diff --git a/SafeExamBrowser.I18n/Data/de.xml b/SafeExamBrowser.I18n/Data/de.xml index ac5affbc..e74a1195 100644 --- a/SafeExamBrowser.I18n/Data/de.xml +++ b/SafeExamBrowser.I18n/Data/de.xml @@ -21,6 +21,9 @@ Beim Laden der Seite "%%URL%%" ist folgender Fehler aufgetreten: + + Erneut versuchen + Seiten-Ladefehler diff --git a/SafeExamBrowser.I18n/Data/en.xml b/SafeExamBrowser.I18n/Data/en.xml index 82e3149b..a3d85b72 100644 --- a/SafeExamBrowser.I18n/Data/en.xml +++ b/SafeExamBrowser.I18n/Data/en.xml @@ -21,6 +21,9 @@ An error occurred while loading page "%%URL%%": + + Retry + Page Load Error