diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index c169c0342..4d89e5303 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -36,7 +36,7 @@ class ServicesController < ApplicationController def failure Rails.logger.info "error in oauth #{params.inspect}" - flash[:error] = "there was an error connecting that service" + flash[:error] = t('services.failure.error') redirect_to services_url end diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 3a0f04da1..9deb313b6 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -373,6 +373,8 @@ en: success: "Authentication successful." destroy: success: "Successfully destroyed authentication." + failure: + error: "there was an error connecting that service" notifier: hello: "Hello %{name}!" love: "love,"