diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 23:02:57 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 23:02:57 +0100 |
commit | 3ce6ac0ce2e482bc1f2784c3c7f716172b151902 (patch) | |
tree | 89052410c8e7c856bee1049464ee79463a7db48b /app/controllers | |
parent | a4313224d93cd762fd500e687e33247025035af8 (diff) |
Adding some localizations
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/about_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/settings/preferences_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/settings/profiles_controller.rb | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 56ad6365d..7df58444f 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -7,7 +7,6 @@ class AboutController < ApplicationController end def terms - @state = 'TBD' end private 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 diff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rb index bd4fa2c46..deff8fc7e 100644 --- a/app/controllers/settings/profiles_controller.rb +++ b/app/controllers/settings/profiles_controller.rb @@ -11,7 +11,7 @@ class Settings::ProfilesController < ApplicationController def update if @account.update(account_params) - redirect_to settings_profile_path, notice: 'Changes successfully saved!' + redirect_to settings_profile_path, notice: I18n.t('generic.changes_saved_msg') else render action: :show end |