From 4df13d56e19b3eb9b94cfe20de477fa9fab3c6f3 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Fri, 3 Dec 2010 20:42:02 +0100 Subject: [PATCH] made that latest change translatable --- app/controllers/services_controller.rb | 2 +- config/locales/diaspora/en.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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,"