]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
user.login.account suspended so translators don't have to type out anchors
[rails.git] / app / controllers / user_controller.rb
index 1bab42266e08bf3f47cb91db9afade9362c4cc81..d86c9a4bafef12ae71260ad06ba43002b8084ac5 100644 (file)
@@ -40,7 +40,7 @@ class UserController < ApplicationController
     if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"})
       render :action => 'new'
     elsif params[:decline]
-      redirect_to t 'user.terms.declined'
+      redirect_to t('user.terms.declined')
     else
       @user = User.new(params[:user])
 
@@ -197,7 +197,8 @@ class UserController < ApplicationController
       elsif User.authenticate(:username => email_or_display_name, :password => pass, :pending => true)
         flash.now[:error] = t 'user.login.account not active'
       elsif User.authenticate(:username => email_or_display_name, :password => pass, :suspended => true)
-        flash.now[:error] = t 'user.login.account suspended'
+        webmaster = link_to t('user.login.webmaster'), "mailto:webmaster@openstreetmap.org"
+        flash.now[:error] = t 'user.login.account suspended', :webmaster => webmaster
       else
         flash.now[:error] = t 'user.login.auth failure'
       end