X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0b845fc6025f2fb84a4cf4fa10cbb71084843a7..9a051df2d22dbdfe43c2014ec70ac992aa630da3:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 9c2787cc8..b58a6a71c 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -93,7 +93,7 @@ class UserController < ApplicationController if user token = user.tokens.create Notifier.deliver_lost_password(user, token) - flash[:notice] = I18n.t('user.lost_password.notice.email on way') + flash[:notice] = I18n.t('user.lost_password.notice email on way') else flash[:notice] = I18n.t('user.lost_password.notice email cannot find') end @@ -154,9 +154,9 @@ class UserController < ApplicationController end return elsif User.authenticate(:username => email_or_display_name, :password => pass, :inactive => true) - @notice = "Sorry, your account is not active yet.
Please click on the link in the account confirmation email to activate your account." + @notice = I18n.t('user.login.account not active') else - @notice = "Sorry, couldn't log in with those details." + @notice = I18n.t('user.login.auth failure') end end end @@ -186,11 +186,11 @@ class UserController < ApplicationController @user.email_valid = true @user.save! token.destroy - flash[:notice] = 'Confirmed your account, thanks for signing up!' + flash[:notice] = I18n.t('user.confirm.success') session[:user] = @user.id redirect_to :action => 'account', :display_name => @user.display_name else - @notice = 'Something went wrong confirming that user.' + @notice = I18n.t('user.confirm.failure') end end end @@ -206,11 +206,11 @@ class UserController < ApplicationController @user.email_valid = true @user.save! token.destroy - flash[:notice] = 'Confirmed your email address, thanks for signing up!' + flash[:notice] = I18n.t('user.confirm email.success') session[:user] = @user.id redirect_to :action => 'account', :display_name => @user.display_name else - @notice = 'Something went wrong confirming that email address.' + @notice = I18n.t('user.confirm email.failure') end end end