Skip to content

Commit

Permalink
Renamed boosted -> reposted (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
devotaaabel committed Jan 18, 2024
1 parent 9997565 commit e62fc4a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
15 changes: 1 addition & 14 deletions core/ui/common/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,10 @@
<string name="report_user">Report %s</string>
<string name="delete_post">Delete</string>

<string name="error_voting">Error voting</string>
<string name="error_boosting">Error boosting</string>
<string name="error_undoing_boost">Error undoing boost</string>
<string name="error_adding_favorite">Error adding favorite</string>
<string name="error_removing_favorite">Error removing favorite</string>
<string name="error_muting_account">Error muting account</string>
<string name="error_unmuting_account">Error unmuting account</string>
<string name="error_blocking_account">Error blocking account</string>
<string name="error_unblocking_account">Error unblocking account</string>
<string name="error_following_account">Error following account</string>
<string name="error_unfollowing_account">Error unfollowing account</string>
<string name="error_deleting_post">Error deleting post</string>

<string name="feed_recommendations_why_am_i_seeing_this">Why am I seeing this?</string>
<string name="feed_recommendations_reason_you_are_seeing_this">You\'re seeing this because it\'s the same thing we show to everyone.</string>

<string name="user_has_boosted_post">%s boosted</string>
<string name="user_has_reposted_post">%s reposted</string>
<string name="post_is_in_reply_to_user">In reply to %s</string>

<string name="recommended_for_you">Recommended for you</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fun Status.toPostContentUiState(
private fun Status.toTopRowMetaDataUiState(): TopRowMetaDataUiState? =
if (boostedStatus != null) {
TopRowMetaDataUiState(
text = StringFactory.resource(R.string.user_has_boosted_post, account.username),
text = StringFactory.resource(R.string.user_has_reposted_post, account.username),
iconType = TopRowIconType.BOOSTED,
)
} else if (inReplyToAccountName != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BoostStatus internal constructor(
statusRepository.updateBoosted(statusId, false)
}
showSnackbar(
text = StringFactory.resource(R.string.error_boosting),
text = StringFactory.resource(R.string.error_reposting),
isError = true,
)
throw BoostStatusFailedException(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UndoBoostStatus internal constructor(
statusRepository.updateBoosted(boostedStatusId, true)
}
showSnackbar(
text = StringFactory.resource(R.string.error_undoing_boost),
text = StringFactory.resource(R.string.error_undoing_repost),
isError = true,
)
throw UndoBoostStatusFailedException(e)
Expand Down
4 changes: 2 additions & 2 deletions core/usecase/mastodon/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="error_voting">Error voting</string>
<string name="error_boosting">Error boosting</string>
<string name="error_undoing_boost">Error undoing boost</string>
<string name="error_reposting">Error reposting</string>
<string name="error_undoing_repost">Error undoing repost</string>
<string name="error_adding_favorite">Error adding favorite</string>
<string name="error_removing_favorite">Error removing favorite</string>
<string name="error_muting_account">Error muting account</string>
Expand Down

0 comments on commit e62fc4a

Please sign in to comment.