0
@@ -30,10 +30,10 @@ class UsersController < BaseController
0
if @user and @user.activate
0
self.current_user = @user
0
redirect_to welcome_photo_user_path(@user)
0
- flash[:notice] = "Thanks for activating your account!"
0
+ flash[:notice] = "Thanks for activating your account!"
.l 0
- flash[:error] =
"Account activation failed. Your account may already be active. Try logging in or e-mail #{AppConfig.support_email} for help."0
+ flash[:error] =
:account_activation_error.l_with_args (:email => AppConfig.support_email) 0
redirect_to signup_path
0
@@ -81,7 +81,7 @@ class UsersController < BaseController
0
@user.role = Role[:member]
0
create_friendship_with_inviter(@user, params)
0
- flash[:notice] =
"Thanks for signing up! You should receive an e-mail confirmation shortly at #{@user.email}"0
+ flash[:notice] =
:email_signup_thanks.l_with_args(:email => @user.email) 0
redirect_to signup_completed_user_path(@user)
0
rescue ActiveRecord::RecordInvalid
0
render :action => 'new'
0
@@ -119,7 +119,7 @@ class UsersController < BaseController
0
@user.track_activity(:updated_profile)
0
@user.tag_with(params[:tag_list] || '')
0
- flash[:notice] = "Your changes were saved."
0
+ flash[:notice] = "Your changes were saved."
.l0
unless params[:welcome]
0
redirect_to user_path(@user)
0
@@ -133,9 +133,9 @@ class UsersController < BaseController
0
- flash[:notice] = "The user was deleted."
0
+ flash[:notice] = "The user was deleted."
.l0
- flash[:error] = "You can't delete that user."
0
+ flash[:error] = "You can't delete that user."
.l0
format.html { redirect_to users_url }
0
@@ -147,7 +147,7 @@ class UsersController < BaseController
0
@photo = Photo.find(params[:photo_id])
0
- flash[:notice] = "Your changes were saved."
0
+ flash[:notice] = "Your changes were saved."
.l0
redirect_to user_photo_path(@user, @photo)
0
rescue ActiveRecord::RecordInvalid
0
@@ -166,7 +166,7 @@ class UsersController < BaseController
0
@user.attributes = params[:user]
0
- flash[:notice] = "Your changes were saved."
0
+ flash[:notice] = "Your changes were saved."
.l0
redirect_to user_path(@user)
0
rescue ActiveRecord::RecordInvalid
0
@@ -186,7 +186,7 @@ class UsersController < BaseController
0
- flash[:notice] = "Your changes were saved."
0
+ flash[:notice] = "Your changes were saved."
.l0
redirect_to edit_pro_details_user_path(@user)
0
@@ -235,7 +235,7 @@ class UsersController < BaseController
0
- flash[:notice] =
"You've completed the #{AppConfig.community_name} walk-through. Now you can continue exploring!"0
+ flash[:notice] =
:walkthrough_complete.l_with_args(:site => AppConfig.community_name) 0
@@ -247,10 +247,10 @@ class UsersController < BaseController
0
UserNotifier.deliver_reset_password(@user)
0
- flash[:info] = "Your password has been reset and emailed to you."
0
+ flash[:info] = "Your password has been reset and emailed to you."
.l0
- flash[:error] = "Sorry. We don't recognize that email address."
0
+ flash[:error] = "Sorry. We don't recognize that email address."
.l0
@@ -262,10 +262,10 @@ class UsersController < BaseController
0
UserNotifier.deliver_forgot_username(@user)
0
- flash[:info] = "Your username was emailed to you."
0
+ flash[:info] = "Your username was emailed to you."
.l0
- flash[:error] = "Sorry. We don't recognize that email address."
0
+ flash[:error] = "Sorry. We don't recognize that email address."
.l
Comments
No one has commented yet.