summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/en.po3
-rw-r--r--res/lang/en.binbin11317 -> 11344 bytes
-rw-r--r--res/lang/fi.binbin0 -> 6172 bytes
-rw-r--r--res/lang/ru.binbin0 -> 6172 bytes
-rw-r--r--src/ui/sidebarwidget.c23
5 files changed, 17 insertions, 9 deletions
diff --git a/po/en.po b/po/en.po
index a00eaee5..b3cd74a3 100644
--- a/po/en.po
+++ b/po/en.po
@@ -244,6 +244,9 @@ msgstr "Outline"
244msgid "sidebar.unread" 244msgid "sidebar.unread"
245msgstr "Unread" 245msgstr "Unread"
246 246
247msgid "sidebar.unread.many"
248msgstr "Unread"
249
247msgid "toolbar.outline" 250msgid "toolbar.outline"
248msgstr "Page Outline" 251msgstr "Page Outline"
249 252
diff --git a/res/lang/en.bin b/res/lang/en.bin
index becb67ff..366251c2 100644
--- a/res/lang/en.bin
+++ b/res/lang/en.bin
Binary files differ
diff --git a/res/lang/fi.bin b/res/lang/fi.bin
new file mode 100644
index 00000000..4e9bb058
--- /dev/null
+++ b/res/lang/fi.bin
Binary files differ
diff --git a/res/lang/ru.bin b/res/lang/ru.bin
new file mode 100644
index 00000000..4e9bb058
--- /dev/null
+++ b/res/lang/ru.bin
Binary files differ
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 8d025569..5ff585a5 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -492,10 +492,11 @@ static void updateMetrics_SidebarWidget_(iSidebarWidget *d) {
492 d->maxButtonLabelWidth = 0; 492 d->maxButtonLabelWidth = 0;
493 for (int i = 0; i < max_SidebarMode; i++) { 493 for (int i = 0; i < max_SidebarMode; i++) {
494 if (d->modeButtons[i]) { 494 if (d->modeButtons[i]) {
495 d->maxButtonLabelWidth = iMaxi( 495 d->maxButtonLabelWidth =
496 d->maxButtonLabelWidth, 496 iMaxi(d->maxButtonLabelWidth,
497 3 * gap_UI + 497 3 * gap_UI + measure_Text(font_LabelWidget(d->modeButtons[i]),
498 measure_Text(font_LabelWidget(d->modeButtons[i]), normalModeLabels_[i]).x); 498 translateCStr_Lang(normalModeLabels_[i]))
499 .x);
499 } 500 }
500 } 501 }
501 updateItemHeight_SidebarWidget_(d); 502 updateItemHeight_SidebarWidget_(d);
@@ -702,11 +703,15 @@ static void checkModeButtonLayout_SidebarWidget_(iSidebarWidget *d) {
702 if (!button) continue; 703 if (!button) continue;
703 setFlags_Widget(as_Widget(button), tight_WidgetFlag, isTight); 704 setFlags_Widget(as_Widget(button), tight_WidgetFlag, isTight);
704 if (i == feeds_SidebarMode && d->numUnreadEntries) { 705 if (i == feeds_SidebarMode && d->numUnreadEntries) {
705 updateText_LabelWidget(button, 706 updateText_LabelWidget(
706 collectNewFormat_String("%s " uiTextAction_ColorEscape "%zu%s", 707 button,
707 tightModeLabels_[i], 708 collectNewFormat_String("%s " uiTextAction_ColorEscape "%zu%s",
708 d->numUnreadEntries, 709 tightModeLabels_[i],
709 !isTight ? " ${sidebar.unread}" : "")); 710 d->numUnreadEntries,
711 !isTight
712 ? (d->numUnreadEntries == 1 ? " ${sidebar.unread}"
713 : " ${sidebar.unread.many}")
714 : ""));
710 } 715 }
711 else { 716 else {
712 updateTextCStr_LabelWidget(button, 717 updateTextCStr_LabelWidget(button,