Skip to content

Commit

Permalink
AO3-6768
Browse files Browse the repository at this point in the history
i18n format, reference in cucumber test, single quotes
  • Loading branch information
mystyrust committed Sep 18, 2024
1 parent 034d106 commit b1e42a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def drafts
return
end

@page_subtitle = ts("%{username} - Drafts", username: @user.login)
@page_subtitle = t('users.page_subtitle.drafts_page', username: @user.login)

if params[:pseud_id]
@pseud = @user.pseuds.find_by(name: params[:pseud_id])
Expand Down
2 changes: 2 additions & 0 deletions config/locales/controllers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ en:
ban_notice_html: Your account has been banned. You are not permitted to add or edit archive content. Please %{contact_abuse_link} for more information.
contact_abuse: contact Abuse
suspension_notice_html: Your account has been suspended until %{suspended_until}. You may not add or edit content until your suspension has been resolved. Please %{contact_abuse_link} for more information.
page_subtitle:
drafts_page: "%{username} - Drafts"
1 change: 1 addition & 0 deletions features/works/work_drafts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Feature: Work Drafts
And the draft "draft to post"
When I am on drafter's works page
Then I should see "Drafts (1)"
And the page title should include "drafter - Drafts"
When I follow "Drafts (1)"
Then I should see "draft to post"
And I should see "Post Draft" within "#main .own.work.blurb .actions"
Expand Down

0 comments on commit b1e42a3

Please sign in to comment.