]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
' doesn't need to be escaped inside "" in YAML strings. This was showing up as "you...
[rails.git] / app / controllers / user_controller.rb
index 9c2787cc84c6002359775c9dde2c0b198d65a9e8..cd38dd9406592f0ee957bd0334dc22c4d8d201d1 100644 (file)
@@ -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
@@ -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