From 6c495315d380e365c741bafccc5c5aa05f00c01d Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sun, 12 Feb 2023 01:02:08 +0900 Subject: [PATCH] [clean] Remove unused translations --- src/config/locales/en/translation.json | 87 +++++++------------ .../components/TimelineSpace/Compose.vue | 34 +++----- 2 files changed, 47 insertions(+), 74 deletions(-) diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json index ef520396..7c2933ac 100644 --- a/src/config/locales/en/translation.json +++ b/src/config/locales/en/translation.json @@ -55,7 +55,7 @@ "favourite": "Favourited", "bookmark": "Bookmarks", "local": "Local timeline", - "public": "Public timeline", + "public": "Federated timeline", "hashtag": "Hashtags", "search": "Search", "lists": "Lists" @@ -68,20 +68,12 @@ "follow_requests": "Follow requests", "direct_messages": "Direct messages", "local": "Local timeline", - "public": "Public timeline", + "public": "Federated timeline", "hashtag": "Hashtags", "search": "Search", "lists": "Lists", "members": "Members", - "option": { - "title": "Option", - "show_reblogs": "Show boosts", - "show_replies": "Show replies", - "apply": "Apply" - }, - "new_toot": "Publish", - "reload": "Reload", - "settings": "Settings" + "reload": "Reload" }, "settings": { "title": "Settings", @@ -104,13 +96,6 @@ }, "timeline": { "title": "Timeline", - "unread_notification": { - "title": "Unread notifications", - "description": "Customize unread notifications for each timeline.", - "direct": "Direct messages", - "local": "Local timeline", - "public": "Public timeline" - }, "use_marker": { "title": "Load the timeline from the last reading position", "home": "Home", @@ -280,37 +265,6 @@ } }, "modals": { - "new_toot": { - "title": "New post", - "cw": "Write your warning here", - "status": "What's on your mind?", - "cancel": "Cancel", - "toot": "Publish", - "close_confirm": "Are you sure you want to discard this post?", - "close_confirm_ok": "Discard", - "close_confirm_cancel": "Continue editing", - "description": "Add alternate text for this media", - "footer": { - "add_image": "Add images", - "poll": "Add a poll", - "change_visibility": "Change visibility", - "change_sensitive": "Mark media as sensitive", - "add_cw": "Add content warnings", - "pined_hashtag": "Pinned hashtag" - }, - "poll": { - "add_choice": "Add an option", - "expires": { - "5_minutes": "5 minutes", - "30_minutes": "30 minutes", - "1_hour": "1 hour", - "6_hours": "6 hours", - "1_day": "1 day", - "3_days": "3 days", - "7_days": "7 days" - } - } - }, "jump": { "jump_to": "Jump to..." }, @@ -331,13 +285,10 @@ "title": "Keyboard shortcuts", "ctrl_number": "Switch accounts", "ctrl_k": "Jump to other timelines", - "ctrl_n": "Open the new post dialog", - "ctrl_enter": "Publish the post", + "ctrl_enter": "Send the post", "ctrl_r": "Refresh current timeline", "j": "Select the next post", "k": "Select the previous post", - "h": "Switch focus to the left column", - "l": "Switch focus to the right column", "r": "Reply to the selected post", "b": "Boost the selected post", "f": "Favourite the selected post", @@ -509,7 +460,7 @@ "require_domain_name": "A domain name is required", "domain_format": "Please only enter the domain name" }, - "new_toot": { + "compose": { "toot_length": "Post length should be between {{min}} and {{max}}", "attach_length": "You can only attach up to {{max}} image", "attach_length_plural": "You can only attach up to {{max}} images", @@ -554,5 +505,33 @@ "title": "Poll expired", "body": "{{username}}'s poll has ended" } + }, + "compose": { + "title": "New post", + "cw": "Write your warning here", + "status": "What's on your mind?", + "cancel": "Cancel", + "toot": "Post", + "description": "Add alternate text for this media", + "footer": { + "add_image": "Add images", + "poll": "Add a poll", + "change_visibility": "Change visibility", + "change_sensitive": "Mark media as sensitive", + "add_cw": "Add content warnings", + "pined_hashtag": "Pinned hashtag" + }, + "poll": { + "add_choice": "Add an option", + "expires": { + "5_minutes": "5 minutes", + "30_minutes": "30 minutes", + "1_hour": "1 hour", + "6_hours": "6 hours", + "1_day": "1 day", + "3_days": "3 days", + "7_days": "7 days" + } + } } } diff --git a/src/renderer/components/TimelineSpace/Compose.vue b/src/renderer/components/TimelineSpace/Compose.vue index c6baeb0c..211c3111 100644 --- a/src/renderer/components/TimelineSpace/Compose.vue +++ b/src/renderer/components/TimelineSpace/Compose.vue @@ -3,14 +3,8 @@ - - + +
@@ -18,7 +12,7 @@
- {{ $t('modals.new_toot.footer.change_sensitive') }} + {{ $t('compose.footer.change_sensitive') }}
    @@ -31,7 +25,7 @@
- {{ $t('modals.new_toot.poll.add_choice') }} + {{ $t('compose.poll.add_choice') }} @@ -47,7 +41,7 @@
- +