0
0
Fork 0

Adding some localizations

This commit is contained in:
Eugen Rochko 2016-11-15 23:02:57 +01:00
parent a4313224d9
commit 3ce6ac0ce2
19 changed files with 91 additions and 88 deletions

View file

@ -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

View file

@ -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