Fix this unneeded Plural

This commit is contained in:
Lim Chee Aun 2024-08-16 11:12:00 +08:00
parent 89a2e7de43
commit bdb1dff278
2 changed files with 136 additions and 151 deletions

View file

@ -827,11 +827,7 @@ function Status({
<MenuItem onClick={replyStatus}>
<Icon icon="comment" />
<span>
<Plural
value={repliesCount}
_0="Reply"
other={shortenNumber(repliesCount)}
/>
{repliesCount > 0 ? shortenNumber(repliesCount) : t`Reply`}
</span>
</MenuItem>
<MenuConfirm
@ -898,11 +894,11 @@ function Status({
>
<Icon icon="rocket" />
<span>
<Plural
value={reblogsCount}
_0={reblogged ? t`Unboost` : t`Boost…`}
other={shortenNumber(reblogsCount)}
/>
{reblogsCount > 0
? shortenNumber(reblogsCount)
: reblogged
? t`Unboost`
: t`Boost…`}
</span>
</MenuConfirm>
<MenuItem
@ -911,11 +907,11 @@ function Status({
>
<Icon icon="heart" />
<span>
<Plural
value={favouritesCount}
_0={favourited ? t`Unlike` : t`Like`}
other={shortenNumber(favouritesCount)}
/>
{favouritesCount > 0
? shortenNumber(favouritesCount)
: favourited
? t`Unlike`
: t`Like`}
</span>
</MenuItem>
{supports('@mastodon/post-bookmark') && (

View file

@ -108,11 +108,11 @@ msgstr ""
#: src/components/compose.jsx:2444
#: src/components/media-alt-modal.jsx:45
#: src/components/media-modal.jsx:283
#: src/components/status.jsx:1629
#: src/components/status.jsx:1646
#: src/components/status.jsx:1770
#: src/components/status.jsx:2365
#: src/components/status.jsx:2368
#: src/components/status.jsx:1625
#: src/components/status.jsx:1642
#: src/components/status.jsx:1766
#: src/components/status.jsx:2361
#: src/components/status.jsx:2364
#: src/pages/account-statuses.jsx:528
#: src/pages/accounts.jsx:106
#: src/pages/hashtag.jsx:199
@ -181,7 +181,7 @@ msgid "Original"
msgstr ""
#: src/components/account-info.jsx:860
#: src/components/status.jsx:2156
#: src/components/status.jsx:2152
#: src/pages/catchup.jsx:71
#: src/pages/catchup.jsx:1412
#: src/pages/catchup.jsx:2023
@ -277,30 +277,30 @@ msgid "Add/Remove from Lists"
msgstr ""
#: src/components/account-info.jsx:1298
#: src/components/status.jsx:1072
#: src/components/status.jsx:1068
msgid "Link copied"
msgstr ""
#: src/components/account-info.jsx:1301
#: src/components/status.jsx:1075
#: src/components/status.jsx:1071
msgid "Unable to copy link"
msgstr ""
#: src/components/account-info.jsx:1307
#: src/components/shortcuts-settings.jsx:1056
#: src/components/status.jsx:1081
#: src/components/status.jsx:3103
#: src/components/status.jsx:1077
#: src/components/status.jsx:3099
msgid "Copy"
msgstr ""
#: src/components/account-info.jsx:1322
#: src/components/shortcuts-settings.jsx:1074
#: src/components/status.jsx:1097
#: src/components/status.jsx:1093
msgid "Sharing doesn't seem to work."
msgstr ""
#: src/components/account-info.jsx:1328
#: src/components/status.jsx:1103
#: src/components/status.jsx:1099
msgid "Share…"
msgstr ""
@ -417,9 +417,9 @@ msgstr ""
#: src/components/shortcuts-settings.jsx:227
#: src/components/shortcuts-settings.jsx:580
#: src/components/shortcuts-settings.jsx:780
#: src/components/status.jsx:2828
#: src/components/status.jsx:3067
#: src/components/status.jsx:3565
#: src/components/status.jsx:2824
#: src/components/status.jsx:3063
#: src/components/status.jsx:3561
#: src/pages/accounts.jsx:33
#: src/pages/catchup.jsx:1548
#: src/pages/filters.jsx:224
@ -600,7 +600,7 @@ msgid "Attachment #{i} failed"
msgstr ""
#: src/components/compose.jsx:1118
#: src/components/status.jsx:1955
#: src/components/status.jsx:1951
#: src/components/timeline.jsx:975
msgid "Content warning"
msgstr ""
@ -629,7 +629,7 @@ msgstr ""
#: src/components/compose.jsx:1179
#: src/components/status.jsx:96
#: src/components/status.jsx:1833
#: src/components/status.jsx:1829
msgid "Private mention"
msgstr ""
@ -659,9 +659,10 @@ msgstr ""
#: src/components/compose.jsx:1469
#: src/components/keyboard-shortcuts-help.jsx:143
#: src/components/status.jsx:1609
#: src/components/status.jsx:1610
#: src/components/status.jsx:2261
#: src/components/status.jsx:830
#: src/components/status.jsx:1605
#: src/components/status.jsx:1606
#: src/components/status.jsx:2257
msgid "Reply"
msgstr ""
@ -875,7 +876,7 @@ msgstr ""
#: src/components/drafts.jsx:125
#: src/components/list-add-edit.jsx:183
#: src/components/status.jsx:1244
#: src/components/status.jsx:1240
#: src/pages/filters.jsx:587
msgid "Delete…"
msgstr ""
@ -1075,10 +1076,10 @@ msgid "<0>l</0> or <1>f</1>"
msgstr ""
#: src/components/keyboard-shortcuts-help.jsx:164
#: src/components/status.jsx:842
#: src/components/status.jsx:2287
#: src/components/status.jsx:2319
#: src/components/status.jsx:2320
#: src/components/status.jsx:838
#: src/components/status.jsx:2283
#: src/components/status.jsx:2315
#: src/components/status.jsx:2316
msgid "Boost"
msgstr ""
@ -1087,9 +1088,9 @@ msgid "<0>Shift</0> + <1>b</1>"
msgstr ""
#: src/components/keyboard-shortcuts-help.jsx:172
#: src/components/status.jsx:927
#: src/components/status.jsx:2344
#: src/components/status.jsx:2345
#: src/components/status.jsx:923
#: src/components/status.jsx:2340
#: src/components/status.jsx:2341
msgid "Bookmark"
msgstr ""
@ -1152,15 +1153,15 @@ msgid "Media description"
msgstr ""
#: src/components/media-alt-modal.jsx:57
#: src/components/status.jsx:971
#: src/components/status.jsx:998
#: src/components/status.jsx:967
#: src/components/status.jsx:994
#: src/components/translation-block.jsx:195
msgid "Translate"
msgstr ""
#: src/components/media-alt-modal.jsx:68
#: src/components/status.jsx:985
#: src/components/status.jsx:1012
#: src/components/status.jsx:981
#: src/components/status.jsx:1008
msgid "Speak"
msgstr ""
@ -1197,9 +1198,9 @@ msgid "Filtered: {filterTitleStr}"
msgstr ""
#: src/components/media-post.jsx:133
#: src/components/status.jsx:3395
#: src/components/status.jsx:3491
#: src/components/status.jsx:3569
#: src/components/status.jsx:3391
#: src/components/status.jsx:3487
#: src/components/status.jsx:3565
#: src/components/timeline.jsx:964
#: src/pages/catchup.jsx:75
#: src/pages/catchup.jsx:1843
@ -1484,8 +1485,8 @@ msgid "[Unknown notification type: {type}]"
msgstr ""
#: src/components/notification.jsx:425
#: src/components/status.jsx:941
#: src/components/status.jsx:951
#: src/components/status.jsx:937
#: src/components/status.jsx:947
msgid "Boosted/Liked by…"
msgstr ""
@ -1562,17 +1563,17 @@ msgid "Ending"
msgstr ""
#. Relative time in seconds, as short as possible
#: src/components/relative-time.jsx:46
#: src/components/relative-time.jsx:54
msgid "{0}s"
msgstr ""
#. Relative time in minutes, as short as possible
#: src/components/relative-time.jsx:51
#: src/components/relative-time.jsx:59
msgid "{0}m"
msgstr ""
#. Relative time in hours, as short as possible
#: src/components/relative-time.jsx:56
#: src/components/relative-time.jsx:64
msgid "{0}h"
msgstr ""
@ -1796,7 +1797,7 @@ msgid "Move down"
msgstr ""
#: src/components/shortcuts-settings.jsx:376
#: src/components/status.jsx:1209
#: src/components/status.jsx:1205
#: src/pages/list.jsx:170
msgid "Edit"
msgstr ""
@ -2018,279 +2019,267 @@ msgstr ""
msgid "Bookmarked @{0}'s post"
msgstr ""
#: src/components/status.jsx:830
msgid "{repliesCount, plural, =0 {Reply} other {{0}}}"
msgstr ""
#: src/components/status.jsx:842
#: src/components/status.jsx:903
#: src/components/status.jsx:2287
#: src/components/status.jsx:2319
#: src/components/status.jsx:838
#: src/components/status.jsx:900
#: src/components/status.jsx:2283
#: src/components/status.jsx:2315
msgid "Unboost"
msgstr ""
#: src/components/status.jsx:858
#: src/components/status.jsx:2302
#: src/components/status.jsx:854
#: src/components/status.jsx:2298
msgid "Quote"
msgstr ""
#: src/components/status.jsx:866
#: src/components/status.jsx:2311
#: src/components/status.jsx:862
#: src/components/status.jsx:2307
msgid "Some media have no descriptions."
msgstr ""
#: src/components/status.jsx:873
#: src/components/status.jsx:869
msgid "Old post (<0>{0}</0>)"
msgstr ""
#: src/components/status.jsx:892
#: src/components/status.jsx:1334
#: src/components/status.jsx:888
#: src/components/status.jsx:1330
msgid "Unboosted @{0}'s post"
msgstr ""
#: src/components/status.jsx:893
#: src/components/status.jsx:1335
#: src/components/status.jsx:889
#: src/components/status.jsx:1331
msgid "Boosted @{0}'s post"
msgstr ""
#: src/components/status.jsx:901
msgid "{reblogsCount, plural, =0 {{0}} other {{1}}}"
msgstr ""
#: src/components/status.jsx:903
msgid "Boost…"
msgstr ""
#: src/components/status.jsx:914
msgid "{favouritesCount, plural, =0 {{0}} other {{1}}}"
msgstr ""
#: src/components/status.jsx:916
#: src/components/status.jsx:1619
#: src/components/status.jsx:2332
#: src/components/status.jsx:913
#: src/components/status.jsx:1615
#: src/components/status.jsx:2328
msgid "Unlike"
msgstr ""
#: src/components/status.jsx:916
#: src/components/status.jsx:1619
#: src/components/status.jsx:1620
#: src/components/status.jsx:2332
#: src/components/status.jsx:2333
#: src/components/status.jsx:914
#: src/components/status.jsx:1615
#: src/components/status.jsx:1616
#: src/components/status.jsx:2328
#: src/components/status.jsx:2329
msgid "Like"
msgstr ""
#: src/components/status.jsx:927
#: src/components/status.jsx:2344
#: src/components/status.jsx:923
#: src/components/status.jsx:2340
msgid "Unbookmark"
msgstr ""
#: src/components/status.jsx:1035
#: src/components/status.jsx:1031
msgid "View post by @{0}"
msgstr ""
#: src/components/status.jsx:1053
#: src/components/status.jsx:1049
msgid "Show Edit History"
msgstr ""
#: src/components/status.jsx:1056
#: src/components/status.jsx:1052
msgid "Edited: {editedDateText}"
msgstr ""
#: src/components/status.jsx:1116
#: src/components/status.jsx:3072
#: src/components/status.jsx:1112
#: src/components/status.jsx:3068
msgid "Embed post"
msgstr ""
#: src/components/status.jsx:1130
#: src/components/status.jsx:1126
msgid "Conversation unmuted"
msgstr ""
#: src/components/status.jsx:1130
#: src/components/status.jsx:1126
msgid "Conversation muted"
msgstr ""
#: src/components/status.jsx:1136
#: src/components/status.jsx:1132
msgid "Unable to unmute conversation"
msgstr ""
#: src/components/status.jsx:1137
#: src/components/status.jsx:1133
msgid "Unable to mute conversation"
msgstr ""
#: src/components/status.jsx:1146
#: src/components/status.jsx:1142
msgid "Unmute conversation"
msgstr ""
#: src/components/status.jsx:1153
#: src/components/status.jsx:1149
msgid "Mute conversation"
msgstr ""
#: src/components/status.jsx:1169
#: src/components/status.jsx:1165
msgid "Post unpinned from profile"
msgstr ""
#: src/components/status.jsx:1170
#: src/components/status.jsx:1166
msgid "Post pinned to profile"
msgstr ""
#: src/components/status.jsx:1175
#: src/components/status.jsx:1171
msgid "Unable to unpin post"
msgstr ""
#: src/components/status.jsx:1175
#: src/components/status.jsx:1171
msgid "Unable to pin post"
msgstr ""
#: src/components/status.jsx:1184
#: src/components/status.jsx:1180
msgid "Unpin from profile"
msgstr ""
#: src/components/status.jsx:1191
#: src/components/status.jsx:1187
msgid "Pin to profile"
msgstr ""
#: src/components/status.jsx:1220
#: src/components/status.jsx:1216
msgid "Delete this post?"
msgstr ""
#: src/components/status.jsx:1233
#: src/components/status.jsx:1229
msgid "Post deleted"
msgstr ""
#: src/components/status.jsx:1236
#: src/components/status.jsx:1232
msgid "Unable to delete post"
msgstr ""
#: src/components/status.jsx:1264
#: src/components/status.jsx:1260
msgid "Report post…"
msgstr ""
#: src/components/status.jsx:1620
#: src/components/status.jsx:1656
#: src/components/status.jsx:2333
#: src/components/status.jsx:1616
#: src/components/status.jsx:1652
#: src/components/status.jsx:2329
msgid "Liked"
msgstr ""
#: src/components/status.jsx:1653
#: src/components/status.jsx:2320
#: src/components/status.jsx:1649
#: src/components/status.jsx:2316
msgid "Boosted"
msgstr ""
#: src/components/status.jsx:1663
#: src/components/status.jsx:2345
#: src/components/status.jsx:1659
#: src/components/status.jsx:2341
msgid "Bookmarked"
msgstr ""
#: src/components/status.jsx:1667
#: src/components/status.jsx:1663
msgid "Pinned"
msgstr ""
#: src/components/status.jsx:1712
#: src/components/status.jsx:2164
#: src/components/status.jsx:1708
#: src/components/status.jsx:2160
msgid "Deleted"
msgstr ""
#: src/components/status.jsx:1753
#: src/components/status.jsx:1749
msgid "{repliesCount, plural, one {# reply} other {# replies}}"
msgstr ""
#: src/components/status.jsx:1842
#: src/components/status.jsx:1838
msgid "Thread{0}"
msgstr ""
#: src/components/status.jsx:1918
#: src/components/status.jsx:1980
#: src/components/status.jsx:2065
#: src/components/status.jsx:1914
#: src/components/status.jsx:1976
#: src/components/status.jsx:2061
msgid "Show less"
msgstr ""
#: src/components/status.jsx:1918
#: src/components/status.jsx:1980
#: src/components/status.jsx:1914
#: src/components/status.jsx:1976
msgid "Show content"
msgstr ""
#: src/components/status.jsx:2065
#: src/components/status.jsx:2061
msgid "Show media"
msgstr ""
#: src/components/status.jsx:2185
#: src/components/status.jsx:2181
msgid "Edited"
msgstr ""
#: src/components/status.jsx:2262
#: src/components/status.jsx:2258
msgid "Comments"
msgstr ""
#: src/components/status.jsx:2833
#: src/components/status.jsx:2829
msgid "Edit History"
msgstr ""
#: src/components/status.jsx:2837
#: src/components/status.jsx:2833
msgid "Failed to load history"
msgstr ""
#: src/components/status.jsx:2842
#: src/components/status.jsx:2838
msgid "Loading…"
msgstr ""
#: src/components/status.jsx:3077
#: src/components/status.jsx:3073
msgid "HTML Code"
msgstr ""
#: src/components/status.jsx:3094
#: src/components/status.jsx:3090
msgid "HTML code copied"
msgstr ""
#: src/components/status.jsx:3097
#: src/components/status.jsx:3093
msgid "Unable to copy HTML code"
msgstr ""
#: src/components/status.jsx:3109
#: src/components/status.jsx:3105
msgid "Media attachments:"
msgstr ""
#: src/components/status.jsx:3131
#: src/components/status.jsx:3127
msgid "Account Emojis:"
msgstr ""
#: src/components/status.jsx:3162
#: src/components/status.jsx:3207
#: src/components/status.jsx:3158
#: src/components/status.jsx:3203
msgid "static URL"
msgstr ""
#: src/components/status.jsx:3176
#: src/components/status.jsx:3172
msgid "Emojis:"
msgstr ""
#: src/components/status.jsx:3221
#: src/components/status.jsx:3217
msgid "Notes:"
msgstr ""
#: src/components/status.jsx:3225
#: src/components/status.jsx:3221
msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed."
msgstr ""
#: src/components/status.jsx:3231
#: src/components/status.jsx:3227
msgid "Polls are not interactive, becomes a list with vote counts."
msgstr ""
#: src/components/status.jsx:3236
#: src/components/status.jsx:3232
msgid "Media attachments can be images, videos, audios or any file types."
msgstr ""
#: src/components/status.jsx:3242
#: src/components/status.jsx:3238
msgid "Post could be edited or deleted later."
msgstr ""
#: src/components/status.jsx:3248
#: src/components/status.jsx:3244
msgid "Preview"
msgstr ""
#: src/components/status.jsx:3257
#: src/components/status.jsx:3253
msgid "Note: This preview is lightly styled."
msgstr ""
#: src/components/status.jsx:3499
#: src/components/status.jsx:3495
msgid "<0/> <1/> boosted"
msgstr ""