From 548034e167bd94d21ef9bcc2e6d2d8cbfaeb3d06 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 20 May 2021 21:26:39 +0300 Subject: DocumentWidget: Updated error page localization Added a new language string and blockquote styling for displaying the server's error message. IssueID #280 --- src/ui/documentwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 9b29c14f..452e5508 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1058,7 +1058,9 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode cstr_String(meta)); break; default: - appendFormat_String(src, "\n\nServer returned error: %s", cstr_String(meta)); + if (!isEmpty_String(meta)) { + appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); + } break; } } -- cgit v1.2.3