diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 11:35:09 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 11:35:09 +0200 |
commit | ef2a6fbb01f462c905a874fb2c1f8457e998815a (patch) | |
tree | 1fe35cd95c5c56e34b11075d2dbb360965f18ce9 | |
parent | f26d86e9e0955d7082f252e6a7503d03efcdf96e (diff) |
Enable translation of error pages
-rw-r--r-- | po/en.po | 2 | ||||
-rw-r--r-- | res/lang/en.bin | bin | 11344 -> 11332 bytes | |||
-rw-r--r-- | src/ui/documentwidget.c | 3 |
3 files changed, 3 insertions, 2 deletions
@@ -452,7 +452,7 @@ msgstr "Unsubscribe" | |||
452 | 452 | ||
453 | #, c-format | 453 | #, c-format |
454 | msgid "error.unsupported.suggestsave" | 454 | msgid "error.unsupported.suggestsave" |
455 | msgstr "\n```\n%s\n```\nYou can save it as a file to your Downloads folder, though. Press %s or select \"%s\" from the menu." | 455 | msgstr "You can save it as a file to your Downloads folder, though. Press %s or select \"%s\" from the menu." |
456 | 456 | ||
457 | msgid "heading.pageinfo" | 457 | msgid "heading.pageinfo" |
458 | msgstr "PAGE INFORMATION" | 458 | msgstr "PAGE INFORMATION" |
diff --git a/res/lang/en.bin b/res/lang/en.bin index 366251c2..636f1223 100644 --- a/res/lang/en.bin +++ b/res/lang/en.bin | |||
Binary files differ | |||
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); |