Skip to content

Commit

Permalink
AO3-6365 Text tweaks for muting and blocking (#4446)
Browse files Browse the repository at this point in the history
* AO3-6365 Text tweaks for muting and blocking

* AO3-6365 Update i18n key and link for resetting skin FAQ
  • Loading branch information
sarken authored Jan 31, 2023
1 parent 06b4585 commit fd4c70c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/muted/users/confirm_mute.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</p>

<p>
<%= t(".site_skin_warning_html", restore_site_skin_faq_link: link_to(t(".restore_site_skin_faq_link_test"), archive_faq_url("skins-and-archive-interface", anchor: :restoresiteskin))) %>
<%= t(".site_skin_warning_html", restore_site_skin_faq_link: link_to(t(".restore_site_skin_faq_link_text"), archive_faq_path("skins-and-archive-interface", anchor: :restoresiteskin))) %>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/muted/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</p>

<p>
<%= t(".site_skin_warning_html", restore_site_skin_faq_link: link_to(t(".restore_site_skin_faq_link_test"), archive_faq_url("skins-and-archive-interface", anchor: :restoresiteskin))) %>
<%= t(".site_skin_warning_html", restore_site_skin_faq_link: link_to(t(".restore_site_skin_faq_link_text"), archive_faq_path("skins-and-archive-interface", anchor: :restoresiteskin))) %>
</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions config/locales/models/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ en:
blocked:
blank: "Sorry, we couldn't find a user matching that name."
self: "Sorry, you can't block yourself."
official: "Sorry, you can't block an official account."
official: "Sorry, you can't block an official user."
limit: "Sorry, you have blocked too many accounts."
mute:
format: "%{message}"
Expand All @@ -20,7 +20,7 @@ en:
muted:
blank: "Sorry, we couldn't find a user matching that name."
self: "Sorry, you can't mute yourself."
official: "Sorry, you can't mute an official account."
official: "Sorry, you can't mute an official user."
limit: "Sorry, you have muted too many accounts."
comment:
attributes:
Expand Down
6 changes: 3 additions & 3 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ en:
block_users_instead_html: "To prevent a user from commenting on your works or replying to your comments elsewhere on the site, visit %{blocked_users_link}."
blocked_users_link_text: "your Blocked Users page"
site_skin_warning_html: "Please note that if you are not using the default site skin, muting may not work properly. The Skins and Archive Interface FAQ has %{restore_site_skin_faq_link}."
restore_site_skin_faq_link_test: "instructions for reverting to the default site skin"
restore_site_skin_faq_link_text: "instructions for reverting to the default site skin"
confirm_mute:
title: "Mute %{name}"
button: "Yes, Mute User"
Expand All @@ -479,7 +479,7 @@ en:
block_users_instead_html: "To prevent a user from commenting on your works or replying to your comments elsewhere on the site, visit %{blocked_users_link}."
blocked_users_link_text: "your Blocked Users page"
site_skin_warning_html: "Please note that if you are not using the default site skin, muting may not work properly. The Skins and Archive Interface FAQ has %{restore_site_skin_faq_link}."
restore_site_skin_faq_link_test: "instructions for reverting to the default site skin"
restore_site_skin_faq_link_text: "instructions for reverting to the default site skin"
confirm_unmute:
title: "Unmute %{name}"
button: "Yes, Unmute User"
Expand All @@ -488,7 +488,7 @@ en:
sure_html: "Are you sure you want to %{unmute} %{username}?"
resume:
intro: "Unmuting a user allows you to:"
see_content: "see their works, series, bookmarks and comments on the site"
see_content: "see their works, series, bookmarks, and comments on the site"
preferences:
index:
blocked_users: "Blocked Users"
Expand Down
2 changes: 1 addition & 1 deletion features/users/blocking.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: Blocking
And I am logged in as "blocker"
When I go to pest's user page
And I follow "Block"
Then I should see "Sorry, you can't block an official account."
Then I should see "Sorry, you can't block an official user."
And I should not see a "Yes, Block User" button

Scenario: Users cannot block themselves
Expand Down
2 changes: 1 addition & 1 deletion features/users/muting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Feature: Muting
And I am logged in as "muter"
When I go to pest's user page
And I follow "Mute"
Then I should see "Sorry, you can't mute an official account."
Then I should see "Sorry, you can't mute an official user."
And I should not see a "Yes, Mute User" button

Scenario: Users cannot mute themselves
Expand Down

0 comments on commit fd4c70c

Please sign in to comment.