Commit e9f1eae6
Changed files (7)
app
views
spec
features
support
pages
app/views/layouts/_header.html.erb
@@ -34,7 +34,7 @@
<i class="fa fa-cog"></i> Settings
<% end %>
<%= link_to logout_path, method: :delete, class: 'dropdown-item' do %>
- <i class="fa fa-sign-out"></i> Sign Out
+ <i class="fa fa-sign-out"></i> <%= t('logout') %>
<% end %>
</div>
</li>
config/locales/en.yml
@@ -1,12 +1,22 @@
---
en:
avatar_uploaded: Your avatar has been updated.
+ logout: Sign Out
my:
shared:
my_nav:
- logout: Log Out
+ activity: "Activity"
+ admin: "Admin"
+ avatar: "My Photo"
+ change_password: "Change My Password"
+ dashboard: "Dashboard"
+ favorites: "My Favorites"
+ jobs: "Jobs"
+ my_profile: "My Profile"
+ new_cake: "Cake"
+ new_tutorial: "Tutorial"
+ photos: "Photos"
+ products: "Products"
+ sessions: "Sessions"
+ users: "Users"
profile_saved: Your settings have been updated successfully!
- shared:
- account_nav:
- admin: Admin
- logout: Logout
spec/features/sessions_spec.rb
@@ -17,7 +17,7 @@ describe "Logins" do
end
it "logs the user in" do
- expect(page).to have_content("Log Out")
+ expect(page).to have_content(I18n.t("logout"))
end
it "has no errors" do
spec/support/pages/dashboard_page.rb
@@ -6,6 +6,6 @@ class DashboardPage < WebPage
end
def logout
- click_link("Sign Out")
+ click_link(I18n.t("logout"))
end
end