mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Add "30 days" for profile mute
This commit is contained in:
parent
dc2d441119
commit
75ceff12c0
2 changed files with 115 additions and 113 deletions
|
@ -51,6 +51,7 @@ const MUTE_DURATIONS = [
|
|||
60 * 60 * 24, // 1 day
|
||||
60 * 60 * 24 * 3, // 3 days
|
||||
60 * 60 * 24 * 7, // 1 week
|
||||
60 * 60 * 24 * 30, // 30 days
|
||||
0, // forever
|
||||
];
|
||||
const MUTE_DURATIONS_LABELS = {
|
||||
|
@ -62,6 +63,7 @@ const MUTE_DURATIONS_LABELS = {
|
|||
86_400: i18nDuration(1, 'day'),
|
||||
259_200: i18nDuration(3, 'day'),
|
||||
604_800: i18nDuration(1, 'week'),
|
||||
2592_000: i18nDuration(30, 'day'),
|
||||
};
|
||||
|
||||
const LIMIT = 80;
|
||||
|
|
226
src/locales/en.po
generated
226
src/locales/en.po
generated
|
@ -26,12 +26,12 @@ msgid "Last posted: {0}"
|
|||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:161
|
||||
#: src/components/account-info.jsx:634
|
||||
#: src/components/account-info.jsx:636
|
||||
msgid "Automated"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:168
|
||||
#: src/components/account-info.jsx:639
|
||||
#: src/components/account-info.jsx:641
|
||||
#: src/components/status.jsx:498
|
||||
msgid "Group"
|
||||
msgstr ""
|
||||
|
@ -41,17 +41,17 @@ msgid "Mutual"
|
|||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:182
|
||||
#: src/components/account-info.jsx:1680
|
||||
#: src/components/account-info.jsx:1682
|
||||
msgid "Requested"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:186
|
||||
#: src/components/account-info.jsx:1671
|
||||
#: src/components/account-info.jsx:1673
|
||||
msgid "Following"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:190
|
||||
#: src/components/account-info.jsx:1062
|
||||
#: src/components/account-info.jsx:1064
|
||||
msgid "Follows you"
|
||||
msgstr ""
|
||||
|
||||
|
@ -60,50 +60,50 @@ msgid "{followersCount, plural, one {# follower} other {# followers}}"
|
|||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:207
|
||||
#: src/components/account-info.jsx:680
|
||||
#: src/components/account-info.jsx:682
|
||||
msgid "Verified"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-block.jsx:222
|
||||
#: src/components/account-info.jsx:780
|
||||
#: src/components/account-info.jsx:782
|
||||
msgid "Joined <0>{0}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:57
|
||||
#: src/components/account-info.jsx:58
|
||||
msgid "Forever"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:377
|
||||
#: src/components/account-info.jsx:379
|
||||
msgid "Unable to load account."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:385
|
||||
#: src/components/account-info.jsx:387
|
||||
msgid "Go to account page"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:413
|
||||
#: src/components/account-info.jsx:702
|
||||
#: src/components/account-info.jsx:732
|
||||
#: src/components/account-info.jsx:415
|
||||
#: src/components/account-info.jsx:704
|
||||
#: src/components/account-info.jsx:734
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. js-lingui-explicit-id
|
||||
#: src/components/account-info.jsx:416
|
||||
#: src/components/account-info.jsx:742
|
||||
#: src/components/account-info.jsx:759
|
||||
#: src/components/account-info.jsx:418
|
||||
#: src/components/account-info.jsx:744
|
||||
#: src/components/account-info.jsx:761
|
||||
msgid "following.stats"
|
||||
msgstr "Following"
|
||||
|
||||
#: src/components/account-info.jsx:419
|
||||
#: src/components/account-info.jsx:776
|
||||
#: src/components/account-info.jsx:421
|
||||
#: src/components/account-info.jsx:778
|
||||
#: src/pages/account-statuses.jsx:484
|
||||
#: src/pages/search.jsx:312
|
||||
#: src/pages/search.jsx:459
|
||||
msgid "Posts"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:427
|
||||
#: src/components/account-info.jsx:1118
|
||||
#: src/components/account-info.jsx:429
|
||||
#: src/components/account-info.jsx:1120
|
||||
#: src/components/compose.jsx:2488
|
||||
#: src/components/media-alt-modal.jsx:45
|
||||
#: src/components/media-modal.jsx:357
|
||||
|
@ -122,64 +122,64 @@ msgstr ""
|
|||
msgid "More"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:439
|
||||
#: src/components/account-info.jsx:441
|
||||
msgid "<0>{displayName}</0> has indicated that their new account is now:"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:584
|
||||
#: src/components/account-info.jsx:1276
|
||||
#: src/components/account-info.jsx:586
|
||||
#: src/components/account-info.jsx:1278
|
||||
msgid "Handle copied"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:587
|
||||
#: src/components/account-info.jsx:1279
|
||||
#: src/components/account-info.jsx:589
|
||||
#: src/components/account-info.jsx:1281
|
||||
msgid "Unable to copy handle"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:593
|
||||
#: src/components/account-info.jsx:1285
|
||||
#: src/components/account-info.jsx:595
|
||||
#: src/components/account-info.jsx:1287
|
||||
msgid "Copy handle"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:599
|
||||
#: src/components/account-info.jsx:601
|
||||
msgid "Go to original profile page"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:606
|
||||
#: src/components/account-info.jsx:608
|
||||
msgid "View profile image"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:612
|
||||
#: src/components/account-info.jsx:614
|
||||
msgid "View profile header"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:629
|
||||
#: src/components/account-info.jsx:631
|
||||
msgid "In Memoriam"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:709
|
||||
#: src/components/account-info.jsx:750
|
||||
#: src/components/account-info.jsx:711
|
||||
#: src/components/account-info.jsx:752
|
||||
msgid "This user has chosen to not make this information available."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:805
|
||||
#: src/components/account-info.jsx:807
|
||||
msgid "{0} original posts, {1} replies, {2} boosts"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:821
|
||||
#: src/components/account-info.jsx:823
|
||||
msgid "{0, plural, one {{1, plural, one {Last 1 post in the past 1 day} other {Last 1 post in the past {2} days}}} other {{3, plural, one {Last {4} posts in the past 1 day} other {Last {5} posts in the past {6} days}}}}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:834
|
||||
#: src/components/account-info.jsx:836
|
||||
msgid "{0, plural, one {Last 1 post in the past year(s)} other {Last {1} posts in the past year(s)}}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:858
|
||||
#: src/components/account-info.jsx:860
|
||||
#: src/pages/catchup.jsx:70
|
||||
msgid "Original"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:862
|
||||
#: src/components/account-info.jsx:864
|
||||
#: src/components/status.jsx:2252
|
||||
#: src/pages/catchup.jsx:71
|
||||
#: src/pages/catchup.jsx:1445
|
||||
|
@ -189,7 +189,7 @@ msgstr ""
|
|||
msgid "Replies"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:866
|
||||
#: src/components/account-info.jsx:868
|
||||
#: src/pages/catchup.jsx:72
|
||||
#: src/pages/catchup.jsx:1447
|
||||
#: src/pages/catchup.jsx:2068
|
||||
|
@ -197,207 +197,207 @@ msgstr ""
|
|||
msgid "Boosts"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:872
|
||||
#: src/components/account-info.jsx:874
|
||||
msgid "Post stats unavailable."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:903
|
||||
#: src/components/account-info.jsx:905
|
||||
msgid "View post stats"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1066
|
||||
#: src/components/account-info.jsx:1068
|
||||
msgid "Last post: <0>{0}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1080
|
||||
#: src/components/account-info.jsx:1082
|
||||
msgid "Muted"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1085
|
||||
#: src/components/account-info.jsx:1087
|
||||
msgid "Blocked"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1094
|
||||
#: src/components/account-info.jsx:1096
|
||||
msgid "Private note"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1151
|
||||
#: src/components/account-info.jsx:1153
|
||||
msgid "Mention <0>@{username}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1163
|
||||
#: src/components/account-info.jsx:1165
|
||||
msgid "Translate bio"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1174
|
||||
#: src/components/account-info.jsx:1176
|
||||
msgid "Edit private note"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1174
|
||||
#: src/components/account-info.jsx:1176
|
||||
msgid "Add private note"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1194
|
||||
#: src/components/account-info.jsx:1196
|
||||
msgid "Notifications enabled for @{username}'s posts."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1195
|
||||
#: src/components/account-info.jsx:1197
|
||||
msgid "Notifications disabled for @{username}'s posts."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1207
|
||||
#: src/components/account-info.jsx:1209
|
||||
msgid "Disable notifications"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1208
|
||||
#: src/components/account-info.jsx:1210
|
||||
msgid "Enable notifications"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1225
|
||||
#: src/components/account-info.jsx:1227
|
||||
msgid "Boosts from @{username} enabled."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1226
|
||||
#: src/components/account-info.jsx:1228
|
||||
msgid "Boosts from @{username} disabled."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1237
|
||||
#: src/components/account-info.jsx:1239
|
||||
msgid "Disable boosts"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1237
|
||||
#: src/components/account-info.jsx:1239
|
||||
msgid "Enable boosts"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1253
|
||||
#: src/components/account-info.jsx:1263
|
||||
#: src/components/account-info.jsx:1864
|
||||
#: src/components/account-info.jsx:1255
|
||||
#: src/components/account-info.jsx:1265
|
||||
#: src/components/account-info.jsx:1866
|
||||
msgid "Add/Remove from Lists"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1302
|
||||
#: src/components/account-info.jsx:1304
|
||||
#: src/components/status.jsx:1161
|
||||
msgid "Link copied"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1305
|
||||
#: src/components/account-info.jsx:1307
|
||||
#: src/components/status.jsx:1164
|
||||
msgid "Unable to copy link"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1311
|
||||
#: src/components/account-info.jsx:1313
|
||||
#: src/components/shortcuts-settings.jsx:1059
|
||||
#: src/components/status.jsx:1170
|
||||
#: src/components/status.jsx:3251
|
||||
msgid "Copy"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1326
|
||||
#: src/components/account-info.jsx:1328
|
||||
#: src/components/shortcuts-settings.jsx:1077
|
||||
#: src/components/status.jsx:1186
|
||||
msgid "Sharing doesn't seem to work."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1332
|
||||
#: src/components/account-info.jsx:1334
|
||||
#: src/components/status.jsx:1192
|
||||
msgid "Share…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1352
|
||||
#: src/components/account-info.jsx:1354
|
||||
msgid "Unmuted @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1364
|
||||
#: src/components/account-info.jsx:1366
|
||||
msgid "Unmute <0>@{username}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1380
|
||||
#: src/components/account-info.jsx:1382
|
||||
msgid "Mute <0>@{username}</0>…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1412
|
||||
#: src/components/account-info.jsx:1414
|
||||
msgid "Muted @{username} for {0}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1424
|
||||
#: src/components/account-info.jsx:1426
|
||||
msgid "Unable to mute @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1445
|
||||
#: src/components/account-info.jsx:1447
|
||||
msgid "Remove <0>@{username}</0> from followers?"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1465
|
||||
#: src/components/account-info.jsx:1467
|
||||
msgid "@{username} removed from followers"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1477
|
||||
#: src/components/account-info.jsx:1479
|
||||
msgid "Remove follower…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1488
|
||||
#: src/components/account-info.jsx:1490
|
||||
msgid "Block <0>@{username}</0>?"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1512
|
||||
#: src/components/account-info.jsx:1514
|
||||
msgid "Unblocked @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1520
|
||||
#: src/components/account-info.jsx:1522
|
||||
msgid "Blocked @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1528
|
||||
#: src/components/account-info.jsx:1530
|
||||
msgid "Unable to unblock @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1530
|
||||
#: src/components/account-info.jsx:1532
|
||||
msgid "Unable to block @{username}"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1540
|
||||
#: src/components/account-info.jsx:1542
|
||||
msgid "Unblock <0>@{username}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1549
|
||||
#: src/components/account-info.jsx:1551
|
||||
msgid "Block <0>@{username}</0>…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1566
|
||||
#: src/components/account-info.jsx:1568
|
||||
msgid "Report <0>@{username}</0>…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1586
|
||||
#: src/components/account-info.jsx:2097
|
||||
#: src/components/account-info.jsx:1588
|
||||
#: src/components/account-info.jsx:2099
|
||||
msgid "Edit profile"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1622
|
||||
#: src/components/account-info.jsx:1624
|
||||
msgid "Withdraw follow request?"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1623
|
||||
#: src/components/account-info.jsx:1625
|
||||
msgid "Unfollow @{0}?"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1674
|
||||
#: src/components/account-info.jsx:1676
|
||||
msgid "Unfollow…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1683
|
||||
#: src/components/account-info.jsx:1685
|
||||
msgid "Withdraw…"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1690
|
||||
#: src/components/account-info.jsx:1694
|
||||
#: src/components/account-info.jsx:1692
|
||||
#: src/components/account-info.jsx:1696
|
||||
#: src/pages/hashtag.jsx:261
|
||||
msgid "Follow"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1805
|
||||
#: src/components/account-info.jsx:1859
|
||||
#: src/components/account-info.jsx:1992
|
||||
#: src/components/account-info.jsx:2092
|
||||
#: src/components/account-info.jsx:1807
|
||||
#: src/components/account-info.jsx:1861
|
||||
#: src/components/account-info.jsx:1994
|
||||
#: src/components/account-info.jsx:2094
|
||||
#: src/components/account-sheet.jsx:37
|
||||
#: src/components/compose.jsx:818
|
||||
#: src/components/compose.jsx:2444
|
||||
|
@ -430,76 +430,76 @@ msgstr ""
|
|||
msgid "Close"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1810
|
||||
#: src/components/account-info.jsx:1812
|
||||
msgid "Translated Bio"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1904
|
||||
#: src/components/account-info.jsx:1906
|
||||
msgid "Unable to remove from list."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1905
|
||||
#: src/components/account-info.jsx:1907
|
||||
msgid "Unable to add to list."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1924
|
||||
#: src/components/account-info.jsx:1926
|
||||
#: src/pages/lists.jsx:104
|
||||
msgid "Unable to load lists."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1928
|
||||
#: src/components/account-info.jsx:1930
|
||||
msgid "No lists."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1939
|
||||
#: src/components/account-info.jsx:1941
|
||||
#: src/components/list-add-edit.jsx:39
|
||||
#: src/pages/lists.jsx:58
|
||||
msgid "New list"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:1997
|
||||
#: src/components/account-info.jsx:1999
|
||||
msgid "Private note about <0>@{0}</0>"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2027
|
||||
#: src/components/account-info.jsx:2029
|
||||
msgid "Unable to update private note."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2050
|
||||
#: src/components/account-info.jsx:2220
|
||||
#: src/components/account-info.jsx:2052
|
||||
#: src/components/account-info.jsx:2222
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2055
|
||||
#: src/components/account-info.jsx:2057
|
||||
msgid "Save & close"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2148
|
||||
#: src/components/account-info.jsx:2150
|
||||
msgid "Unable to update profile."
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2155
|
||||
#: src/components/account-info.jsx:2157
|
||||
#: src/components/list-add-edit.jsx:104
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2168
|
||||
#: src/components/account-info.jsx:2170
|
||||
msgid "Bio"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2181
|
||||
#: src/components/account-info.jsx:2183
|
||||
msgid "Extra fields"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2187
|
||||
#: src/components/account-info.jsx:2189
|
||||
msgid "Label"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2190
|
||||
#: src/components/account-info.jsx:2192
|
||||
msgid "Content"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2223
|
||||
#: src/components/account-info.jsx:2225
|
||||
#: src/components/list-add-edit.jsx:149
|
||||
#: src/components/shortcuts-settings.jsx:715
|
||||
#: src/pages/filters.jsx:554
|
||||
|
@ -507,11 +507,11 @@ msgstr ""
|
|||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2276
|
||||
#: src/components/account-info.jsx:2278
|
||||
msgid "username"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/account-info.jsx:2280
|
||||
#: src/components/account-info.jsx:2282
|
||||
msgid "server domain name"
|
||||
msgstr ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue