From 3ce6ac0ce2e482bc1f2784c3c7f716172b151902 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 15 Nov 2016 23:02:57 +0100 Subject: Adding some localizations --- app/controllers/settings/preferences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/settings/preferences_controller.rb') diff --git a/app/controllers/settings/preferences_controller.rb b/app/controllers/settings/preferences_controller.rb index 7acef5e25..4dc2cd61f 100644 --- a/app/controllers/settings/preferences_controller.rb +++ b/app/controllers/settings/preferences_controller.rb @@ -15,7 +15,7 @@ class Settings::PreferencesController < ApplicationController current_user.settings(:notification_emails).mention = user_params[:notification_emails][:mention] == '1' if current_user.save - redirect_to settings_preferences_path, notice: 'Changes successfully saved!' + redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg') else render action: :show end -- cgit