]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_controller.rb
Cleanup some of the oauth stuff:
[rails.git] / app / controllers / oauth_controller.rb
index c8ae122776112e6b6710aa90c241a58f0ed7577a..8af8af5e7bd38302778f4a5d64d85d46e8ecbcdf 100644 (file)
@@ -75,7 +75,7 @@ class OauthController < ApplicationController
     @token = @user.oauth_tokens.find_by_token params[:token]
     if @token
       @token.invalidate!
-      flash[:notice] = "You've revoked the token for #{@token.client_application.name}"
+      flash[:notice] = t('oauth.revoke.flash', :application => @token.client_application.name)
     end
     logger.info "about to redirect"
     redirect_to :controller => 'oauth_clients', :action => 'index'