Skip to content

Commit

Permalink
AO3-6769 replace ts with t helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kcamacho committed Feb 17, 2025
1 parent 8051a34 commit deb6d6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/series_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def show

# sets the page title with the data for the series
if @series.unrevealed?
@page_subtitle = ts("Mystery Series")
@page_subtitle = t(".unrevealed_series")
else
@page_title = get_page_title(@series.allfandoms.collect(&:name).join(", "), @series.anonymous? ? ts("Anonymous") : @series.allpseuds.collect(&:byline).join(", "), @series.title)
@page_title = get_page_title(@series.allfandoms.collect(&:name).join(", "), @series.anonymous? ? t(".anonymous") : @series.allpseuds.collect(&:byline).join(", "), @series.title)
end

if current_user.respond_to?(:subscriptions)
Expand Down
3 changes: 3 additions & 0 deletions config/locales/controllers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ en:
series:
index:
page_title: "%{username} - Series"
show:
anonymous: Anonymous
unrevealed_series: Mystery Series
tag_wranglings:
index:
page_subtitle: fandoms
Expand Down

0 comments on commit deb6d6c

Please sign in to comment.