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 --- po/en.po | 3 +++ res/lang/de.bin | Bin 20358 -> 20410 bytes res/lang/en.bin | Bin 19106 -> 19158 bytes res/lang/es.bin | Bin 21074 -> 21126 bytes res/lang/fi.bin | Bin 21048 -> 21100 bytes res/lang/fr.bin | Bin 21564 -> 21616 bytes res/lang/ia.bin | Bin 21265 -> 21317 bytes res/lang/ie.bin | Bin 20436 -> 20488 bytes res/lang/pl.bin | Bin 22069 -> 22121 bytes res/lang/ru.bin | Bin 32147 -> 32199 bytes res/lang/sr.bin | Bin 30726 -> 30778 bytes res/lang/tok.bin | Bin 19470 -> 19522 bytes res/lang/zh_Hans.bin | Bin 18229 -> 18281 bytes res/lang/zh_Hant.bin | Bin 18303 -> 18355 bytes src/ui/documentwidget.c | 4 +++- 15 files changed, 6 insertions(+), 1 deletion(-) diff --git a/po/en.po b/po/en.po index a89221d0..ef236ba8 100644 --- a/po/en.po +++ b/po/en.po @@ -597,6 +597,9 @@ msgstr "Unsubscribe" msgid "error.unsupported.suggestsave" msgstr "You can save it as a file to your Downloads folder: press %s or select \"%s\" from the menu." +msgid "error.server.msg" +msgstr "Server responded with the message:" + msgid "heading.pageinfo" msgstr "PAGE INFORMATION" diff --git a/res/lang/de.bin b/res/lang/de.bin index 4c2c53ea..e6b0de88 100644 Binary files a/res/lang/de.bin and b/res/lang/de.bin differ diff --git a/res/lang/en.bin b/res/lang/en.bin index d6dfc691..dfc4039c 100644 Binary files a/res/lang/en.bin and b/res/lang/en.bin differ diff --git a/res/lang/es.bin b/res/lang/es.bin index 4a9b3cb5..e8543648 100644 Binary files a/res/lang/es.bin and b/res/lang/es.bin differ diff --git a/res/lang/fi.bin b/res/lang/fi.bin index da1eeeb7..478c20ff 100644 Binary files a/res/lang/fi.bin and b/res/lang/fi.bin differ diff --git a/res/lang/fr.bin b/res/lang/fr.bin index 80ca94cf..dbad1af7 100644 Binary files a/res/lang/fr.bin and b/res/lang/fr.bin differ diff --git a/res/lang/ia.bin b/res/lang/ia.bin index 51be909b..3c72164f 100644 Binary files a/res/lang/ia.bin and b/res/lang/ia.bin differ diff --git a/res/lang/ie.bin b/res/lang/ie.bin index 1a2223c8..b5bbe210 100644 Binary files a/res/lang/ie.bin and b/res/lang/ie.bin differ diff --git a/res/lang/pl.bin b/res/lang/pl.bin index 52ff43ae..ea38c272 100644 Binary files a/res/lang/pl.bin and b/res/lang/pl.bin differ diff --git a/res/lang/ru.bin b/res/lang/ru.bin index 4c015ac3..73db27d2 100644 Binary files a/res/lang/ru.bin and b/res/lang/ru.bin differ diff --git a/res/lang/sr.bin b/res/lang/sr.bin index 4f06505d..1333959d 100644 Binary files a/res/lang/sr.bin and b/res/lang/sr.bin differ diff --git a/res/lang/tok.bin b/res/lang/tok.bin index f15c88fa..b3d94d03 100644 Binary files a/res/lang/tok.bin and b/res/lang/tok.bin differ diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index f4b7ef15..9a470421 100644 Binary files a/res/lang/zh_Hans.bin and b/res/lang/zh_Hans.bin differ diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin index 154d991d..27f84c64 100644 Binary files a/res/lang/zh_Hant.bin and b/res/lang/zh_Hant.bin differ 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