Skip to content

Instantly share code, notes, and snippets.

@isosphere
Created December 18, 2022 16:40
Show Gist options
  • Save isosphere/37bb34ac8b894460b2144b7397eec896 to your computer and use it in GitHub Desktop.
Save isosphere/37bb34ac8b894460b2144b7397eec896 to your computer and use it in GitHub Desktop.
A fun patch for Mastodon 4.0.2 to Change "Publish" to "Toot" and "Favourites" to "Booped Toots"
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index b8cb24799..0e4686e63 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -104,7 +104,7 @@
"column.direct": "Direct messages",
"column.directory": "Browse profiles",
"column.domain_blocks": "Blocked domains",
- "column.favourites": "Favourites",
+ "column.favourites": "Booped Toots",
"column.follow_requests": "Follow requests",
"column.home": "Home",
"column.lists": "Lists",
@@ -137,7 +137,7 @@
"compose_form.poll.remove_option": "Remove this choice",
"compose_form.poll.switch_to_multiple": "Change poll to allow multiple choices",
"compose_form.poll.switch_to_single": "Change poll to allow for a single choice",
- "compose_form.publish": "Publish",
+ "compose_form.publish": "Toot!",
"compose_form.publish_loud": "{publish}!",
"compose_form.save_changes": "Save changes",
"compose_form.sensitive.hide": "{count, plural, one {Mark media as sensitive} other {Mark media as sensitive}}",
@@ -166,7 +166,7 @@
"confirmations.mute.explanation": "This will hide posts from them and posts mentioning them, but it will still allow them to see your posts and follow you.",
"confirmations.mute.message": "Are you sure you want to mute {name}?",
"confirmations.redraft.confirm": "Delete & redraft",
- "confirmations.redraft.message": "Are you sure you want to delete this post and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned.",
+ "confirmations.redraft.message": "Are you sure you want to delete this post and re-draft it? Booped toots and boosts will be lost, and replies to the original post will be orphaned.",
"confirmations.reply.confirm": "Reply",
"confirmations.reply.message": "Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?",
"confirmations.unfollow.confirm": "Unfollow",
@@ -215,8 +215,8 @@
"empty_column.direct": "You don't have any direct messages yet. When you send or receive one, it will show up here.",
"empty_column.domain_blocks": "There are no blocked domains yet.",
"empty_column.explore_statuses": "Nothing is trending right now. Check back later!",
- "empty_column.favourited_statuses": "You don't have any favourite posts yet. When you favourite one, it will show up here.",
- "empty_column.favourites": "No one has favourited this post yet. When someone does, they will show up here.",
+ "empty_column.favourited_statuses": "You don't have any booped toots yet. When you boop one, it will show up here.",
+ "empty_column.favourites": "No one has booped this toot yet. When someone does, they will show up here.",
"empty_column.follow_recommendations": "Looks like no suggestions could be generated for you. You can try using search to look for people you might know or explore trending hashtags.",
"empty_column.follow_requests": "You don't have any follow requests yet. When you receive one, it will show up here.",
"empty_column.hashtag": "There is nothing in this hashtag yet.",
@@ -374,7 +374,7 @@
"navigation_bar.domain_blocks": "Blocked domains",
"navigation_bar.edit_profile": "Edit profile",
"navigation_bar.explore": "Explore",
- "navigation_bar.favourites": "Favourites",
+ "navigation_bar.favourites": "Booped Toots",
"navigation_bar.filters": "Muted words",
"navigation_bar.follow_requests": "Follow requests",
"navigation_bar.follows_and_followers": "Follows and followers",
@@ -390,7 +390,7 @@
"not_signed_in_indicator.not_signed_in": "You need to sign in to access this resource.",
"notification.admin.report": "{name} reported {target}",
"notification.admin.sign_up": "{name} signed up",
- "notification.favourite": "{name} favourited your post",
+ "notification.favourite": "{name} booped your toot",
"notification.follow": "{name} followed you",
"notification.follow_request": "{name} has requested to follow you",
"notification.mention": "{name} mentioned you",
@@ -404,7 +404,7 @@
"notifications.column_settings.admin.report": "New reports:",
"notifications.column_settings.admin.sign_up": "New sign-ups:",
"notifications.column_settings.alert": "Desktop notifications",
- "notifications.column_settings.favourite": "Favourites:",
+ "notifications.column_settings.favourite": "Booped Toots:",
"notifications.column_settings.filter_bar.advanced": "Display all categories",
"notifications.column_settings.filter_bar.category": "Quick filter bar",
"notifications.column_settings.filter_bar.show_bar": "Show filter bar",
@@ -422,7 +422,7 @@
"notifications.column_settings.update": "Edits:",
"notifications.filter.all": "All",
"notifications.filter.boosts": "Boosts",
- "notifications.filter.favourites": "Favourites",
+ "notifications.filter.favourites": "Booped Toots",
"notifications.filter.follows": "Follows",
"notifications.filter.mentions": "Mentions",
"notifications.filter.polls": "Poll results",
@@ -517,7 +517,7 @@
"search.placeholder": "Search",
"search.search_or_paste": "Search or paste URL",
"search_popout.search_format": "Advanced search format",
- "search_popout.tips.full_text": "Simple text returns posts you have written, favourited, boosted, or have been mentioned in, as well as matching usernames, display names, and hashtags.",
+ "search_popout.tips.full_text": "Simple text returns posts you have written, booped, boosted, or have been mentioned in, as well as matching usernames, display names, and hashtags.",
"search_popout.tips.hashtag": "hashtag",
"search_popout.tips.status": "post",
"search_popout.tips.text": "Simple text returns matching display names, usernames and hashtags",
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 679e356b4..388012f47 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1261,9 +1261,9 @@ en:
sign_up:
subject: "%{name} signed up"
favourite:
- body: 'Your post was favourited by %{name}:'
- subject: "%{name} favourited your post"
- title: New favourite
+ body: '%{name} booped your toot!'
+ subject: "%{name} booped your toot!"
+ title: Got booped
follow:
body: "%{name} is now following you!"
subject: "%{name} is now following you"
@isosphere
Copy link
Author

isosphere commented Dec 18, 2022

Run npm run build:production after applying and restart the web service.

You might have to do the usual asset precompiling too that you do when upgrading, I'm not sure, but the above is absolutely necessary.

I don't think you have to do anything else, I ran this after unstashing my changes following an upgrade and haven't noticed any problem with the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment