summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/preferences_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles/preferences_controller.rb')
-rw-r--r--app/controllers/profiles/preferences_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/profiles/preferences_controller.rb b/app/controllers/profiles/preferences_controller.rb
index 37ac11dc6a1..318e2765fa3 100644
--- a/app/controllers/profiles/preferences_controller.rb
+++ b/app/controllers/profiles/preferences_controller.rb
@@ -11,9 +11,9 @@ class Profiles::PreferencesController < Profiles::ApplicationController
result = Users::UpdateService.new(current_user, preferences_params.merge(user: user)).execute
if result[:status] == :success
- flash[:notice] = 'Preferences saved.'
+ flash[:notice] = _('Preferences saved.')
else
- flash[:alert] = 'Failed to save preferences.'
+ flash[:alert] = _('Failed to save preferences.')
end
rescue ArgumentError => e
# Raised when `dashboard` is given an invalid value.