Skip to content

Commit 49529fd

Browse files
committed
AO3-7397 Fix i18n errors
1 parent dcccc06 commit 49529fd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/controllers/skins_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ def update
130130
# Get /skins/1/preview
131131
def preview
132132
flash[:notice] = []
133-
flash[:notice] << t(".preview.skin_title", title: @skin.title)
134-
flash[:notice] << t(".preview.remove_skin")
135-
flash[:notice] << t(".preview.tip")
136-
flash[:notice] << ("<a href='#{skin_path(@skin)}' class='action' role='button'>".html_safe + t(".preview.return_to_skin") + "</a>".html_safe)
133+
flash[:notice] << t(".skin_title", title: @skin.title)
134+
flash[:notice] << t(".remove_skin")
135+
flash[:notice] << t(".tip")
136+
flash[:notice] << ("<a href='#{skin_path(@skin)}' class='action' role='button'>".html_safe + t(".return_to_skin") + "</a>".html_safe)
137137
redirect_to "#{ArchiveConfig.SKIN_PREVIEW_URL}?site_skin=#{@skin.id}"
138138
end
139139

config/locales/controllers/en.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ en:
310310
public_site_page_title: Public Site Skins
311311
public_work_page_title: Public Work Skins
312312
preview:
313-
skin_title: "You are previewing the skin %{title}."
314313
remove_skin: "Go back or click any link to remove the skin."
314+
return_to_skin: Return To Skin To Use
315+
skin_title: "You are previewing the skin %{title}."
315316
tip: "Tip: You can preview any archive page you want by tacking on '?site_skin=[skin_id]' like you can see in the url above."
316-
return_to_skin: "Return To Skin To Use"
317317
stats:
318318
index:
319319
page_title: "%{username} - Stats"

0 commit comments

Comments
 (0)