summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 11:35:09 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 11:35:09 +0200
commitef2a6fbb01f462c905a874fb2c1f8457e998815a (patch)
tree1fe35cd95c5c56e34b11075d2dbb360965f18ce9 /src
parentf26d86e9e0955d7082f252e6a7503d03efcdf96e (diff)
Enable translation of error pages
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 6ce53e44..139f622c 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -823,9 +823,9 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode
823 case unsupportedMimeType_GmStatusCode: { 823 case unsupportedMimeType_GmStatusCode: {
824 iString *key = collectNew_String(); 824 iString *key = collectNew_String();
825 toString_Sym(SDLK_s, KMOD_PRIMARY, key); 825 toString_Sym(SDLK_s, KMOD_PRIMARY, key);
826 appendFormat_String(src, "\n```\n%s\n```\n", cstr_String(meta));
826 appendFormat_String(src, 827 appendFormat_String(src,
827 cstr_Lang("error.unsupported.suggestsave"), 828 cstr_Lang("error.unsupported.suggestsave"),
828 cstr_String(meta),
829 cstr_String(key), 829 cstr_String(key),
830 saveToDownloads_Label); 830 saveToDownloads_Label);
831 break; 831 break;
@@ -840,6 +840,7 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode
840 } 840 }
841 setBanner_GmDocument(d->doc, useBanner ? bannerType_DocumentWidget_(d) : none_GmDocumentBanner); 841 setBanner_GmDocument(d->doc, useBanner ? bannerType_DocumentWidget_(d) : none_GmDocumentBanner);
842 setFormat_GmDocument(d->doc, gemini_GmDocumentFormat); 842 setFormat_GmDocument(d->doc, gemini_GmDocumentFormat);
843 translate_Lang(src);
843 setSource_DocumentWidget(d, src); 844 setSource_DocumentWidget(d, src);
844 updateTheme_DocumentWidget_(d); 845 updateTheme_DocumentWidget_(d);
845 init_Anim(&d->scrollY, 0); 846 init_Anim(&d->scrollY, 0);