Keyrelay list on domain, translations refactor

This commit is contained in:
Martin Lensment 2014-12-19 18:28:24 +02:00
parent c15b4d48b9
commit ee060fca1a
56 changed files with 439 additions and 356 deletions

View file

@ -11,7 +11,7 @@ class Admin::SettingsController < AdminController
Setting[k] = v
end
flash[:notice] = I18n.t('shared.records_updated')
flash[:notice] = I18n.t('records_updated')
redirect_to [:admin, :settings]
end
@ -19,10 +19,10 @@ class Admin::SettingsController < AdminController
def update
if @setting_group.update(setting_group_params)
flash[:notice] = I18n.t('shared.setting_updated')
flash[:notice] = I18n.t('setting_updated')
redirect_to [:admin, @setting_group]
else
flash[:alert] = I18n.t('shared.failed_to_update_setting')
flash[:alert] = I18n.t('failed_to_update_setting')
render 'show'
end
end