X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1c9b82a05caf439f16d830566d4d630e46185115..6bcc50e27402e447ba0986a0d63706eaddd7e0f6:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 2659232cd..cd38dd940 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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