Extract locales in accordance with Rails/I18nLocaleTexts
This commit is contained in:
@ -42,7 +42,7 @@ class ErrorTemplateAttributesController < ApplicationController
|
|||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @error_template_attribute.save
|
if @error_template_attribute.save
|
||||||
format.html do
|
format.html do
|
||||||
redirect_to @error_template_attribute, notice: 'Error template attribute was successfully created.'
|
redirect_to @error_template_attribute, notice: t('shared.object_created', model: @error_template_attribute.class.model_name.human)
|
||||||
end
|
end
|
||||||
format.json { render :show, status: :created, location: @error_template_attribute }
|
format.json { render :show, status: :created, location: @error_template_attribute }
|
||||||
else
|
else
|
||||||
@ -59,7 +59,7 @@ class ErrorTemplateAttributesController < ApplicationController
|
|||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @error_template_attribute.update(error_template_attribute_params)
|
if @error_template_attribute.update(error_template_attribute_params)
|
||||||
format.html do
|
format.html do
|
||||||
redirect_to @error_template_attribute, notice: 'Error template attribute was successfully updated.'
|
redirect_to @error_template_attribute, notice: t('shared.object_updated', model: @error_template_attribute.class.model_name.human)
|
||||||
end
|
end
|
||||||
format.json { render :show, status: :ok, location: @error_template_attribute }
|
format.json { render :show, status: :ok, location: @error_template_attribute }
|
||||||
else
|
else
|
||||||
@ -76,7 +76,7 @@ class ErrorTemplateAttributesController < ApplicationController
|
|||||||
@error_template_attribute.destroy
|
@error_template_attribute.destroy
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
redirect_to error_template_attributes_url, notice: 'Error template attribute was successfully destroyed.'
|
redirect_to error_template_attributes_url, notice: t('shared.object_destroyed', model: @error_template_attribute.class.model_name.human)
|
||||||
end
|
end
|
||||||
format.json { head :no_content }
|
format.json { head :no_content }
|
||||||
end
|
end
|
||||||
|
@ -40,7 +40,7 @@ class ErrorTemplatesController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @error_template.save
|
if @error_template.save
|
||||||
format.html { redirect_to @error_template, notice: 'Error template was successfully created.' }
|
format.html { redirect_to @error_template, notice: t('shared.object_created', model: @error_template.class.model_name.human) }
|
||||||
format.json { render :show, status: :created, location: @error_template }
|
format.json { render :show, status: :created, location: @error_template }
|
||||||
else
|
else
|
||||||
format.html { render :new }
|
format.html { render :new }
|
||||||
@ -55,7 +55,7 @@ class ErrorTemplatesController < ApplicationController
|
|||||||
authorize!
|
authorize!
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @error_template.update(error_template_params)
|
if @error_template.update(error_template_params)
|
||||||
format.html { redirect_to @error_template, notice: 'Error template was successfully updated.' }
|
format.html { redirect_to @error_template, notice: t('shared.object_updated', model: @error_template.class.model_name.human) }
|
||||||
format.json { render :show, status: :ok, location: @error_template }
|
format.json { render :show, status: :ok, location: @error_template }
|
||||||
else
|
else
|
||||||
format.html { render :edit }
|
format.html { render :edit }
|
||||||
@ -70,7 +70,7 @@ class ErrorTemplatesController < ApplicationController
|
|||||||
authorize!
|
authorize!
|
||||||
@error_template.destroy
|
@error_template.destroy
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to error_templates_url, notice: 'Error template was successfully destroyed.' }
|
format.html { redirect_to error_templates_url, notice: t('shared.object_destroyed', model: @error_template.class.model_name.human) }
|
||||||
format.json { head :no_content }
|
format.json { head :no_content }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -48,7 +48,7 @@ class FileTemplatesController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @file_template.save
|
if @file_template.save
|
||||||
format.html { redirect_to @file_template, notice: 'File template was successfully created.' }
|
format.html { redirect_to @file_template, notice: t('shared.object_created', model: @file_template.class.model_name.human) }
|
||||||
format.json { render :show, status: :created, location: @file_template }
|
format.json { render :show, status: :created, location: @file_template }
|
||||||
else
|
else
|
||||||
format.html { render :new }
|
format.html { render :new }
|
||||||
@ -63,7 +63,7 @@ class FileTemplatesController < ApplicationController
|
|||||||
authorize!
|
authorize!
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @file_template.update(file_template_params)
|
if @file_template.update(file_template_params)
|
||||||
format.html { redirect_to @file_template, notice: 'File template was successfully updated.' }
|
format.html { redirect_to @file_template, notice: t('shared.object_updated', model: @file_template.class.model_name.human) }
|
||||||
format.json { render :show, status: :ok, location: @file_template }
|
format.json { render :show, status: :ok, location: @file_template }
|
||||||
else
|
else
|
||||||
format.html { render :edit }
|
format.html { render :edit }
|
||||||
@ -78,7 +78,7 @@ class FileTemplatesController < ApplicationController
|
|||||||
authorize!
|
authorize!
|
||||||
@file_template.destroy
|
@file_template.destroy
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to file_templates_url, notice: 'File template was successfully destroyed.' }
|
format.html { redirect_to file_templates_url, notice: t('shared.object_destroyed', model: @file_template.class.model_name.human) }
|
||||||
format.json { head :no_content }
|
format.json { head :no_content }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user