summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/en.po3
-rw-r--r--res/lang/de.binbin28320 -> 28359 bytes
-rw-r--r--res/lang/en.binbin25819 -> 25858 bytes
-rw-r--r--res/lang/eo.binbin24596 -> 24635 bytes
-rw-r--r--res/lang/es.binbin28704 -> 28743 bytes
-rw-r--r--res/lang/es_MX.binbin26645 -> 26684 bytes
-rw-r--r--res/lang/fi.binbin28618 -> 28657 bytes
-rw-r--r--res/lang/fr.binbin29526 -> 29565 bytes
-rw-r--r--res/lang/gl.binbin27982 -> 28021 bytes
-rw-r--r--res/lang/ia.binbin27645 -> 27684 bytes
-rw-r--r--res/lang/ie.binbin27850 -> 27889 bytes
-rw-r--r--res/lang/isv.binbin24523 -> 24562 bytes
-rw-r--r--res/lang/pl.binbin28921 -> 28960 bytes
-rw-r--r--res/lang/ru.binbin41293 -> 41332 bytes
-rw-r--r--res/lang/sk.binbin24856 -> 24895 bytes
-rw-r--r--res/lang/sr.binbin41165 -> 41204 bytes
-rw-r--r--res/lang/tok.binbin26095 -> 26134 bytes
-rw-r--r--res/lang/zh_Hans.binbin24597 -> 24636 bytes
-rw-r--r--res/lang/zh_Hant.binbin24738 -> 24777 bytes
-rw-r--r--src/app.c6
-rw-r--r--src/prefs.c9
-rw-r--r--src/prefs.h1
-rw-r--r--src/ui/documentwidget.c6
-rw-r--r--src/ui/util.c3
24 files changed, 21 insertions, 7 deletions
diff --git a/po/en.po b/po/en.po
index 6d5c4d0e..a59d9b8c 100644
--- a/po/en.po
+++ b/po/en.po
@@ -1521,6 +1521,9 @@ msgstr "FG Color"
1521msgid "prefs.gemtext.ansi.fontstyle" 1521msgid "prefs.gemtext.ansi.fontstyle"
1522msgstr "Font Style" 1522msgstr "Font Style"
1523 1523
1524msgid "prefs.font.warnmissing"
1525msgstr "Glyph warnings:"
1526
1524msgid "prefs.font.smooth" 1527msgid "prefs.font.smooth"
1525msgstr "Smoothing:" 1528msgstr "Smoothing:"
1526 1529
diff --git a/res/lang/de.bin b/res/lang/de.bin
index 3da72571..e8d437f4 100644
--- a/res/lang/de.bin
+++ b/res/lang/de.bin
Binary files differ
diff --git a/res/lang/en.bin b/res/lang/en.bin
index 616176fc..8e5a4ea3 100644
--- a/res/lang/en.bin
+++ b/res/lang/en.bin
Binary files differ
diff --git a/res/lang/eo.bin b/res/lang/eo.bin
index 63ddfe70..73cc4845 100644
--- a/res/lang/eo.bin
+++ b/res/lang/eo.bin
Binary files differ
diff --git a/res/lang/es.bin b/res/lang/es.bin
index e82f0f9f..d6369196 100644
--- a/res/lang/es.bin
+++ b/res/lang/es.bin
Binary files differ
diff --git a/res/lang/es_MX.bin b/res/lang/es_MX.bin
index 740c65f9..6e8f0bcc 100644
--- a/res/lang/es_MX.bin
+++ b/res/lang/es_MX.bin
Binary files differ
diff --git a/res/lang/fi.bin b/res/lang/fi.bin
index 067e0e1e..988531d8 100644
--- a/res/lang/fi.bin
+++ b/res/lang/fi.bin
Binary files differ
diff --git a/res/lang/fr.bin b/res/lang/fr.bin
index caffc977..ef9f263c 100644
--- a/res/lang/fr.bin
+++ b/res/lang/fr.bin
Binary files differ
diff --git a/res/lang/gl.bin b/res/lang/gl.bin
index 086b8a74..8d97bbc2 100644
--- a/res/lang/gl.bin
+++ b/res/lang/gl.bin
Binary files differ
diff --git a/res/lang/ia.bin b/res/lang/ia.bin
index 52011a92..146f742c 100644
--- a/res/lang/ia.bin
+++ b/res/lang/ia.bin
Binary files differ
diff --git a/res/lang/ie.bin b/res/lang/ie.bin
index a3a65cb0..825b7103 100644
--- a/res/lang/ie.bin
+++ b/res/lang/ie.bin
Binary files differ
diff --git a/res/lang/isv.bin b/res/lang/isv.bin
index 7f91e46b..c781078f 100644
--- a/res/lang/isv.bin
+++ b/res/lang/isv.bin
Binary files differ
diff --git a/res/lang/pl.bin b/res/lang/pl.bin
index e7cb87ff..dc521daf 100644
--- a/res/lang/pl.bin
+++ b/res/lang/pl.bin
Binary files differ
diff --git a/res/lang/ru.bin b/res/lang/ru.bin
index 1c08d3d3..be45f0b5 100644
--- a/res/lang/ru.bin
+++ b/res/lang/ru.bin
Binary files differ
diff --git a/res/lang/sk.bin b/res/lang/sk.bin
index c14255a3..30a97295 100644
--- a/res/lang/sk.bin
+++ b/res/lang/sk.bin
Binary files differ
diff --git a/res/lang/sr.bin b/res/lang/sr.bin
index 84e14333..2431c68a 100644
--- a/res/lang/sr.bin
+++ b/res/lang/sr.bin
Binary files differ
diff --git a/res/lang/tok.bin b/res/lang/tok.bin
index 759459c1..aa4c699e 100644
--- a/res/lang/tok.bin
+++ b/res/lang/tok.bin
Binary files differ
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin
index d21d7cc8..3c4dcaae 100644
--- a/res/lang/zh_Hans.bin
+++ b/res/lang/zh_Hans.bin
Binary files differ
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin
index 0b31c2a9..18307d51 100644
--- a/res/lang/zh_Hant.bin
+++ b/res/lang/zh_Hant.bin
Binary files differ
diff --git a/src/app.c b/src/app.c
index 3f5da587..4d125ed8 100644
--- a/src/app.c
+++ b/src/app.c
@@ -255,6 +255,7 @@ static iString *serializePrefs_App_(const iApp *d) {
255 { "prefs.hoverlink", &d->prefs.hoverLink }, 255 { "prefs.hoverlink", &d->prefs.hoverLink },
256 { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom }, 256 { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom },
257 { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages }, 257 { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages },
258 { "prefs.font.warnmissing", &d->prefs.warnAboutMissingGlyphs },
258 }; 259 };
259 iForIndices(i, boolPrefs) { 260 iForIndices(i, boolPrefs) {
260 appendFormat_String(str, "%s.changed arg:%d\n", boolPrefs[i].id, *boolPrefs[i].value); 261 appendFormat_String(str, "%s.changed arg:%d\n", boolPrefs[i].id, *boolPrefs[i].value);
@@ -2493,6 +2494,10 @@ iBool handleCommand_App(const char *cmd) {
2493 d->prefs.addBookmarksToBottom = arg_Command(cmd) != 0; 2494 d->prefs.addBookmarksToBottom = arg_Command(cmd) != 0;
2494 return iTrue; 2495 return iTrue;
2495 } 2496 }
2497 else if (equal_Command(cmd, "prefs.font.warnmissing.changed")) {
2498 d->prefs.warnAboutMissingGlyphs = arg_Command(cmd) != 0;
2499 return iTrue;
2500 }
2496 else if (equal_Command(cmd, "prefs.animate.changed")) { 2501 else if (equal_Command(cmd, "prefs.animate.changed")) {
2497 d->prefs.uiAnimations = arg_Command(cmd) != 0; 2502 d->prefs.uiAnimations = arg_Command(cmd) != 0;
2498 return iTrue; 2503 return iTrue;
@@ -2802,6 +2807,7 @@ iBool handleCommand_App(const char *cmd) {
2802 setToggle_Widget(findChild_Widget(dlg, "prefs.imageloadscroll"), d->prefs.loadImageInsteadOfScrolling); 2807 setToggle_Widget(findChild_Widget(dlg, "prefs.imageloadscroll"), d->prefs.loadImageInsteadOfScrolling);
2803 setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll); 2808 setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll);
2804 setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom); 2809 setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom);
2810 setToggle_Widget(findChild_Widget(dlg, "prefs.font.warnmissing"), d->prefs.warnAboutMissingGlyphs);
2805 setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); 2811 setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages);
2806 setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); 2812 setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme);
2807 setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); 2813 setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame);
diff --git a/src/prefs.c b/src/prefs.c
index 14a557c8..956a75ae 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -49,10 +49,11 @@ void init_Prefs(iPrefs *d) {
49 d->smoothScrollSpeed[keyboard_ScrollType] = 13; 49 d->smoothScrollSpeed[keyboard_ScrollType] = 13;
50 d->smoothScrollSpeed[mouse_ScrollType] = 13; 50 d->smoothScrollSpeed[mouse_ScrollType] = 13;
51 d->loadImageInsteadOfScrolling = iFalse; 51 d->loadImageInsteadOfScrolling = iFalse;
52 d->collapsePreOnLoad = iFalse; 52 d->collapsePreOnLoad = iFalse;
53 d->openArchiveIndexPages = iTrue; 53 d->openArchiveIndexPages = iTrue;
54 d->addBookmarksToBottom = iTrue; 54 d->addBookmarksToBottom = iTrue;
55 d->decodeUserVisibleURLs = iTrue; 55 d->warnAboutMissingGlyphs = iTrue;
56 d->decodeUserVisibleURLs = iTrue;
56 d->maxCacheSize = 10; 57 d->maxCacheSize = 10;
57 d->maxMemorySize = 200; 58 d->maxMemorySize = 200;
58 setCStr_String(&d->strings[uiFont_PrefsString], "default"); 59 setCStr_String(&d->strings[uiFont_PrefsString], "default");
diff --git a/src/prefs.h b/src/prefs.h
index dc0914a6..d7712c9d 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -82,6 +82,7 @@ struct Impl_Prefs {
82 iBool collapsePreOnLoad; 82 iBool collapsePreOnLoad;
83 iBool openArchiveIndexPages; 83 iBool openArchiveIndexPages;
84 iBool addBookmarksToBottom; 84 iBool addBookmarksToBottom;
85 iBool warnAboutMissingGlyphs;
85 /* Network */ 86 /* Network */
86 iBool decodeUserVisibleURLs; 87 iBool decodeUserVisibleURLs;
87 int maxCacheSize; /* MB */ 88 int maxCacheSize; /* MB */
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 4a3ffe51..fa30aadf 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1802,8 +1802,10 @@ static void cacheDocumentGlyphs_DocumentWidget_(const iDocumentWidget *d) {
1802} 1802}
1803 1803
1804static void addBannerWarnings_DocumentWidget_(iDocumentWidget *d) { 1804static void addBannerWarnings_DocumentWidget_(iDocumentWidget *d) {
1805 const int dismissed = value_SiteSpec(collectNewRange_String(urlRoot_String(d->mod.url)), 1805 const int dismissed =
1806 dismissWarnings_SiteSpecKey); 1806 value_SiteSpec(collectNewRange_String(urlRoot_String(d->mod.url)),
1807 dismissWarnings_SiteSpecKey) |
1808 (!prefs_App()->warnAboutMissingGlyphs ? missingGlyphs_GmDocumentWarning : 0);
1807 const int warnings = warnings_GmDocument(d->doc) & ~dismissed; 1809 const int warnings = warnings_GmDocument(d->doc) & ~dismissed;
1808 if (warnings & missingGlyphs_GmDocumentWarning) { 1810 if (warnings & missingGlyphs_GmDocumentWarning) {
1809 add_Banner(d->banner, warning_BannerType, missingGlyphs_GmStatusCode, NULL); 1811 add_Banner(d->banner, warning_BannerType, missingGlyphs_GmStatusCode, NULL);
diff --git a/src/ui/util.c b/src/ui/util.c
index 11a304d1..5e28bb33 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -2629,7 +2629,8 @@ iWidget *makePreferences_Widget(void) {
2629 updateSize_LabelWidget((iLabelWidget *) tog); 2629 updateSize_LabelWidget((iLabelWidget *) tog);
2630 } 2630 }
2631 addChildFlags_Widget(values, iClob(ansi), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); 2631 addChildFlags_Widget(values, iClob(ansi), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag);
2632 addDialogToggle_(headings, values, "${prefs.font.smooth}", "prefs.font.smooth"); 2632 addDialogToggle_(headings, values, "${prefs.font.warnmissing}", "prefs.font.warnmissing");
2633 addDialogToggle_(headings, values, "${prefs.font.smooth}", "prefs.font.smooth");
2633 addDialogPadding_(headings, values); 2634 addDialogPadding_(headings, values);
2634 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.font.ui}"))); 2635 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.font.ui}")));
2635 addFontButtons_(values, "ui"); 2636 addFontButtons_(values, "ui");