Skip to content

Commit

Permalink
Update Page#visible translation
Browse files Browse the repository at this point in the history
The visible toggle is used to decide if the pages slug should appear in childrens url-paths.
  • Loading branch information
tvdeyen committed Jun 2, 2020
1 parent b382a2d commit 689bc33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions config/locales/alchemy.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ en:
page_restricted: "restricted"
page_states:
visible:
"true": "Page is visible in navigation."
"false": "Page is not visible in navigation."
"true": "Slug appears in childrens url-paths."
"false": "Slug does not appear in childrens url-paths."
public:
"true": "Page is published."
"false": "Page is unpublished."
Expand All @@ -496,7 +496,6 @@ en:
page_status: "Status"
page_title: "Title"
page_type: "Type"
page_visible_in_navigation: "visible in the navigation"
page_was_created: "Was created"
page_was_updated: "Was updated"
pages:
Expand Down Expand Up @@ -826,7 +825,7 @@ en:
title: "Title"
updated_at: "Updated at"
urlname: "Urlname"
visible: "visible in navigation"
visible: "slug appears in childrens url-paths"
alchemy/picture:
image_file_name: "Filename"
image_file_height: "Height"
Expand Down
2 changes: 1 addition & 1 deletion spec/models/alchemy/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ module Alchemy
end

it "returns a translated status string for visible status" do
expect(page.status_title(:visible)).to eq("Page is visible in navigation.")
expect(page.status_title(:visible)).to eq("Slug appears in childrens url-paths.")
end

it "returns a translated status string for locked status" do
Expand Down

0 comments on commit 689bc33

Please sign in to comment.