From 773299ae594ebe4eedecc50eeff0a1a8af434b34 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 27 Oct 2024 02:40:05 +0100 Subject: [PATCH 1/4] Add alternate way of group detection for *oma --- src/components/status.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 915464e8b..d3c253677 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -342,6 +342,11 @@ function Status({ emojis: accountEmojis, bot, group, + source: { + pleroma: { + actorType = undefined + } = {}, + } = {}, }, id, repliesCount, @@ -487,7 +492,7 @@ function Status({ if (reblog) { // If has statusID, means useItemID (cached in states) - if (group) { + if (group || actorType === "Group") { return (
Date: Sun, 27 Oct 2024 02:40:22 +0100 Subject: [PATCH 2/4] Add a "Posted in" prefix to group headers --- src/components/status.jsx | 7 +- src/locales/en.po | 266 +++++++++++++++++++------------------- 2 files changed, 140 insertions(+), 133 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index d3c253677..db6ec4832 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -500,8 +500,11 @@ function Status({ onMouseEnter={debugHover} >
- {' '} - + {' '} + + Posted in{" "} + {' '} +
l or <1>f" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:164 -#: src/components/status.jsx:921 -#: src/components/status.jsx:2382 -#: src/components/status.jsx:2414 -#: src/components/status.jsx:2415 +#: src/components/status.jsx:929 +#: src/components/status.jsx:2390 +#: src/components/status.jsx:2422 +#: src/components/status.jsx:2423 msgid "Boost" msgstr "" @@ -1105,9 +1105,9 @@ msgid "<0>Shift + <1>b" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:172 -#: src/components/status.jsx:1006 -#: src/components/status.jsx:2439 -#: src/components/status.jsx:2440 +#: src/components/status.jsx:1014 +#: src/components/status.jsx:2447 +#: src/components/status.jsx:2448 msgid "Bookmark" msgstr "" @@ -1166,15 +1166,15 @@ msgid "Media description" msgstr "" #: src/components/media-alt-modal.jsx:57 -#: src/components/status.jsx:1050 -#: src/components/status.jsx:1077 +#: src/components/status.jsx:1058 +#: src/components/status.jsx:1085 #: src/components/translation-block.jsx:195 msgid "Translate" msgstr "" #: src/components/media-alt-modal.jsx:68 -#: src/components/status.jsx:1064 -#: src/components/status.jsx:1091 +#: src/components/status.jsx:1072 +#: src/components/status.jsx:1099 msgid "Speak" msgstr "" @@ -1211,9 +1211,9 @@ msgid "Filtered: {filterTitleStr}" msgstr "" #: src/components/media-post.jsx:133 -#: src/components/status.jsx:3529 -#: src/components/status.jsx:3625 -#: src/components/status.jsx:3703 +#: src/components/status.jsx:3537 +#: src/components/status.jsx:3633 +#: src/components/status.jsx:3711 #: src/components/timeline.jsx:973 #: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:1876 @@ -1501,8 +1501,8 @@ msgid "[Unknown notification type: {type}]" msgstr "" #: src/components/notification.jsx:434 -#: src/components/status.jsx:1020 -#: src/components/status.jsx:1030 +#: src/components/status.jsx:1028 +#: src/components/status.jsx:1038 msgid "Boosted/Liked by…" msgstr "" @@ -1817,7 +1817,7 @@ msgid "Move down" msgstr "" #: src/components/shortcuts-settings.jsx:379 -#: src/components/status.jsx:1298 +#: src/components/status.jsx:1306 #: src/pages/list.jsx:170 msgid "Edit" msgstr "" @@ -2015,297 +2015,301 @@ msgstr "" msgid "Import/export settings from/to instance server (Very experimental)" msgstr "" -#: src/components/status.jsx:522 +#: src/components/status.jsx:504 +msgid "<0>Posted in <1/>" +msgstr "<0>Posted in <1/>" + +#: src/components/status.jsx:530 msgid "<0/> <1>boosted" msgstr "" -#: src/components/status.jsx:621 +#: src/components/status.jsx:629 msgid "Sorry, your current logged-in instance can't interact with this post from another instance." msgstr "" -#: src/components/status.jsx:774 +#: src/components/status.jsx:782 msgid "Unliked @{0}'s post" msgstr "" -#: src/components/status.jsx:775 +#: src/components/status.jsx:783 msgid "Liked @{0}'s post" msgstr "" -#: src/components/status.jsx:814 +#: src/components/status.jsx:822 msgid "Unbookmarked @{0}'s post" msgstr "" -#: src/components/status.jsx:815 +#: src/components/status.jsx:823 msgid "Bookmarked @{0}'s post" msgstr "" -#: src/components/status.jsx:921 -#: src/components/status.jsx:983 -#: src/components/status.jsx:2382 -#: src/components/status.jsx:2414 +#: src/components/status.jsx:929 +#: src/components/status.jsx:991 +#: src/components/status.jsx:2390 +#: src/components/status.jsx:2422 msgid "Unboost" msgstr "" -#: src/components/status.jsx:937 -#: src/components/status.jsx:2397 +#: src/components/status.jsx:945 +#: src/components/status.jsx:2405 msgid "Quote" msgstr "" -#: src/components/status.jsx:945 -#: src/components/status.jsx:2406 +#: src/components/status.jsx:953 +#: src/components/status.jsx:2414 msgid "Some media have no descriptions." msgstr "" -#: src/components/status.jsx:952 +#: src/components/status.jsx:960 msgid "Old post (<0>{0})" msgstr "" -#: src/components/status.jsx:971 -#: src/components/status.jsx:1426 +#: src/components/status.jsx:979 +#: src/components/status.jsx:1434 msgid "Unboosted @{0}'s post" msgstr "" -#: src/components/status.jsx:972 -#: src/components/status.jsx:1427 +#: src/components/status.jsx:980 +#: src/components/status.jsx:1435 msgid "Boosted @{0}'s post" msgstr "" -#: src/components/status.jsx:984 +#: src/components/status.jsx:992 msgid "Boost…" msgstr "" -#: src/components/status.jsx:996 -#: src/components/status.jsx:1711 -#: src/components/status.jsx:2427 +#: src/components/status.jsx:1004 +#: src/components/status.jsx:1719 +#: src/components/status.jsx:2435 msgid "Unlike" msgstr "" -#: src/components/status.jsx:997 -#: src/components/status.jsx:1711 -#: src/components/status.jsx:1712 -#: src/components/status.jsx:2427 -#: src/components/status.jsx:2428 +#: src/components/status.jsx:1005 +#: src/components/status.jsx:1719 +#: src/components/status.jsx:1720 +#: src/components/status.jsx:2435 +#: src/components/status.jsx:2436 msgid "Like" msgstr "" -#: src/components/status.jsx:1006 -#: src/components/status.jsx:2439 +#: src/components/status.jsx:1014 +#: src/components/status.jsx:2447 msgid "Unbookmark" msgstr "" -#: src/components/status.jsx:1114 +#: src/components/status.jsx:1122 msgid "View post by <0>@{0}" msgstr "" -#: src/components/status.jsx:1135 +#: src/components/status.jsx:1143 msgid "Show Edit History" msgstr "" -#: src/components/status.jsx:1138 +#: src/components/status.jsx:1146 msgid "Edited: {editedDateText}" msgstr "" -#: src/components/status.jsx:1205 -#: src/components/status.jsx:3206 +#: src/components/status.jsx:1213 +#: src/components/status.jsx:3214 msgid "Embed post" msgstr "" -#: src/components/status.jsx:1219 +#: src/components/status.jsx:1227 msgid "Conversation unmuted" msgstr "" -#: src/components/status.jsx:1219 +#: src/components/status.jsx:1227 msgid "Conversation muted" msgstr "" -#: src/components/status.jsx:1225 +#: src/components/status.jsx:1233 msgid "Unable to unmute conversation" msgstr "" -#: src/components/status.jsx:1226 +#: src/components/status.jsx:1234 msgid "Unable to mute conversation" msgstr "" -#: src/components/status.jsx:1235 +#: src/components/status.jsx:1243 msgid "Unmute conversation" msgstr "" -#: src/components/status.jsx:1242 +#: src/components/status.jsx:1250 msgid "Mute conversation" msgstr "" -#: src/components/status.jsx:1258 +#: src/components/status.jsx:1266 msgid "Post unpinned from profile" msgstr "" -#: src/components/status.jsx:1259 +#: src/components/status.jsx:1267 msgid "Post pinned to profile" msgstr "" -#: src/components/status.jsx:1264 +#: src/components/status.jsx:1272 msgid "Unable to unpin post" msgstr "" -#: src/components/status.jsx:1264 +#: src/components/status.jsx:1272 msgid "Unable to pin post" msgstr "" -#: src/components/status.jsx:1273 +#: src/components/status.jsx:1281 msgid "Unpin from profile" msgstr "" -#: src/components/status.jsx:1280 +#: src/components/status.jsx:1288 msgid "Pin to profile" msgstr "" -#: src/components/status.jsx:1309 +#: src/components/status.jsx:1317 msgid "Delete this post?" msgstr "" -#: src/components/status.jsx:1325 +#: src/components/status.jsx:1333 msgid "Post deleted" msgstr "" -#: src/components/status.jsx:1328 +#: src/components/status.jsx:1336 msgid "Unable to delete post" msgstr "" -#: src/components/status.jsx:1356 +#: src/components/status.jsx:1364 msgid "Report post…" msgstr "" -#: src/components/status.jsx:1712 -#: src/components/status.jsx:1748 -#: src/components/status.jsx:2428 +#: src/components/status.jsx:1720 +#: src/components/status.jsx:1756 +#: src/components/status.jsx:2436 msgid "Liked" msgstr "" -#: src/components/status.jsx:1745 -#: src/components/status.jsx:2415 +#: src/components/status.jsx:1753 +#: src/components/status.jsx:2423 msgid "Boosted" msgstr "" -#: src/components/status.jsx:1755 -#: src/components/status.jsx:2440 +#: src/components/status.jsx:1763 +#: src/components/status.jsx:2448 msgid "Bookmarked" msgstr "" -#: src/components/status.jsx:1759 +#: src/components/status.jsx:1767 msgid "Pinned" msgstr "" -#: src/components/status.jsx:1804 -#: src/components/status.jsx:2259 +#: src/components/status.jsx:1812 +#: src/components/status.jsx:2267 msgid "Deleted" msgstr "" -#: src/components/status.jsx:1845 +#: src/components/status.jsx:1853 msgid "{repliesCount, plural, one {# reply} other {# replies}}" msgstr "" -#: src/components/status.jsx:1934 +#: src/components/status.jsx:1942 msgid "Thread{0}" msgstr "" -#: src/components/status.jsx:2010 -#: src/components/status.jsx:2072 -#: src/components/status.jsx:2157 +#: src/components/status.jsx:2018 +#: src/components/status.jsx:2080 +#: src/components/status.jsx:2165 msgid "Show less" msgstr "" -#: src/components/status.jsx:2010 -#: src/components/status.jsx:2072 +#: src/components/status.jsx:2018 +#: src/components/status.jsx:2080 msgid "Show content" msgstr "" -#: src/components/status.jsx:2157 +#: src/components/status.jsx:2165 msgid "Show media" msgstr "" -#: src/components/status.jsx:2280 +#: src/components/status.jsx:2288 msgid "Edited" msgstr "" -#: src/components/status.jsx:2357 +#: src/components/status.jsx:2365 msgid "Comments" msgstr "" #. More from [Author] -#: src/components/status.jsx:2666 +#: src/components/status.jsx:2674 msgid "More from <0/>" msgstr "More from <0/>" -#: src/components/status.jsx:2967 +#: src/components/status.jsx:2975 msgid "Edit History" msgstr "" -#: src/components/status.jsx:2971 +#: src/components/status.jsx:2979 msgid "Failed to load history" msgstr "" -#: src/components/status.jsx:2976 +#: src/components/status.jsx:2984 msgid "Loading…" msgstr "" -#: src/components/status.jsx:3211 +#: src/components/status.jsx:3219 msgid "HTML Code" msgstr "" -#: src/components/status.jsx:3228 +#: src/components/status.jsx:3236 msgid "HTML code copied" msgstr "" -#: src/components/status.jsx:3231 +#: src/components/status.jsx:3239 msgid "Unable to copy HTML code" msgstr "" -#: src/components/status.jsx:3243 +#: src/components/status.jsx:3251 msgid "Media attachments:" msgstr "" -#: src/components/status.jsx:3265 +#: src/components/status.jsx:3273 msgid "Account Emojis:" msgstr "" -#: src/components/status.jsx:3296 -#: src/components/status.jsx:3341 +#: src/components/status.jsx:3304 +#: src/components/status.jsx:3349 msgid "static URL" msgstr "" -#: src/components/status.jsx:3310 +#: src/components/status.jsx:3318 msgid "Emojis:" msgstr "" -#: src/components/status.jsx:3355 +#: src/components/status.jsx:3363 msgid "Notes:" msgstr "" -#: src/components/status.jsx:3359 +#: src/components/status.jsx:3367 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgstr "" -#: src/components/status.jsx:3365 +#: src/components/status.jsx:3373 msgid "Polls are not interactive, becomes a list with vote counts." msgstr "" -#: src/components/status.jsx:3370 +#: src/components/status.jsx:3378 msgid "Media attachments can be images, videos, audios or any file types." msgstr "" -#: src/components/status.jsx:3376 +#: src/components/status.jsx:3384 msgid "Post could be edited or deleted later." msgstr "" -#: src/components/status.jsx:3382 +#: src/components/status.jsx:3390 msgid "Preview" msgstr "" -#: src/components/status.jsx:3391 +#: src/components/status.jsx:3399 msgid "Note: This preview is lightly styled." msgstr "" #. [Name] [Visibility icon] boosted -#: src/components/status.jsx:3633 +#: src/components/status.jsx:3641 msgid "<0/> <1/> boosted" msgstr "" From 67af3aedae90498242ecc3e61e111936614a36ea Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Dec 2024 06:00:35 +0100 Subject: [PATCH 3/4] Localization --- src/locales/en.po | 266 +++++++++++++++++++++++----------------------- 1 file changed, 135 insertions(+), 131 deletions(-) diff --git a/src/locales/en.po b/src/locales/en.po index 34b2b02bc..8fb4bd4dc 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -32,7 +32,7 @@ msgstr "" #: src/components/account-block.jsx:168 #: src/components/account-info.jsx:641 -#: src/components/status.jsx:514 +#: src/components/status.jsx:519 msgid "Group" msgstr "" @@ -107,11 +107,11 @@ msgstr "" #: src/components/compose.jsx:2591 #: src/components/media-alt-modal.jsx:45 #: src/components/media-modal.jsx:357 -#: src/components/status.jsx:1737 -#: src/components/status.jsx:1754 -#: src/components/status.jsx:1878 -#: src/components/status.jsx:2490 -#: src/components/status.jsx:2493 +#: src/components/status.jsx:1745 +#: src/components/status.jsx:1762 +#: src/components/status.jsx:1886 +#: src/components/status.jsx:2498 +#: src/components/status.jsx:2501 #: src/pages/account-statuses.jsx:528 #: src/pages/accounts.jsx:109 #: src/pages/hashtag.jsx:199 @@ -180,7 +180,7 @@ msgid "Original" msgstr "" #: src/components/account-info.jsx:864 -#: src/components/status.jsx:2268 +#: src/components/status.jsx:2276 #: src/pages/catchup.jsx:71 #: src/pages/catchup.jsx:1445 #: src/pages/catchup.jsx:2056 @@ -276,30 +276,30 @@ msgid "Add/Remove from Lists" msgstr "" #: src/components/account-info.jsx:1304 -#: src/components/status.jsx:1177 +#: src/components/status.jsx:1185 msgid "Link copied" msgstr "" #: src/components/account-info.jsx:1307 -#: src/components/status.jsx:1180 +#: src/components/status.jsx:1188 msgid "Unable to copy link" msgstr "" #: src/components/account-info.jsx:1313 #: src/components/shortcuts-settings.jsx:1059 -#: src/components/status.jsx:1186 -#: src/components/status.jsx:3267 +#: src/components/status.jsx:1194 +#: src/components/status.jsx:3275 msgid "Copy" msgstr "" #: src/components/account-info.jsx:1328 #: src/components/shortcuts-settings.jsx:1077 -#: src/components/status.jsx:1202 +#: src/components/status.jsx:1210 msgid "Sharing doesn't seem to work." msgstr "" #: src/components/account-info.jsx:1334 -#: src/components/status.jsx:1208 +#: src/components/status.jsx:1216 msgid "Share…" msgstr "" @@ -416,9 +416,9 @@ msgstr "" #: src/components/shortcuts-settings.jsx:230 #: src/components/shortcuts-settings.jsx:583 #: src/components/shortcuts-settings.jsx:783 -#: src/components/status.jsx:2992 -#: src/components/status.jsx:3231 -#: src/components/status.jsx:3731 +#: src/components/status.jsx:3000 +#: src/components/status.jsx:3239 +#: src/components/status.jsx:3739 #: src/pages/accounts.jsx:36 #: src/pages/catchup.jsx:1581 #: src/pages/filters.jsx:224 @@ -624,7 +624,7 @@ msgid "Attachment #{i} failed" msgstr "" #: src/components/compose.jsx:1180 -#: src/components/status.jsx:2063 +#: src/components/status.jsx:2071 #: src/components/timeline.jsx:984 msgid "Content warning" msgstr "" @@ -660,7 +660,7 @@ msgstr "" #: src/components/compose.jsx:1247 #: src/components/status.jsx:97 -#: src/components/status.jsx:1941 +#: src/components/status.jsx:1949 msgid "Private mention" msgstr "" @@ -689,10 +689,10 @@ msgstr "" #: src/components/compose.jsx:1555 #: src/components/keyboard-shortcuts-help.jsx:151 -#: src/components/status.jsx:929 -#: src/components/status.jsx:1717 -#: src/components/status.jsx:1718 -#: src/components/status.jsx:2386 +#: src/components/status.jsx:937 +#: src/components/status.jsx:1725 +#: src/components/status.jsx:1726 +#: src/components/status.jsx:2394 msgid "Reply" msgstr "" @@ -901,7 +901,7 @@ msgstr "" #: src/components/drafts.jsx:127 #: src/components/list-add-edit.jsx:185 -#: src/components/status.jsx:1352 +#: src/components/status.jsx:1360 #: src/pages/filters.jsx:587 msgid "Delete…" msgstr "" @@ -1109,10 +1109,10 @@ msgid "<0>l or <1>f" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:172 -#: src/components/status.jsx:937 -#: src/components/status.jsx:2413 -#: src/components/status.jsx:2444 -#: src/components/status.jsx:2445 +#: src/components/status.jsx:945 +#: src/components/status.jsx:2421 +#: src/components/status.jsx:2452 +#: src/components/status.jsx:2453 msgid "Boost" msgstr "" @@ -1121,9 +1121,9 @@ msgid "<0>Shift + <1>b" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:180 -#: src/components/status.jsx:1022 -#: src/components/status.jsx:2469 -#: src/components/status.jsx:2470 +#: src/components/status.jsx:1030 +#: src/components/status.jsx:2477 +#: src/components/status.jsx:2478 msgid "Bookmark" msgstr "" @@ -1182,15 +1182,15 @@ msgid "Media description" msgstr "" #: src/components/media-alt-modal.jsx:57 -#: src/components/status.jsx:1066 -#: src/components/status.jsx:1093 +#: src/components/status.jsx:1074 +#: src/components/status.jsx:1101 #: src/components/translation-block.jsx:195 msgid "Translate" msgstr "" #: src/components/media-alt-modal.jsx:68 -#: src/components/status.jsx:1080 -#: src/components/status.jsx:1107 +#: src/components/status.jsx:1088 +#: src/components/status.jsx:1115 msgid "Speak" msgstr "" @@ -1227,9 +1227,9 @@ msgid "Filtered: {filterTitleStr}" msgstr "" #: src/components/media-post.jsx:133 -#: src/components/status.jsx:3561 -#: src/components/status.jsx:3657 -#: src/components/status.jsx:3735 +#: src/components/status.jsx:3569 +#: src/components/status.jsx:3665 +#: src/components/status.jsx:3743 #: src/components/timeline.jsx:973 #: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:1876 @@ -1521,8 +1521,8 @@ msgid "[Unknown notification type: {type}]" msgstr "" #: src/components/notification.jsx:441 -#: src/components/status.jsx:1036 -#: src/components/status.jsx:1046 +#: src/components/status.jsx:1044 +#: src/components/status.jsx:1054 msgid "Boosted/Liked by…" msgstr "" @@ -1841,7 +1841,7 @@ msgid "Move down" msgstr "" #: src/components/shortcuts-settings.jsx:379 -#: src/components/status.jsx:1314 +#: src/components/status.jsx:1322 #: src/pages/list.jsx:170 msgid "Edit" msgstr "" @@ -2039,298 +2039,302 @@ msgstr "" msgid "Import/export settings from/to instance server (Very experimental)" msgstr "" -#: src/components/status.jsx:538 +#: src/components/status.jsx:520 +msgid "<0>Posted in <1/>" +msgstr "<0>Posted in <1/>" + +#: src/components/status.jsx:546 msgid "<0/> <1>boosted" msgstr "" -#: src/components/status.jsx:637 +#: src/components/status.jsx:645 msgid "Sorry, your current logged-in instance can't interact with this post from another instance." msgstr "" -#: src/components/status.jsx:790 +#: src/components/status.jsx:798 msgid "Unliked @{0}'s post" msgstr "" -#: src/components/status.jsx:791 +#: src/components/status.jsx:799 msgid "Liked @{0}'s post" msgstr "" -#: src/components/status.jsx:830 +#: src/components/status.jsx:838 msgid "Unbookmarked @{0}'s post" msgstr "" -#: src/components/status.jsx:831 +#: src/components/status.jsx:839 msgid "Bookmarked @{0}'s post" msgstr "" -#: src/components/status.jsx:937 -#: src/components/status.jsx:999 -#: src/components/status.jsx:2413 -#: src/components/status.jsx:2444 +#: src/components/status.jsx:945 +#: src/components/status.jsx:1007 +#: src/components/status.jsx:2421 +#: src/components/status.jsx:2452 msgid "Unboost" msgstr "" -#: src/components/status.jsx:953 -#: src/components/status.jsx:2428 +#: src/components/status.jsx:961 +#: src/components/status.jsx:2436 msgid "Quote" msgstr "" -#: src/components/status.jsx:961 -#: src/components/status.jsx:2437 +#: src/components/status.jsx:969 +#: src/components/status.jsx:2445 msgid "Some media have no descriptions." msgstr "" -#: src/components/status.jsx:968 +#: src/components/status.jsx:976 msgid "Old post (<0>{0})" msgstr "" -#: src/components/status.jsx:987 -#: src/components/status.jsx:1442 +#: src/components/status.jsx:995 +#: src/components/status.jsx:1450 msgid "Unboosted @{0}'s post" msgstr "" -#: src/components/status.jsx:988 -#: src/components/status.jsx:1443 +#: src/components/status.jsx:996 +#: src/components/status.jsx:1451 msgid "Boosted @{0}'s post" msgstr "" -#: src/components/status.jsx:1000 +#: src/components/status.jsx:1008 msgid "Boost…" msgstr "" -#: src/components/status.jsx:1012 -#: src/components/status.jsx:1727 -#: src/components/status.jsx:2457 +#: src/components/status.jsx:1020 +#: src/components/status.jsx:1735 +#: src/components/status.jsx:2465 msgid "Unlike" msgstr "" -#: src/components/status.jsx:1013 -#: src/components/status.jsx:1727 -#: src/components/status.jsx:1728 -#: src/components/status.jsx:2457 -#: src/components/status.jsx:2458 +#: src/components/status.jsx:1021 +#: src/components/status.jsx:1735 +#: src/components/status.jsx:1736 +#: src/components/status.jsx:2465 +#: src/components/status.jsx:2466 msgid "Like" msgstr "" -#: src/components/status.jsx:1022 -#: src/components/status.jsx:2469 +#: src/components/status.jsx:1030 +#: src/components/status.jsx:2477 msgid "Unbookmark" msgstr "" -#: src/components/status.jsx:1130 +#: src/components/status.jsx:1138 msgid "View post by <0>@{0}" msgstr "" -#: src/components/status.jsx:1151 +#: src/components/status.jsx:1159 msgid "Show Edit History" msgstr "" -#: src/components/status.jsx:1154 +#: src/components/status.jsx:1162 msgid "Edited: {editedDateText}" msgstr "" -#: src/components/status.jsx:1221 -#: src/components/status.jsx:3236 +#: src/components/status.jsx:1229 +#: src/components/status.jsx:3244 msgid "Embed post" msgstr "" -#: src/components/status.jsx:1235 +#: src/components/status.jsx:1243 msgid "Conversation unmuted" msgstr "" -#: src/components/status.jsx:1235 +#: src/components/status.jsx:1243 msgid "Conversation muted" msgstr "" -#: src/components/status.jsx:1241 +#: src/components/status.jsx:1249 msgid "Unable to unmute conversation" msgstr "" -#: src/components/status.jsx:1242 +#: src/components/status.jsx:1250 msgid "Unable to mute conversation" msgstr "" -#: src/components/status.jsx:1251 +#: src/components/status.jsx:1259 msgid "Unmute conversation" msgstr "" -#: src/components/status.jsx:1258 +#: src/components/status.jsx:1266 msgid "Mute conversation" msgstr "" -#: src/components/status.jsx:1274 +#: src/components/status.jsx:1282 msgid "Post unpinned from profile" msgstr "" -#: src/components/status.jsx:1275 +#: src/components/status.jsx:1283 msgid "Post pinned to profile" msgstr "" -#: src/components/status.jsx:1280 +#: src/components/status.jsx:1288 msgid "Unable to unpin post" msgstr "" -#: src/components/status.jsx:1280 +#: src/components/status.jsx:1288 msgid "Unable to pin post" msgstr "" -#: src/components/status.jsx:1289 +#: src/components/status.jsx:1297 msgid "Unpin from profile" msgstr "" -#: src/components/status.jsx:1296 +#: src/components/status.jsx:1304 msgid "Pin to profile" msgstr "" -#: src/components/status.jsx:1325 +#: src/components/status.jsx:1333 msgid "Delete this post?" msgstr "" -#: src/components/status.jsx:1341 +#: src/components/status.jsx:1349 msgid "Post deleted" msgstr "" -#: src/components/status.jsx:1344 +#: src/components/status.jsx:1352 msgid "Unable to delete post" msgstr "" -#: src/components/status.jsx:1372 +#: src/components/status.jsx:1380 msgid "Report post…" msgstr "" -#: src/components/status.jsx:1728 -#: src/components/status.jsx:1764 -#: src/components/status.jsx:2458 +#: src/components/status.jsx:1736 +#: src/components/status.jsx:1772 +#: src/components/status.jsx:2466 msgid "Liked" msgstr "" -#: src/components/status.jsx:1761 -#: src/components/status.jsx:2445 +#: src/components/status.jsx:1769 +#: src/components/status.jsx:2453 msgid "Boosted" msgstr "" -#: src/components/status.jsx:1771 -#: src/components/status.jsx:2470 +#: src/components/status.jsx:1779 +#: src/components/status.jsx:2478 msgid "Bookmarked" msgstr "" -#: src/components/status.jsx:1775 +#: src/components/status.jsx:1783 msgid "Pinned" msgstr "" -#: src/components/status.jsx:1820 -#: src/components/status.jsx:2276 +#: src/components/status.jsx:1828 +#: src/components/status.jsx:2284 msgid "Deleted" msgstr "" -#: src/components/status.jsx:1861 +#: src/components/status.jsx:1869 msgid "{repliesCount, plural, one {# reply} other {# replies}}" msgstr "" -#: src/components/status.jsx:1950 +#: src/components/status.jsx:1958 msgid "Thread{0}" msgstr "" -#: src/components/status.jsx:2026 -#: src/components/status.jsx:2088 -#: src/components/status.jsx:2173 +#: src/components/status.jsx:2034 +#: src/components/status.jsx:2096 +#: src/components/status.jsx:2181 msgid "Show less" msgstr "" -#: src/components/status.jsx:2026 -#: src/components/status.jsx:2088 +#: src/components/status.jsx:2034 +#: src/components/status.jsx:2096 msgid "Show content" msgstr "" -#: src/components/status.jsx:2173 +#: src/components/status.jsx:2181 msgid "Show media" msgstr "" -#: src/components/status.jsx:2310 +#: src/components/status.jsx:2318 msgid "Edited" msgstr "" -#: src/components/status.jsx:2387 +#: src/components/status.jsx:2395 msgid "Comments" msgstr "" #. More from [Author] -#: src/components/status.jsx:2696 +#: src/components/status.jsx:2704 msgid "More from <0/>" msgstr "More from <0/>" -#: src/components/status.jsx:2997 +#: src/components/status.jsx:3005 msgid "Edit History" msgstr "" -#: src/components/status.jsx:3001 +#: src/components/status.jsx:3009 msgid "Failed to load history" msgstr "" -#: src/components/status.jsx:3006 +#: src/components/status.jsx:3014 #: src/pages/annual-report.jsx:46 msgid "Loading…" msgstr "" -#: src/components/status.jsx:3241 +#: src/components/status.jsx:3249 msgid "HTML Code" msgstr "" -#: src/components/status.jsx:3258 +#: src/components/status.jsx:3266 msgid "HTML code copied" msgstr "" -#: src/components/status.jsx:3261 +#: src/components/status.jsx:3269 msgid "Unable to copy HTML code" msgstr "" -#: src/components/status.jsx:3273 +#: src/components/status.jsx:3281 msgid "Media attachments:" msgstr "" -#: src/components/status.jsx:3295 +#: src/components/status.jsx:3303 msgid "Account Emojis:" msgstr "" -#: src/components/status.jsx:3326 -#: src/components/status.jsx:3371 +#: src/components/status.jsx:3334 +#: src/components/status.jsx:3379 msgid "static URL" msgstr "" -#: src/components/status.jsx:3340 +#: src/components/status.jsx:3348 msgid "Emojis:" msgstr "" -#: src/components/status.jsx:3385 +#: src/components/status.jsx:3393 msgid "Notes:" msgstr "" -#: src/components/status.jsx:3389 +#: src/components/status.jsx:3397 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgstr "" -#: src/components/status.jsx:3395 +#: src/components/status.jsx:3403 msgid "Polls are not interactive, becomes a list with vote counts." msgstr "" -#: src/components/status.jsx:3400 +#: src/components/status.jsx:3408 msgid "Media attachments can be images, videos, audios or any file types." msgstr "" -#: src/components/status.jsx:3406 +#: src/components/status.jsx:3414 msgid "Post could be edited or deleted later." msgstr "" -#: src/components/status.jsx:3412 +#: src/components/status.jsx:3420 msgid "Preview" msgstr "" -#: src/components/status.jsx:3421 +#: src/components/status.jsx:3429 msgid "Note: This preview is lightly styled." msgstr "" #. [Name] [Visibility icon] boosted -#: src/components/status.jsx:3665 +#: src/components/status.jsx:3673 msgid "<0/> <1/> boosted" msgstr "" From 39eb5c4fabc279af94e9078b5529cd88eefb6416 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Dec 2024 06:07:34 +0100 Subject: [PATCH 4/4] Run prettier --- src/components/status.jsx | 22 +++++++++++----------- src/locales/en.po | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 3e3fe519d..bb7a03121 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -358,11 +358,7 @@ function Status({ emojis: accountEmojis, bot, group, - source: { - pleroma: { - actorType = undefined - } = {}, - } = {}, + source: { pleroma: { actorType = undefined } = {} } = {}, }, id, repliesCount, @@ -508,7 +504,7 @@ function Status({ if (reblog) { // If has statusID, means useItemID (cached in states) - if (group || actorType === "Group") { + if (group || actorType === 'Group') { return (
- {' '} - - Posted in{" "} - {' '} - + {' '} + + Posted in{' '} + {' '} +
Posted in <1/>" msgstr "<0>Posted in <1/>"