diff options
author | antony liu <sun_apollo@yeah.net> | 2019-05-28 20:01:48 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-28 20:01:48 +0300 |
commit | f9a50565410d18562444f99e1354152163217dc0 (patch) | |
tree | 5d49531a967dc8a4ec59c45251ed8d980ffa3f55 /app/controllers | |
parent | e6c6acaf0750700614e9a28d1eb42ae6a206f90f (diff) |
Externalize strings of notifications page in user profile
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/profiles/notifications_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/profiles/notifications_controller.rb b/app/controllers/profiles/notifications_controller.rb index b719b70c56e..617e5bb7cb3 100644 --- a/app/controllers/profiles/notifications_controller.rb +++ b/app/controllers/profiles/notifications_controller.rb @@ -14,9 +14,9 @@ class Profiles::NotificationsController < Profiles::ApplicationController result = Users::UpdateService.new(current_user, user_params.merge(user: current_user)).execute if result[:status] == :success - flash[:notice] = "Notification settings saved" + flash[:notice] = _("Notification settings saved") else - flash[:alert] = "Failed to save new settings" + flash[:alert] = _("Failed to save new settings") end redirect_back_or_default(default: profile_notifications_path) |