From 44bfbd35d940923322219c7b02322fa083ca2119 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 27 Feb 2025 20:08:36 +0800 Subject: [PATCH] Fix wrong logic again --- src/components/status.jsx | 3 +- src/locales/en.po | 250 +++++++++++++++++++------------------- 2 files changed, 127 insertions(+), 126 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 83dadbaa..3d8e0142 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -289,7 +289,8 @@ const checkDifferentLanguage = ( !contentTranslationHideLanguages.find( (l) => language === l || localeMatch([language], [l]), ); - DIFFERENT_LANG_CHECK[language + contentTranslationHideLanguages] = true; + if (different) + DIFFERENT_LANG_CHECK[language + contentTranslationHideLanguages] = true; return different; }; diff --git a/src/locales/en.po b/src/locales/en.po index 95024756..4326f6b6 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -34,7 +34,7 @@ msgstr "" #: src/components/account-block.jsx:169 #: src/components/account-info.jsx:664 -#: src/components/status.jsx:524 +#: src/components/status.jsx:525 msgid "Group" msgstr "" @@ -111,11 +111,11 @@ msgstr "" #: src/components/compose.jsx:2696 #: src/components/media-alt-modal.jsx:46 #: src/components/media-modal.jsx:358 -#: src/components/status.jsx:1747 -#: src/components/status.jsx:1764 -#: src/components/status.jsx:1889 -#: src/components/status.jsx:2494 -#: src/components/status.jsx:2497 +#: src/components/status.jsx:1748 +#: src/components/status.jsx:1765 +#: src/components/status.jsx:1890 +#: src/components/status.jsx:2495 +#: src/components/status.jsx:2498 #: src/pages/account-statuses.jsx:523 #: src/pages/accounts.jsx:110 #: src/pages/hashtag.jsx:200 @@ -197,7 +197,7 @@ msgid "Original" msgstr "" #: src/components/account-info.jsx:887 -#: src/components/status.jsx:2280 +#: src/components/status.jsx:2281 #: src/pages/catchup.jsx:71 #: src/pages/catchup.jsx:1445 #: src/pages/catchup.jsx:2058 @@ -294,30 +294,30 @@ msgid "Add/Remove from Lists" msgstr "" #: src/components/account-info.jsx:1327 -#: src/components/status.jsx:1187 +#: src/components/status.jsx:1188 msgid "Link copied" msgstr "" #: src/components/account-info.jsx:1330 -#: src/components/status.jsx:1190 +#: src/components/status.jsx:1191 msgid "Unable to copy link" msgstr "" #: src/components/account-info.jsx:1336 #: src/components/shortcuts-settings.jsx:1059 -#: src/components/status.jsx:1196 -#: src/components/status.jsx:3273 +#: src/components/status.jsx:1197 +#: src/components/status.jsx:3274 msgid "Copy" msgstr "" #: src/components/account-info.jsx:1351 #: src/components/shortcuts-settings.jsx:1077 -#: src/components/status.jsx:1212 +#: src/components/status.jsx:1213 msgid "Sharing doesn't seem to work." msgstr "" #: src/components/account-info.jsx:1357 -#: src/components/status.jsx:1218 +#: src/components/status.jsx:1219 msgid "Share…" msgstr "" @@ -436,9 +436,9 @@ msgstr "" #: src/components/shortcuts-settings.jsx:230 #: src/components/shortcuts-settings.jsx:583 #: src/components/shortcuts-settings.jsx:783 -#: src/components/status.jsx:2997 -#: src/components/status.jsx:3237 -#: src/components/status.jsx:3737 +#: src/components/status.jsx:2998 +#: src/components/status.jsx:3238 +#: src/components/status.jsx:3738 #: src/pages/accounts.jsx:37 #: src/pages/catchup.jsx:1581 #: src/pages/filters.jsx:224 @@ -664,7 +664,7 @@ msgid "Attachment #{i} failed" msgstr "Attachment #{i} failed" #: src/components/compose.jsx:1206 -#: src/components/status.jsx:2075 +#: src/components/status.jsx:2076 #: src/components/timeline.jsx:989 msgid "Content warning" msgstr "" @@ -700,7 +700,7 @@ msgstr "" #: src/components/compose.jsx:1273 #: src/components/status.jsx:97 -#: src/components/status.jsx:1953 +#: src/components/status.jsx:1954 msgid "Private mention" msgstr "" @@ -737,10 +737,10 @@ msgstr "Schedule" #: src/components/compose.jsx:1627 #: src/components/keyboard-shortcuts-help.jsx:154 -#: src/components/status.jsx:961 -#: src/components/status.jsx:1727 +#: src/components/status.jsx:962 #: src/components/status.jsx:1728 -#: src/components/status.jsx:2398 +#: src/components/status.jsx:1729 +#: src/components/status.jsx:2399 msgid "Reply" msgstr "" @@ -972,7 +972,7 @@ msgstr "" #: src/components/drafts.jsx:128 #: src/components/list-add-edit.jsx:186 -#: src/components/status.jsx:1362 +#: src/components/status.jsx:1363 #: src/pages/filters.jsx:587 #: src/pages/scheduled-posts.jsx:367 msgid "Delete…" @@ -1181,10 +1181,10 @@ msgid "<0>l or <1>f" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:175 -#: src/components/status.jsx:969 -#: src/components/status.jsx:2425 -#: src/components/status.jsx:2448 +#: src/components/status.jsx:970 +#: src/components/status.jsx:2426 #: src/components/status.jsx:2449 +#: src/components/status.jsx:2450 msgid "Boost" msgstr "" @@ -1193,9 +1193,9 @@ msgid "<0>Shift + <1>b" msgstr "" #: src/components/keyboard-shortcuts-help.jsx:183 -#: src/components/status.jsx:1032 -#: src/components/status.jsx:2473 +#: src/components/status.jsx:1033 #: src/components/status.jsx:2474 +#: src/components/status.jsx:2475 msgid "Bookmark" msgstr "" @@ -1254,15 +1254,15 @@ msgid "Media description" msgstr "" #: src/components/media-alt-modal.jsx:58 -#: src/components/status.jsx:1076 -#: src/components/status.jsx:1103 +#: src/components/status.jsx:1077 +#: src/components/status.jsx:1104 #: src/components/translation-block.jsx:196 msgid "Translate" msgstr "" #: src/components/media-alt-modal.jsx:69 -#: src/components/status.jsx:1090 -#: src/components/status.jsx:1117 +#: src/components/status.jsx:1091 +#: src/components/status.jsx:1118 msgid "Speak" msgstr "" @@ -1299,9 +1299,9 @@ msgid "Filtered: {filterTitleStr}" msgstr "" #: src/components/media-post.jsx:134 -#: src/components/status.jsx:3567 -#: src/components/status.jsx:3663 -#: src/components/status.jsx:3741 +#: src/components/status.jsx:3568 +#: src/components/status.jsx:3664 +#: src/components/status.jsx:3742 #: src/components/timeline.jsx:978 #: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:1877 @@ -1619,8 +1619,8 @@ msgid "[Unknown notification type: {type}]" msgstr "" #: src/components/notification.jsx:441 -#: src/components/status.jsx:1046 -#: src/components/status.jsx:1056 +#: src/components/status.jsx:1047 +#: src/components/status.jsx:1057 msgid "Boosted/Liked by…" msgstr "" @@ -1948,7 +1948,7 @@ msgid "Move down" msgstr "" #: src/components/shortcuts-settings.jsx:379 -#: src/components/status.jsx:1324 +#: src/components/status.jsx:1325 #: src/pages/list.jsx:171 msgid "Edit" msgstr "" @@ -2147,314 +2147,314 @@ msgstr "" msgid "Import/export settings from/to instance server (Very experimental)" msgstr "" -#: src/components/status.jsx:548 +#: src/components/status.jsx:549 msgid "<0/> <1>boosted" msgstr "" -#: src/components/status.jsx:647 +#: src/components/status.jsx:648 msgid "Sorry, your current logged-in instance can't interact with this post from another instance." msgstr "" #. placeholder {0}: username || acct -#: src/components/status.jsx:800 +#: src/components/status.jsx:801 msgid "Unliked @{0}'s post" msgstr "" #. placeholder {1}: username || acct -#: src/components/status.jsx:801 +#: src/components/status.jsx:802 msgid "Liked @{1}'s post" msgstr "Liked @{1}'s post" #. placeholder {2}: username || acct -#: src/components/status.jsx:840 +#: src/components/status.jsx:841 msgid "Unbookmarked @{2}'s post" msgstr "Unbookmarked @{2}'s post" #. placeholder {3}: username || acct -#: src/components/status.jsx:841 +#: src/components/status.jsx:842 msgid "Bookmarked @{3}'s post" msgstr "Bookmarked @{3}'s post" -#: src/components/status.jsx:938 +#: src/components/status.jsx:939 msgid "Some media have no descriptions." msgstr "" #. placeholder {0}: rtf.format(-statusMonthsAgo, 'month') -#: src/components/status.jsx:945 +#: src/components/status.jsx:946 msgid "Old post (<0>{0})" msgstr "" -#: src/components/status.jsx:969 -#: src/components/status.jsx:1009 -#: src/components/status.jsx:2425 -#: src/components/status.jsx:2448 +#: src/components/status.jsx:970 +#: src/components/status.jsx:1010 +#: src/components/status.jsx:2426 +#: src/components/status.jsx:2449 msgid "Unboost" msgstr "" -#: src/components/status.jsx:985 -#: src/components/status.jsx:2440 +#: src/components/status.jsx:986 +#: src/components/status.jsx:2441 msgid "Quote" msgstr "" #. placeholder {4}: username || acct -#: src/components/status.jsx:997 +#: src/components/status.jsx:998 msgid "Unboosted @{4}'s post" msgstr "Unboosted @{4}'s post" #. placeholder {5}: username || acct -#: src/components/status.jsx:998 +#: src/components/status.jsx:999 msgid "Boosted @{5}'s post" msgstr "Boosted @{5}'s post" -#: src/components/status.jsx:1010 +#: src/components/status.jsx:1011 msgid "Boost…" msgstr "" -#: src/components/status.jsx:1022 -#: src/components/status.jsx:1737 -#: src/components/status.jsx:2461 +#: src/components/status.jsx:1023 +#: src/components/status.jsx:1738 +#: src/components/status.jsx:2462 msgid "Unlike" msgstr "" -#: src/components/status.jsx:1023 -#: src/components/status.jsx:1737 +#: src/components/status.jsx:1024 #: src/components/status.jsx:1738 -#: src/components/status.jsx:2461 +#: src/components/status.jsx:1739 #: src/components/status.jsx:2462 +#: src/components/status.jsx:2463 msgid "Like" msgstr "" -#: src/components/status.jsx:1032 -#: src/components/status.jsx:2473 +#: src/components/status.jsx:1033 +#: src/components/status.jsx:2474 msgid "Unbookmark" msgstr "" #. placeholder {0}: username || acct -#: src/components/status.jsx:1140 +#: src/components/status.jsx:1141 msgid "View post by <0>@{0}" msgstr "" -#: src/components/status.jsx:1161 +#: src/components/status.jsx:1162 msgid "Show Edit History" msgstr "" -#: src/components/status.jsx:1164 +#: src/components/status.jsx:1165 msgid "Edited: {editedDateText}" msgstr "" -#: src/components/status.jsx:1231 -#: src/components/status.jsx:3242 +#: src/components/status.jsx:1232 +#: src/components/status.jsx:3243 msgid "Embed post" msgstr "" -#: src/components/status.jsx:1245 +#: src/components/status.jsx:1246 msgid "Conversation unmuted" msgstr "" -#: src/components/status.jsx:1245 +#: src/components/status.jsx:1246 msgid "Conversation muted" msgstr "" -#: src/components/status.jsx:1251 +#: src/components/status.jsx:1252 msgid "Unable to unmute conversation" msgstr "" -#: src/components/status.jsx:1252 +#: src/components/status.jsx:1253 msgid "Unable to mute conversation" msgstr "" -#: src/components/status.jsx:1261 +#: src/components/status.jsx:1262 msgid "Unmute conversation" msgstr "" -#: src/components/status.jsx:1268 +#: src/components/status.jsx:1269 msgid "Mute conversation" msgstr "" -#: src/components/status.jsx:1284 +#: src/components/status.jsx:1285 msgid "Post unpinned from profile" msgstr "" -#: src/components/status.jsx:1285 +#: src/components/status.jsx:1286 msgid "Post pinned to profile" msgstr "" -#: src/components/status.jsx:1290 +#: src/components/status.jsx:1291 msgid "Unable to unpin post" msgstr "" -#: src/components/status.jsx:1290 +#: src/components/status.jsx:1291 msgid "Unable to pin post" msgstr "" -#: src/components/status.jsx:1299 +#: src/components/status.jsx:1300 msgid "Unpin from profile" msgstr "" -#: src/components/status.jsx:1306 +#: src/components/status.jsx:1307 msgid "Pin to profile" msgstr "" -#: src/components/status.jsx:1335 +#: src/components/status.jsx:1336 msgid "Delete this post?" msgstr "" -#: src/components/status.jsx:1351 +#: src/components/status.jsx:1352 msgid "Post deleted" msgstr "" -#: src/components/status.jsx:1354 +#: src/components/status.jsx:1355 msgid "Unable to delete post" msgstr "" -#: src/components/status.jsx:1382 +#: src/components/status.jsx:1383 msgid "Report post…" msgstr "" #. placeholder {6}: username || acct -#: src/components/status.jsx:1452 +#: src/components/status.jsx:1453 msgid "Unboosted @{6}'s post" msgstr "Unboosted @{6}'s post" #. placeholder {7}: username || acct -#: src/components/status.jsx:1453 +#: src/components/status.jsx:1454 msgid "Boosted @{7}'s post" msgstr "Boosted @{7}'s post" -#: src/components/status.jsx:1738 -#: src/components/status.jsx:1774 -#: src/components/status.jsx:2462 +#: src/components/status.jsx:1739 +#: src/components/status.jsx:1775 +#: src/components/status.jsx:2463 msgid "Liked" msgstr "" -#: src/components/status.jsx:1771 -#: src/components/status.jsx:2449 +#: src/components/status.jsx:1772 +#: src/components/status.jsx:2450 msgid "Boosted" msgstr "" -#: src/components/status.jsx:1781 -#: src/components/status.jsx:2474 +#: src/components/status.jsx:1782 +#: src/components/status.jsx:2475 msgid "Bookmarked" msgstr "" -#: src/components/status.jsx:1785 +#: src/components/status.jsx:1786 msgid "Pinned" msgstr "" -#: src/components/status.jsx:1831 -#: src/components/status.jsx:2288 +#: src/components/status.jsx:1832 +#: src/components/status.jsx:2289 msgid "Deleted" msgstr "" -#: src/components/status.jsx:1872 +#: src/components/status.jsx:1873 msgid "{repliesCount, plural, one {# reply} other {# replies}}" msgstr "" #. placeholder {0}: snapStates.statusThreadNumber[sKey] ? ` ${snapStates.statusThreadNumber[sKey]}/X` : '' -#: src/components/status.jsx:1962 +#: src/components/status.jsx:1963 msgid "Thread{0}" msgstr "" -#: src/components/status.jsx:2038 -#: src/components/status.jsx:2100 -#: src/components/status.jsx:2185 +#: src/components/status.jsx:2039 +#: src/components/status.jsx:2101 +#: src/components/status.jsx:2186 msgid "Show less" msgstr "" -#: src/components/status.jsx:2038 -#: src/components/status.jsx:2100 +#: src/components/status.jsx:2039 +#: src/components/status.jsx:2101 msgid "Show content" msgstr "" -#: src/components/status.jsx:2185 +#: src/components/status.jsx:2186 msgid "Show media" msgstr "" -#: src/components/status.jsx:2322 +#: src/components/status.jsx:2323 msgid "Edited" msgstr "" -#: src/components/status.jsx:2399 +#: src/components/status.jsx:2400 msgid "Comments" msgstr "" #. More from [Author] -#: src/components/status.jsx:2700 +#: src/components/status.jsx:2701 msgid "More from <0/>" msgstr "More from <0/>" -#: src/components/status.jsx:3002 +#: src/components/status.jsx:3003 msgid "Edit History" msgstr "" -#: src/components/status.jsx:3006 +#: src/components/status.jsx:3007 msgid "Failed to load history" msgstr "" -#: src/components/status.jsx:3011 +#: src/components/status.jsx:3012 #: src/pages/annual-report.jsx:45 msgid "Loading…" msgstr "" -#: src/components/status.jsx:3247 +#: src/components/status.jsx:3248 msgid "HTML Code" msgstr "" -#: src/components/status.jsx:3264 +#: src/components/status.jsx:3265 msgid "HTML code copied" msgstr "" -#: src/components/status.jsx:3267 +#: src/components/status.jsx:3268 msgid "Unable to copy HTML code" msgstr "" -#: src/components/status.jsx:3279 +#: src/components/status.jsx:3280 msgid "Media attachments:" msgstr "" -#: src/components/status.jsx:3301 +#: src/components/status.jsx:3302 msgid "Account Emojis:" msgstr "" -#: src/components/status.jsx:3332 -#: src/components/status.jsx:3377 +#: src/components/status.jsx:3333 +#: src/components/status.jsx:3378 msgid "static URL" msgstr "" -#: src/components/status.jsx:3346 +#: src/components/status.jsx:3347 msgid "Emojis:" msgstr "" -#: src/components/status.jsx:3391 +#: src/components/status.jsx:3392 msgid "Notes:" msgstr "" -#: src/components/status.jsx:3395 +#: src/components/status.jsx:3396 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgstr "" -#: src/components/status.jsx:3401 +#: src/components/status.jsx:3402 msgid "Polls are not interactive, becomes a list with vote counts." msgstr "" -#: src/components/status.jsx:3406 +#: src/components/status.jsx:3407 msgid "Media attachments can be images, videos, audios or any file types." msgstr "" -#: src/components/status.jsx:3412 +#: src/components/status.jsx:3413 msgid "Post could be edited or deleted later." msgstr "" -#: src/components/status.jsx:3418 +#: src/components/status.jsx:3419 msgid "Preview" msgstr "" -#: src/components/status.jsx:3427 +#: src/components/status.jsx:3428 msgid "Note: This preview is lightly styled." msgstr "" #. [Name] [Visibility icon] boosted -#: src/components/status.jsx:3671 +#: src/components/status.jsx:3672 msgid "<0/> <1/> boosted" msgstr ""