From 597a930c74e92c2883e445198a3970e8856df9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 30 Mar 2010 20:06:56 +0200 Subject: [PATCH] We do not use t() helpers in views, so there is no reason why this particular one should use them. --- app/views/devise/shared/_links.erb | 10 +++++----- config/locales/en.yml | 6 ------ test/integration/confirmable_test.rb | 2 +- test/integration/lockable_test.rb | 4 ++-- test/integration/recoverable_test.rb | 2 +- 5 files changed, 9 insertions(+), 15 deletions(-) diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb index 664b7dc2..56b9cc73 100644 --- a/app/views/devise/shared/_links.erb +++ b/app/views/devise/shared/_links.erb @@ -1,19 +1,19 @@ <%- if controller_name != 'sessions' %> - <%= link_to t('devise.sessions.link'), new_session_path(resource_name) %>
+ <%= link_to "Sign in", new_session_path(resource_name) %>
<% end -%> <%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to t('devise.registrations.link'), new_registration_path(resource_name) %>
+ <%= link_to "Sign up", new_registration_path(resource_name) %>
<% end -%> <%- if devise_mapping.recoverable? && controller_name != 'passwords' %> - <%= link_to t('devise.passwords.link'), new_password_path(resource_name) %>
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %>
<% end -%> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to t('devise.confirmations.link'), new_confirmation_path(resource_name) %>
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
<% end -%> <%- if devise_mapping.lockable? && controller_name != 'unlocks' %> - <%= link_to t('devise.unlocks.link'), new_unlock_path(resource_name) %>
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
<% end -%> diff --git a/config/locales/en.yml b/config/locales/en.yml index 2887aa3a..51c991c0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -7,7 +7,6 @@ en: devise: sessions: - link: 'Sign in' signed_in: 'Signed in successfully.' signed_out: 'Signed out successfully.' unauthenticated: 'You need to sign in or sign up before continuing.' @@ -18,24 +17,19 @@ en: timeout: 'Your session expired, please sign in again to continue.' inactive: 'Your account was not activated yet.' passwords: - link: 'Forgot password?' send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.' updated: 'Your password was changed successfully. You are now signed in.' confirmations: - link: "Didn't receive confirmation instructions?" send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' confirmed: 'Your account was successfully confirmed. You are now signed in.' registrations: - link: 'Sign up' signed_up: 'You have signed up successfully.' updated: 'You updated your account successfully.' destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.' unlocks: - link: "Didn't receive unlock instructions?" send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.' unlocked: 'Your account was successfully unlocked. You are now signed in.' mailer: confirmation_instructions: 'Confirmation instructions' reset_password_instructions: 'Reset password instructions' unlock_instructions: 'Unlock Instructions' - diff --git a/test/integration/confirmable_test.rb b/test/integration/confirmable_test.rb index 46338dc3..07a35059 100644 --- a/test/integration/confirmable_test.rb +++ b/test/integration/confirmable_test.rb @@ -11,7 +11,7 @@ class ConfirmationTest < ActionController::IntegrationTest ActionMailer::Base.deliveries.clear visit new_user_session_path - click_link 'Didn\'t receive confirmation instructions?' + click_link "Didn't receive confirmation instructions?" fill_in 'email', :with => user.email click_button 'Resend confirmation instructions' diff --git a/test/integration/lockable_test.rb b/test/integration/lockable_test.rb index 4c85872a..49febcf4 100644 --- a/test/integration/lockable_test.rb +++ b/test/integration/lockable_test.rb @@ -11,7 +11,7 @@ class LockTest < ActionController::IntegrationTest ActionMailer::Base.deliveries.clear visit new_user_session_path - click_link 'Didn\'t receive unlock instructions?' + click_link "Didn't receive unlock instructions?" fill_in 'email', :with => user.email click_button 'Resend unlock instructions' @@ -26,7 +26,7 @@ class LockTest < ActionController::IntegrationTest ActionMailer::Base.deliveries.clear visit new_user_session_path - click_link 'Didn\'t receive unlock instructions?' + click_link "Didn't receive unlock instructions?" fill_in 'email', :with => user.email click_button 'Resend unlock instructions' diff --git a/test/integration/recoverable_test.rb b/test/integration/recoverable_test.rb index 52abdbb9..c75f9f54 100644 --- a/test/integration/recoverable_test.rb +++ b/test/integration/recoverable_test.rb @@ -4,7 +4,7 @@ class PasswordTest < ActionController::IntegrationTest def visit_new_password_path visit new_user_session_path - click_link 'Forgot password?' + click_link 'Forgot your password?' end def request_forgot_password(&block)