Commit db8882e9

mo khan <mo@mokhan.ca>
2014-05-17 18:15:50
extract button text to en.yml.
1 parent b8aaa5a
Changed files (2)
app
config
locales
app/views/shared/_account_nav.html.erb
@@ -7,7 +7,7 @@
       <li class="<%= selected == :password ? "active" : "" %>"><%= link_to "Password", pwd_path %></li>
       <li class="<%= selected == :picture ? "active" : "" %>"><%= link_to "Picture", edit_avatar_path(current_user) %></li>
       <li class="pull-right">
-        <%= link_to "Logout", destroy_user_session_path, class: "btn btn-inverse" %>
+        <%= link_to t('.logout'), destroy_user_session_path, class: "btn btn-inverse" %>
       </li>
     </ul>
 
config/locales/en.yml
@@ -28,3 +28,6 @@ en:
     updated: 'Your password was updated.'
   profile_saved: 'Your settings have been updated successfully!'
   avatar_uploaded: 'Your avatar has been updated.'
+  shared:
+    account_nav:
+      logout: 'Log Out'