From 4f07a7f55f02002b7000fde611921bacf33deec6 Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Fri, 6 Sep 2024 09:09:51 +0800
Subject: [PATCH] Oops, missed this one

---
 src/components/timeline.jsx |  9 ++++++---
 src/locales/en.po           | 22 +++++++++++++++-------
 2 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx
index b01a4c30..2ad3957c 100644
--- a/src/components/timeline.jsx
+++ b/src/components/timeline.jsx
@@ -1,4 +1,4 @@
-import { t, Trans } from '@lingui/macro';
+import { plural, t, Trans } from '@lingui/macro';
 import { memo } from 'preact/compat';
 import {
   useCallback,
@@ -583,9 +583,12 @@ const TimelineItem = memo(
       let fItems = filteredItems(items, filterContext);
       let title = '';
       if (type === 'boosts') {
-        title = `${fItems.length} Boosts`;
+        title = plural(fItems.length, {
+          one: '# Boost',
+          other: '# Boosts',
+        });
       } else if (type === 'pinned') {
-        title = 'Pinned posts';
+        title = t`Pinned posts`;
       }
       const isCarousel = type === 'boosts' || type === 'pinned';
       if (isCarousel) {
diff --git a/src/locales/en.po b/src/locales/en.po
index a2114582..9db76a30 100644
--- a/src/locales/en.po
+++ b/src/locales/en.po
@@ -601,7 +601,7 @@ msgstr ""
 
 #: src/components/compose.jsx:1118
 #: src/components/status.jsx:1961
-#: src/components/timeline.jsx:979
+#: src/components/timeline.jsx:982
 msgid "Content warning"
 msgstr ""
 
@@ -844,13 +844,13 @@ msgstr ""
 
 #: src/components/compose.jsx:3454
 #: src/components/media-modal.jsx:387
-#: src/components/timeline.jsx:884
+#: src/components/timeline.jsx:887
 msgid "Previous"
 msgstr ""
 
 #: src/components/compose.jsx:3472
 #: src/components/media-modal.jsx:406
-#: src/components/timeline.jsx:901
+#: src/components/timeline.jsx:904
 msgid "Next"
 msgstr ""
 
@@ -1202,7 +1202,7 @@ msgstr ""
 #: src/components/status.jsx:3406
 #: src/components/status.jsx:3502
 #: src/components/status.jsx:3580
-#: src/components/timeline.jsx:968
+#: src/components/timeline.jsx:971
 #: src/pages/catchup.jsx:75
 #: src/pages/catchup.jsx:1859
 msgid "Filtered"
@@ -2301,13 +2301,21 @@ msgstr ""
 msgid "Try again"
 msgstr ""
 
-#: src/components/timeline.jsx:941
-#: src/components/timeline.jsx:948
+#: src/components/timeline.jsx:586
+msgid "{0, plural, one {# Boost} other {# Boosts}}"
+msgstr "{0, plural, one {# Boost} other {# Boosts}}"
+
+#: src/components/timeline.jsx:591
+msgid "Pinned posts"
+msgstr "Pinned posts"
+
+#: src/components/timeline.jsx:944
+#: src/components/timeline.jsx:951
 #: src/pages/catchup.jsx:1876
 msgid "Thread"
 msgstr ""
 
-#: src/components/timeline.jsx:963
+#: src/components/timeline.jsx:966
 msgid "<0>Filtered</0>: <1>{0}</1>"
 msgstr ""