summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-23 14:01:25 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-23 14:01:25 +0300
commit7df7930c5514a74ebe5ee84682bfca8aa1034319 (patch)
treeb2dc020b5cc70969c30562ded9c6f90168da40d3
parentec5b815078eea53751a0b732268bc92e28a50ed5 (diff)
Mobile: Footer button fixes; missing strings
-rw-r--r--CMakeLists.txt2
-rw-r--r--po/en.po3
-rw-r--r--res/lang/de.binbin27749 -> 27781 bytes
-rw-r--r--res/lang/en.binbin25273 -> 25305 bytes
-rw-r--r--res/lang/eo.binbin24050 -> 24082 bytes
-rw-r--r--res/lang/es.binbin28133 -> 28165 bytes
-rw-r--r--res/lang/es_MX.binbin26101 -> 26133 bytes
-rw-r--r--res/lang/fi.binbin28047 -> 28079 bytes
-rw-r--r--res/lang/fr.binbin28955 -> 28987 bytes
-rw-r--r--res/lang/gl.binbin27411 -> 27443 bytes
-rw-r--r--res/lang/ia.binbin27074 -> 27106 bytes
-rw-r--r--res/lang/ie.binbin27279 -> 27311 bytes
-rw-r--r--res/lang/isv.binbin23977 -> 24009 bytes
-rw-r--r--res/lang/pl.binbin28350 -> 28382 bytes
-rw-r--r--res/lang/ru.binbin40722 -> 40754 bytes
-rw-r--r--res/lang/sk.binbin24310 -> 24342 bytes
-rw-r--r--res/lang/sr.binbin40594 -> 40626 bytes
-rw-r--r--res/lang/tok.binbin25524 -> 25556 bytes
-rw-r--r--res/lang/zh_Hans.binbin24026 -> 24058 bytes
-rw-r--r--res/lang/zh_Hant.binbin24167 -> 24199 bytes
-rw-r--r--src/ui/documentwidget.c19
21 files changed, 16 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 409ac2f8..dd8b2eca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ set (COPYRIGHT_YEAR 2021)
26if (IOS) 26if (IOS)
27 set (PROJECT_VERSION 1.7) 27 set (PROJECT_VERSION 1.7)
28 set (IOS_BUNDLE_VERSION 23) 28 set (IOS_BUNDLE_VERSION 23)
29 set (IOS_BUILD_DATE "2021-09-17") 29 set (IOS_BUILD_DATE "2021-10-23")
30endif () 30endif ()
31 31
32# Default that depend on environment. 32# Default that depend on environment.
diff --git a/po/en.po b/po/en.po
index daa90212..a6f2ee5a 100644
--- a/po/en.po
+++ b/po/en.po
@@ -267,6 +267,9 @@ msgstr "Help"
267msgid "menu.releasenotes" 267msgid "menu.releasenotes"
268msgstr "Release Notes" 268msgstr "Release Notes"
269 269
270msgid "menu.website"
271msgstr "Project Website…"
272
270msgid "menu.quit" 273msgid "menu.quit"
271msgstr "Quit Lagrange" 274msgstr "Quit Lagrange"
272 275
diff --git a/res/lang/de.bin b/res/lang/de.bin
index 6ee5d613..260f2e5a 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 ec84c294..e5d67a62 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 d90d530d..5b84e2b8 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 c7789568..ef1aed2e 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 104ac165..b5af72d1 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 ad15d58d..f4eddb4f 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 7fd5ecc1..8156fe47 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 ede1891e..48ca1bd7 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 a1e7994e..1f749638 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 cd2ba268..45d8c737 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 6b6884c5..912bf6e6 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 2808106a..2bb0c45e 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 cf51f0c1..df0fea58 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 18cf1190..0ad31c0b 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 d0d4eac5..7be9ab33 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 e69c6164..4a213691 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 0c2a98ad..5abdc3ee 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 a776b3e7..2295148e 100644
--- a/res/lang/zh_Hant.bin
+++ b/res/lang/zh_Hant.bin
Binary files differ
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index a762cb01..aceae0fa 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -526,7 +526,8 @@ static iRect documentBounds_DocumentWidget_(const iDocumentWidget *d) {
526 rect.size.y -= margin; 526 rect.size.y -= margin;
527 } 527 }
528 if (d->flags & centerVertically_DocumentWidgetFlag) { 528 if (d->flags & centerVertically_DocumentWidgetFlag) {
529 const iInt2 docSize = size_GmDocument(d->doc); 529 const iInt2 docSize = addY_I2(size_GmDocument(d->doc),
530 iMax(height_Widget(d->footerButtons), height_Widget(d->phoneToolbar)));
530 if (docSize.y < rect.size.y) { 531 if (docSize.y < rect.size.y) {
531 /* Center vertically if short. There is one empty paragraph line's worth of margin 532 /* Center vertically if short. There is one empty paragraph line's worth of margin
532 between the banner and the page contents. */ 533 between the banner and the page contents. */
@@ -608,11 +609,13 @@ static int scrollMax_DocumentWidget_(const iDocumentWidget *d) {
608 const iWidget *w = constAs_Widget(d); 609 const iWidget *w = constAs_Widget(d);
609 int sm = size_GmDocument(d->doc).y - height_Rect(bounds_Widget(w)) + 610 int sm = size_GmDocument(d->doc).y - height_Rect(bounds_Widget(w)) +
610 (hasSiteBanner_GmDocument(d->doc) ? 1 : 2) * d->pageMargin * gap_UI + 611 (hasSiteBanner_GmDocument(d->doc) ? 1 : 2) * d->pageMargin * gap_UI +
611 height_Widget(d->footerButtons); 612 iMax(height_Widget(d->phoneToolbar), height_Widget(d->footerButtons));
612 if (d->phoneToolbar) { 613// sm += height_Widget(d->phoneToolbar);
613 sm += size_Root(w->root).y - 614// if (d->phoneToolbar) {
614 top_Rect(boundsWithoutVisualOffset_Widget(d->phoneToolbar)); 615// sm += size_Root(w->root).y -
615 } 616// top_Rect(boundsWithoutVisualOffset_Widget(d->phoneToolbar));
617// sm += height_Widget(d->phoneToolbar);
618// }
616 return sm; 619 return sm;
617} 620}
618 621
@@ -878,10 +881,12 @@ static void updateVisible_DocumentWidget_(iDocumentWidget *d) {
878 else { 881 else {
879 d->footerButtons->animOffsetRef = &d->scrollY.pos; 882 d->footerButtons->animOffsetRef = &d->scrollY.pos;
880 d->footerButtons->rect.pos.y = size_GmDocument(d->doc).y + 2 * gap_UI * d->pageMargin; 883 d->footerButtons->rect.pos.y = size_GmDocument(d->doc).y + 2 * gap_UI * d->pageMargin;
884// + height_Widget(d->phoneToolbar);
881 } 885 }
882 } 886 }
883 setRange_ScrollWidget(d->scroll, (iRangei){ 0, scrollMax }); 887 setRange_ScrollWidget(d->scroll, (iRangei){ 0, scrollMax });
884 const int docSize = size_GmDocument(d->doc).y; 888 const int docSize = size_GmDocument(d->doc).y + iMax(height_Widget(d->phoneToolbar),
889 height_Widget(d->footerButtons));
885 setThumb_ScrollWidget(d->scroll, 890 setThumb_ScrollWidget(d->scroll,
886 pos_SmoothScroll(&d->scrollY), 891 pos_SmoothScroll(&d->scrollY),
887 docSize > 0 ? height_Rect(bounds) * size_Range(&visRange) / docSize : 0); 892 docSize > 0 ? height_Rect(bounds) * size_Range(&visRange) / docSize : 0);